Skip to content

Commit 84953fc

Browse files
armurthysurajk8
authored andcommitted
drm/i915/display: Indexed 8bit format does not support async flip
Async flip is not supported with Indexed 8 bit format as it depends on LUT and can't be updated atomically. Note: This may change the alignment for C8 framebuffers on some platforms. Signed-off-by: Arun R Murthy <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Suraj Kandpal <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 01963b6 commit 84953fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/display/intel_atomic_plane.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ bool intel_plane_needs_physical(struct intel_plane *plane)
177177
bool intel_plane_can_async_flip(struct intel_plane *plane, u32 format,
178178
u64 modifier)
179179
{
180-
if (intel_format_info_is_yuv_semiplanar(drm_format_info(format), modifier))
180+
if (intel_format_info_is_yuv_semiplanar(drm_format_info(format), modifier) ||
181+
format == DRM_FORMAT_C8)
181182
return false;
182183

183184
return plane->can_async_flip && plane->can_async_flip(modifier);

0 commit comments

Comments
 (0)