]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/intel_drv.h
drm/i915: Pass proper old/new states to intel_plane_atomic_check_with_state()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 23 Aug 2017 15:22:23 +0000 (18:22 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 1 Sep 2017 13:48:24 +0000 (16:48 +0300)
commitb2b55502d683c72d3bd3ce31af5bd5ab990061d7
tree11a0276866e94da1a605ebab3f72cd8094c3ca39
parent18b5381803f437bc504ca616a6bdc151420c609b
drm/i915: Pass proper old/new states to intel_plane_atomic_check_with_state()

Eliminate plane->state and crtc->state usage from
intel_plane_atomic_check_with_state() and its callers. Instead pass the
proper states in or dig them up from the top level atomic state.

Note that intel_plane_atomic_check_with_state() itself isn't allowed to
use the top level atomic state as there is none when it gets called from
the legacy cursor short circuit path.

v2: Rename some variables for easier comprehension (Maarten)

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170823152226.22938-4-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_atomic_plane.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h