mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
glamor: Implement GetSupportedModifiers
Implement function added in DRI3 v1.1. A newest version of libepoxy (>= 1.4.4) is required as earlier versions use a problematic version of Khronos EXT_image_dma_buf_import_modifiers spec. v4: Only send scanout-supported modifiers if flipping is possible v5: Fix memory corruption in XWayland (uninitialized pointer) Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Acked-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
committed by
Adam Jackson
parent
c8c276c956
commit
cef12efc15
@@ -500,6 +500,9 @@
|
||||
/* Glamor can retrieve supported DRM formats/modifiers */
|
||||
#undef GLAMOR_HAS_DRM_MODIFIERS
|
||||
|
||||
/* Glamor can use eglQueryDmaBuf* functions */
|
||||
#undef GLAMOR_HAS_EGL_QUERY_DMABUF
|
||||
|
||||
/* byte order */
|
||||
#undef X_BYTE_ORDER
|
||||
|
||||
|
||||
@@ -79,6 +79,8 @@ conf_data.set('GLAMOR_HAS_DRM_NAME_FROM_FD_2',
|
||||
libdrm_dep.found() and libdrm_dep.version().version_compare('>= 2.4.74'))
|
||||
conf_data.set('GLAMOR_HAS_DRM_MODIFIERS',
|
||||
libdrm_dep.found() and libdrm_dep.version().version_compare('>= 2.4.83'))
|
||||
conf_data.set('GLAMOR_HAS_EGL_QUERY_DMABUF',
|
||||
epoxy_dep.found() and epoxy_dep.version().version_compare('>= 1.4.4'))
|
||||
conf_data.set('GLXEXT', build_glx)
|
||||
conf_data.set('GLAMOR', build_glamor)
|
||||
conf_data.set('GLAMOR_HAS_GBM', gbm_dep.found())
|
||||
|
||||
Reference in New Issue
Block a user