aboutsummaryrefslogtreecommitdiff
path: root/src/capture/capture.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-06-10 16:44:04 +0200
committerdec05eba <dec05eba@protonmail.com>2024-06-10 16:44:04 +0200
commite4832f3d643abf8adf1f5872614b020c833afd0b (patch)
tree28aea0eb7192450aa4a66ec4d78c04ca67d96760 /src/capture/capture.c
parentc17a717326d2cc1c0576e6dc9f2116e72e38b45a (diff)
Revert "Fix screen capture on intel arc gpu (on x11 and wayland)"
This reverts commit f8453bcaa4b488aea601af632ab5656979eb6024.
Diffstat (limited to 'src/capture/capture.c')
-rw-r--r--src/capture/capture.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/capture/capture.c b/src/capture/capture.c
index 5e1f546..ed7faa9 100644
--- a/src/capture/capture.c
+++ b/src/capture/capture.c
@@ -116,7 +116,8 @@ bool gsr_capture_base_setup_vaapi_textures(gsr_capture_base *self, AVFrame *fram
const int layer = i;
const int plane = 0;
- const uint64_t modifier = prime->objects[prime->layers[layer].object_index[plane]].drm_format_modifier;
+ //const uint64_t modifier = prime->objects[prime->layers[layer].object_index[plane]].drm_format_modifier;
+
const intptr_t img_attr[] = {
EGL_LINUX_DRM_FOURCC_EXT, formats[i],
EGL_WIDTH, prime->width / div[i],
@@ -124,8 +125,9 @@ bool gsr_capture_base_setup_vaapi_textures(gsr_capture_base *self, AVFrame *fram
EGL_DMA_BUF_PLANE0_FD_EXT, prime->objects[prime->layers[layer].object_index[plane]].fd,
EGL_DMA_BUF_PLANE0_OFFSET_EXT, prime->layers[layer].offset[plane],
EGL_DMA_BUF_PLANE0_PITCH_EXT, prime->layers[layer].pitch[plane],
- EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT, modifier & 0xFFFFFFFFULL,
- EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT, modifier >> 32ULL,
+ // TODO:
+ //EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT, modifier & 0xFFFFFFFFULL,
+ //EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT, modifier >> 32ULL,
EGL_NONE
};