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 <arun.r.murthy@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250407-asyn-v13-5-b93ef83076c5@intel.com
This commit is contained in:
Arun R Murthy
2025-04-07 11:13:49 +05:30
committed by Suraj Kandpal
parent 01963b624e
commit 84953fc58a

View File

@@ -177,7 +177,8 @@ bool intel_plane_needs_physical(struct intel_plane *plane)
bool intel_plane_can_async_flip(struct intel_plane *plane, u32 format,
u64 modifier)
{
if (intel_format_info_is_yuv_semiplanar(drm_format_info(format), modifier))
if (intel_format_info_is_yuv_semiplanar(drm_format_info(format), modifier) ||
format == DRM_FORMAT_C8)
return false;
return plane->can_async_flip && plane->can_async_flip(modifier);