Skip to content

dri: don't call modifier interfaces when modifiers_count is 0

Lucas Stach requested to merge lynxeye/mesa:modifier-usage-fix into main

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: #4814 (closed)

Merge request reports