]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Extract intel_atomic_swap_state()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 19 Dec 2023 13:07:56 +0000 (15:07 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 2 Feb 2024 21:08:10 +0000 (23:08 +0200)
commitc1ce62e4d6dd614c36ceb1b07e5b696a7825d1c7
tree3599552883b4ca84bda8e89963b3bc51d7b92186
parente0aee99015a79cf57b653668b06bccc9964b0387
drm/i915: Extract intel_atomic_swap_state()

Pull all the state swap stuff into its own function to declutter
intel_atomic_commit() a bit.

Note that currently the state swap is spread across both
sides of the unprepare branch in intel_atomic_commit(), but
we can pull all of it ahead a bit since we bail on the first
error, and thus there is no change in behaviour from the
reordering.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231219130756.25986-4-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/display/intel_display.c