]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: Expose the IN_FORMATS_ASYNC blob for all planes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 12 Nov 2025 23:30:29 +0000 (01:30 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 27 Nov 2025 22:37:17 +0000 (00:37 +0200)
commit8afc0198a4bd6988bd3f575be00dfdb628f0be5f
tree9cd2baa35b604eeca1db1b4b1e00f17f39c8c938
parentebf08b1c52faab9f0638b0fa02d0031e311fb435
drm/i915: Expose the IN_FORMATS_ASYNC blob for all planes

Since old kernel versions wouldn't expose the IN_FORMATS_ASYNC blob,
userspace can't really use the absence of the blob to determine
that async flips aren't supported. Thus it seems better to always
expose the blob on all planes, whether they support async flips
or not. The blob will simply not indicate any format+modifier
combinations as supported on planes that aren't async flip capable.

Currently we expose the blob for all skl+ universal planes (even
though we implement async flips only for the first plane on each
pipe), and i9xx primary planes (for ilk+ we have async flips support,
for pre-ilk we do not). Complete the full set by also expsosing
the blob on pre-skl sprite planes, and cursors.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251112233030.24117-3-ville.syrjala@linux.intel.com
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
drivers/gpu/drm/i915/display/intel_cursor.c
drivers/gpu/drm/i915/display/intel_sprite.c