aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-31 20:31:14 +0100
committerdec05eba <dec05eba@protonmail.com>2023-10-31 20:59:40 +0100
commitf12541d3f0e5ae6a6d08b2d44590b1274ec7cb0f (patch)
treed5f4aa69bb7365befad6527a9271c0b8178a33ab /src
parent18b26a8f38fd0f307ffa7567597e41ae55676559 (diff)
Revert temp modifier test
Diffstat (limited to 'src')
-rw-r--r--src/capture/kms_vaapi.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/capture/kms_vaapi.c b/src/capture/kms_vaapi.c
index 637d6a3..1d94d76 100644
--- a/src/capture/kms_vaapi.c
+++ b/src/capture/kms_vaapi.c
@@ -12,7 +12,6 @@
#include <libavcodec/avcodec.h>
#include <va/va.h>
#include <va/va_drmcommon.h>
-#include <drm_fourcc.h>
#define MAX_CONNECTOR_IDS 32
@@ -481,10 +480,6 @@ 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,
@@ -492,8 +487,8 @@ static int gsr_capture_kms_vaapi_capture(gsr_capture *cap, AVFrame *frame) {
EGL_DMA_BUF_PLANE0_FD_EXT, drm_fd->fd,
EGL_DMA_BUF_PLANE0_OFFSET_EXT, drm_fd->offset,
EGL_DMA_BUF_PLANE0_PITCH_EXT, drm_fd->pitch,
- EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT, modifier & 0xFFFFFFFFULL,
- EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT, modifier >> 32ULL,
+ EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT, drm_fd->modifier & 0xFFFFFFFFULL,
+ EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT, drm_fd->modifier >> 32ULL,
EGL_NONE
};