From 19d44313a4dd6b3c4d5d1a16d71c0fa4a3ecb47b Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 8 Aug 2024 15:08:58 -0700 Subject: [PATCH] egl: Fix surfaceless + modifiers Modifiers are not restricted to dri3. Fixes: d86f39e7cf2b ("egl: swap DRI_IMAGE checks for dmabuf/modifier support for driver check") Signed-off-by: Rob Clark Part-of: --- src/egl/drivers/dri2/egl_dri2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 6201dafdebc..85d978ca2bd 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -626,7 +626,6 @@ dri2_setup_screen(_EGLDisplay *disp) struct pipe_screen *pscreen = screen->base.screen; unsigned int api_mask = screen->api_mask; -#ifdef HAVE_DRI3 bool has_modifiers = true; if (disp->Platform == _EGL_PLATFORM_X11 || disp->Platform == _EGL_PLATFORM_XCB) @@ -635,7 +634,6 @@ dri2_setup_screen(_EGLDisplay *disp) /* set if both import and export are suported */ dri2_dpy->has_modifiers = has_modifiers && util_bitcount(caps) == 2; dri2_dpy->has_dmabuf_import = has_modifiers && caps & DRM_PRIME_CAP_IMPORT; -#endif #ifdef HAVE_ANDROID_PLATFORM dri2_dpy->has_native_fence_fd = dri_get_screen_param(dri2_dpy->dri_screen_render_gpu, PIPE_CAP_NATIVE_FENCE_FD); #endif