]> Gentwo Git Trees - linux/.git/commit
drm/i915/frontbuffer: Handle the dirtyfb cache flush inside intel_frontbuffer_flush()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Oct 2025 18:54:03 +0000 (21:54 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Nov 2025 15:37:31 +0000 (17:37 +0200)
commit65417489541fcef7f14104f3a0292e479f08f72b
treec871f31fa8de80f3d3e6a17c2e79046421849221
parent5391ab2542fde3c283fa647255e1f320044a2755
drm/i915/frontbuffer: Handle the dirtyfb cache flush inside intel_frontbuffer_flush()

intel_bo_frontbuffer_flush_for_display() is a bit too low level
to be directly in the high level dirtyfb code. Move the calls
into intel_frontbuffer_flush().

There is a slight behavioural change here in that we now skip
the flush if the bo is not a current scanout buffer (front->bits
== 0). But that is fine as the flush will eventually happen via
the fb pinning code if/when the bo becomes a scanout buffer again.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251016185408.22735-6-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_frontbuffer.c