mesa/src/loader
Lucas Stach 77fcf70082 dri: don't call modifier interfaces when modifiers_count is 0
The wayland EGL platform sets the modifier count to 0 in some cases
to signal that modifiers should not be used, even if a list of modifiers
is present. The loader_dri_create_image helper didn't handle this case
properly and called the modifierful driver interface with a 0 modifier
count, leading to the obvious outcome of the driver being unable to
allocate an image.

Fixes: cb9ae4273d ("dri: add loader_dri_create_image helper")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10903>
2021-05-21 08:20:58 +00:00
..
Android.mk loader: prefer iris on Android 2021-03-31 06:28:18 +00:00
Makefile.sources dri: add loader_dri_create_image helper 2021-05-19 16:54:19 +00:00
loader.c loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
loader.h loader: replace int/1/0 with bool/true/false 2019-10-07 21:30:16 +01:00
loader_dri3_helper.c loader/dri3: convert to loader_dri_create_image 2021-05-19 16:54:19 +00:00
loader_dri3_helper.h egl: implement EGL_EXT_protected_surface support 2020-11-02 10:15:47 +01:00
loader_dri_helper.c dri: don't call modifier interfaces when modifiers_count is 0 2021-05-21 08:20:58 +00:00
loader_dri_helper.h dri: add loader_dri_create_image helper 2021-05-19 16:54:19 +00:00
meson.build dri: add loader_dri_create_image helper 2021-05-19 16:54:19 +00:00
pci_id_driver_map.c loader: s/int/bool/ for predicate result 2019-10-07 21:30:16 +01:00
pci_id_driver_map.h i915c: Add a symlink for i830_dri.so 2021-05-03 23:03:09 +00:00