Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wayland: fix implicit modifier selecting mess (again)
The intention here is that if we get a matching format and modifier pair and that modifer is not the implicit one (i.e. DRM_FORMAT_MOD_INVALID) then that is considered supported. However if we get DRM_FORMAT_MOD_INVALID, we also need to check the drm plane formats because if the format isn't supported by the plane than you get broken rendering (e.g. like my GPU). The old logic was wrong and assumed that any modifier would work if it was on a plane but that is not correct. It just happened to work since it is common for compositors to support both explicit and implicit modifiers for common formats (not always the case of course).
- Loading branch information