Backport “xwayland/glamor-gbm: Handle DRM_FORMAT_MOD_INVALID gracefully” to the stable branch
This is a backport of commit edf96443 from !282 (merged) to the stable branch server-1.20-branch
required for https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/798