mesa/src/egl
Mario Kleiner 820dfcea43 egl/wayland-drm: Only announce formats via wl_drm which the driver supports.
Check if a pixel format is supported by the Wayland servers gpu driver
before exposing it to the client via wl_drm, so we avoid reporting formats
to the client which the server gpu can't handle.

Restrict this reporting to the new color depth 30 formats for now, as the
ARGB/XRGB8888 and RGB565 formats are probably supported by every gpu under
the sun.

Atm. this is mostly useful to allow proper PRIME renderoffload for depth
30 formats on the typical Intel iGPU + NVidia dGPU "NVidia Optimus" laptop
combo.

Tested on Intel, AMD, NVidia with single-gpu setup and on a Intel + NVidia
Optimus setup.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
2019-01-29 20:03:20 +00:00
..
drivers egl/wayland-drm: Only announce formats via wl_drm which the driver supports. 2019-01-29 20:03:20 +00:00
generate mapi: move genCommon.py to src/mapi/new 2019-01-24 18:13:25 +00:00
main egl: Implement EGL API for MESA_query_driver 2019-01-24 14:37:47 +00:00
wayland egl/wayland-drm: Only announce formats via wl_drm which the driver supports. 2019-01-29 20:03:20 +00:00
.gitignore egl: add gitignore 2017-04-22 00:42:38 +01:00
Android.mk egl: drop unused _EGL_BUILT_IN_DRIVER_DRI2 2018-08-23 14:47:59 +01:00
egl-entrypoint-check egl: use the LC_ALL hammer instead of LANG 2018-11-01 17:25:08 +00:00
egl-symbols-check egl: Use correct shared libraries suffix on macOS. 2018-10-11 11:30:00 -07:00
Makefile.am mapi: move genCommon.py to src/mapi/new 2019-01-24 18:13:25 +00:00
Makefile.sources egl: add base EGL_EXT_device_base implementation 2018-11-01 00:05:43 +00:00
meson.build mapi: move genCommon.py to src/mapi/new 2019-01-24 18:13:25 +00:00
SConscript egl: Use the canonical drm-uapi fourcc header to avoid local defines. 2018-07-18 10:37:54 -07:00