mesa/src/gbm
Michel Dänzer e58509cdec gbm/dri: Propagate queryDmaBufModifiers return value
We were treating count == 0 as the format not being supported at all,
but queryDmaBufModifiers would return false in that case.

Fixes spuriously reporting all formats as unsupported with radeonsi
(which doesn't support modifiers yet), which would e.g. cause mutter
to think the HW cursor format isn't supported and fall back to SW
cursor.

Suggested-by: Daniel Stone <daniels@collabora.com>
Fixes: 4e3a7dcf6e "gallium: enable
                     EGL_EXT_image_dma_buf_import_modifiers
                     unconditionally"

Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4532>
2020-04-16 10:19:35 +00:00
..
backends/dri gbm/dri: Propagate queryDmaBufModifiers return value 2020-04-16 10:19:35 +00:00
main gbm: Add GBM_MAX_PLANES definition 2019-10-18 13:18:28 +00:00
Android.mk gbm: turn GBM_ALWAYS_SOFTWARE into a boolean 2017-09-12 13:53:11 +01:00
gbm-symbols.txt gbm: sort symbols 2019-07-10 11:27:51 +00:00
Makefile.sources gbm: remove unneeded gbm_drm_device abstraction 2017-05-29 16:49:47 +01:00
meson.build meson: move the generic symbols check arguments to a common variable 2019-11-05 20:30:47 +00:00