mesa/src
Kenneth Graunke 2570ee28f5 egl: Only expose 565 pbuffer configs if X can export them as DRI3 images
Glamor in xorg-server 1.20 cannot expose 16bpp pixmaps when running in
the usual 24bpp mode.  This meant our 565 pbuffer configs would
ultimately fail to create a backing pixmap, leading to crashes.

To hack around this, make a 16bpp pixmap and try and export it.
If it works, expose the configs.  Otherwise, just skip them.

This also disables them on DRI2.  These configs were only added to pass
conformance requirements, and I doubt anybody cares about testing out
565 pbuffer visuals on DRI2-only drivers.

v2: Don't leak the fds (caught by Eric Anholt)
v3: Don't free(fds), it's not malloc'd

Fixes: dacb11a585 ("egl: Add a 565 pbuffer-only EGL config under X11.")
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 82607f8a90)
2019-07-23 11:49:37 +00:00
..
amd radv: fix crash in vkCmdClearAttachments with unused attachment 2019-07-23 13:40:12 +02:00
broadcom v3d: fix checking twice auf flag 2019-06-14 09:06:36 +00:00
compiler nir/loop_analyze: Properly handle swizzles in loop conditions 2019-07-18 08:24:56 +00:00
egl egl: Only expose 565 pbuffer configs if X can export them as DRI3 images 2019-07-23 11:49:37 +00:00
freedreno freedreno: Fix up end range of unaligned UBO loads. 2019-06-25 11:43:26 +00:00
gallium virgl: Set meta data for textures from handle. 2019-07-18 08:35:40 +00:00
gbm meson: make nm binary optional 2019-05-03 10:58:05 -07:00
getopt
glx glx: fix glvnd pointer types 2019-06-21 07:31:50 +00:00
gtest delete autotools .gitignore files 2019-04-29 21:17:19 +00:00
hgl haiku: Fix hgl dispatch build. Tested under meson/scons. 2019-04-02 16:06:00 -05:00
imgui imgui: update memory editor 2019-02-26 12:49:07 +00:00
intel intel/fs: Stop stack allocating large arrays 2019-07-23 11:43:54 +00:00
loader Delete autotools 2019-04-15 13:44:29 -07:00
mapi meson: Search for execinfo.h 2019-07-02 09:57:34 +02:00
mesa mesa: Fix ReadBuffers with pbuffers 2019-07-23 11:45:31 +00:00
util util: Heap-allocate 256K zlib buffer 2019-07-02 09:56:18 +02:00
vulkan vulkan/wsi: update swapchain status on vkQueuePresent 2019-07-18 08:27:58 +00:00
meson.build turnip: Add driver skeleton (v2) 2019-03-11 10:01:15 -07:00
SConscript scons: Remove gles option. 2018-10-19 16:50:26 +01:00