Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Arun R Murthy and committed by
Suraj Kandpal
84953fc5 01963b62

+2 -1
+2 -1
drivers/gpu/drm/i915/display/intel_atomic_plane.c
··· 177 177 bool intel_plane_can_async_flip(struct intel_plane *plane, u32 format, 178 178 u64 modifier) 179 179 { 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) 181 182 return false; 182 183 183 184 return plane->can_async_flip && plane->can_async_flip(modifier);