From 1f97e02075307d985e34fea04dc6c4973cc46897 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 31 Oct 2023 20:02:20 +0100 Subject: Modified hack test --- src/capture/kms_vaapi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/capture') diff --git a/src/capture/kms_vaapi.c b/src/capture/kms_vaapi.c index 1d94d76..076035c 100644 --- a/src/capture/kms_vaapi.c +++ b/src/capture/kms_vaapi.c @@ -12,6 +12,7 @@ #include #include #include +#include #define MAX_CONNECTOR_IDS 32 @@ -480,6 +481,10 @@ static int gsr_capture_kms_vaapi_capture(gsr_capture *cap, AVFrame *frame) { // Error: avcodec_send_frame failed, error: Input/output error // Assertion pic->display_order == pic->encode_order failed at libavcodec/vaapi_encode_h265.c:765 // kms server info: kms client shutdown, shutting down the server + uint64_t modifier = drm_fd->modifier; + if(modifier == I915_FORMAT_MOD_Y_TILED_CCS) + modifier = I915_FORMAT_MOD_Y_TILED; + const intptr_t img_attr[] = { EGL_LINUX_DRM_FOURCC_EXT, drm_fd->pixel_format, EGL_WIDTH, drm_fd->width, -- cgit v1.2.3