File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,14 @@ static int apple_plane_atomic_check(struct drm_plane *plane,
128128 return - EINVAL ;
129129 }
130130
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 ;
131+ if (new_plane_state -> fb -> modifier != DRM_FORMAT_MOD_APPLE_INTERCHANGE_COMPRESSED ) {
132+ /*
133+ * Pitches have to be 64-byte aligned for non-tiled modifiers.
134+ */
135+ for (u32 i = 0 ; i < new_plane_state -> fb -> format -> num_planes ; i ++ )
136+ if (new_plane_state -> fb -> pitches [i ] & 63 )
137+ return - EINVAL ;
138+ }
137139
138140 /*
139141 * FIXME: dcp can currently only use multi-planar buffers using the same
You can’t perform that action at this time.
0 commit comments