aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-31 20:02:20 +0100
committerdec05eba <dec05eba@protonmail.com>2023-10-31 20:02:20 +0100
commit1f97e02075307d985e34fea04dc6c4973cc46897 (patch)
treec0388f3bca5065c01407318e25d1e8e6a914a958 /src
parent97a345f08f910df375f5e9579876efd06674b802 (diff)
Modified hack test
Diffstat (limited to 'src')
-rw-r--r--src/capture/kms_vaapi.c5
1 files changed, 5 insertions, 0 deletions
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 <libavcodec/avcodec.h>
#include <va/va.h>
#include <va/va_drmcommon.h>
+#include <drm_fourcc.h>
#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,