mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
drm/i915/overlay: Extract i915_overlay_reset()
overlay->frontbuffer_bits tracking will move to the i915 side of the parent vs. display driver split, so extract the reset part of that into a new function (i915_overlay_reset()). Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260226100738.29997-9-ville.syrjala@linux.intel.com
This commit is contained in:
parent
35305c65b7
commit
b0d7a69ca0
|
|
@ -496,6 +496,17 @@ static int intel_overlay_release_old_vid(struct intel_overlay *overlay)
|
|||
return i915_active_wait(&overlay->last_flip);
|
||||
}
|
||||
|
||||
static void i915_overlay_reset(struct drm_device *drm)
|
||||
{
|
||||
struct intel_display *display = to_intel_display(drm);
|
||||
struct intel_overlay *overlay = display->overlay;
|
||||
|
||||
if (!overlay)
|
||||
return;
|
||||
|
||||
overlay->frontbuffer_bits = 0;
|
||||
}
|
||||
|
||||
void intel_overlay_reset(struct intel_display *display)
|
||||
{
|
||||
struct intel_overlay *overlay = display->overlay;
|
||||
|
|
@ -506,7 +517,8 @@ void intel_overlay_reset(struct intel_display *display)
|
|||
overlay->old_xscale = 0;
|
||||
overlay->old_yscale = 0;
|
||||
overlay->crtc = NULL;
|
||||
overlay->frontbuffer_bits = 0;
|
||||
|
||||
i915_overlay_reset(display->drm);
|
||||
}
|
||||
|
||||
static int packed_depth_bytes(u32 format)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user