Skip to content

Commit f6e104f

Browse files
committed
fix: inverted modifiers check in DRM plane allocation
1 parent 17cd0d5 commit f6e104f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kms/req_builder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static bool plane_qualifies(
115115
}
116116

117117
if (has_modifier) {
118-
if (drm_plane_supports_modified_formats(plane)) {
118+
if (!drm_plane_supports_modified_formats(plane)) {
119119
// return false if we want a modified format but the plane doesn't support modified formats
120120
LOG_DRM_PLANE_ALLOCATION_DEBUG(
121121
" does not qualify: framebuffer has modifier %" PRIu64 " but plane does not support modified formats\n",

0 commit comments

Comments
 (0)