mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
egl: only enable MESA_image_dma_buf_export with PIPE_CAP_DMABUF
very minor nitpick but technically more correct Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29939>
This commit is contained in:
parent
739694403d
commit
0b864388fd
1 changed files with 6 additions and 3 deletions
|
|
@ -838,9 +838,12 @@ dri2_setup_screen(_EGLDisplay *disp)
|
|||
} else {
|
||||
disp->Extensions.MESA_drm_image = EGL_TRUE;
|
||||
}
|
||||
if (dri2_dpy->image->base.version >= 11)
|
||||
disp->Extensions.MESA_image_dma_buf_export = EGL_TRUE;
|
||||
|
||||
#ifdef HAVE_LIBDRM
|
||||
if (dri2_dpy->image->base.version >= 11 &&
|
||||
get_screen_param(disp, PIPE_CAP_DMABUF) & DRM_PRIME_CAP_EXPORT) {
|
||||
disp->Extensions.MESA_image_dma_buf_export = true;
|
||||
}
|
||||
#endif
|
||||
disp->Extensions.MESA_x11_native_visual_id = EGL_TRUE;
|
||||
|
||||
disp->Extensions.EXT_surface_compression = EGL_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue