We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5011f80 commit e5f989aCopy full SHA for e5f989a
1 file changed
drivers/gpu/drm/apple/plane.c
@@ -128,12 +128,14 @@ static int apple_plane_atomic_check(struct drm_plane *plane,
128
return -EINVAL;
129
}
130
131
- /*
132
- * Pitches have to be 64-byte aligned.
133
- */
134
- for (u32 i = 0; i < new_plane_state->fb->format->num_planes; i++)
135
- if (new_plane_state->fb->pitches[i] & 63)
136
- return -EINVAL;
+ if (new_plane_state->fb->modifier != DRM_FORMAT_MOD_APPLE_INTERCHANGE_COMPRESSED) {
+ /*
+ * Pitches have to be 64-byte aligned for non-tiled modifiers.
+ */
+ for (u32 i = 0; i < new_plane_state->fb->format->num_planes; i++)
+ if (new_plane_state->fb->pitches[i] & 63)
137
+ return -EINVAL;
138
+ }
139
140
/*
141
* FIXME: dcp can currently only use multi-planar buffers using the same
0 commit comments