da555982b3
The Wayland protocol defines INVALID as a special marker indicating that implicit modifiers are supported. If the driver doesn't support explicit modifiers and the compositor advertises support for implicit modifiers, fallback to these. This effectively restores logic removed in 4c065158927d, but only for the specific case of Wayland instead of affecting all APIs. (Wayland is one of the few APIs defining a special meaning for INVALID.) Signed-off-by: Simon Ser <contact@emersion.fr> Fixes: 4c065158927d ("dri: revert INVALID modifier special-casing") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32535>