diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-02 00:06:25 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-02 15:39:55 +0200 |
commit | 831655e52e52d2b13aae6988935cce63830b1b4f (patch) | |
tree | 54a6fb71e688135a0f48ac72e2f2e6780ab29884 /drivers/gpu/drm/i915/intel_atomic.c | |
parent | 9fb3fc70ca6c22c701321822a17fe18e74c9ebec (diff) | |
download | op-kernel-dev-831655e52e52d2b13aae6988935cce63830b1b4f.zip op-kernel-dev-831655e52e52d2b13aae6988935cce63830b1b4f.tar.gz |
drm/i915: Use drm_atomic_get_existing_plane_state
We want to encapsulate the drm_atomic_state internals.
v2: Use intel_atomic_get_existing_plane_state (Maarten).
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464818821-5736-3-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/i915/intel_atomic.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_atomic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index 50ff90a..8f0d006 100644 --- a/drivers/gpu/drm/i915/intel_atomic.c +++ b/drivers/gpu/drm/i915/intel_atomic.c @@ -223,7 +223,8 @@ int intel_atomic_setup_scalers(struct drm_device *dev, continue; } - plane_state = to_intel_plane_state(drm_state->plane_states[i]); + plane_state = intel_atomic_get_existing_plane_state(drm_state, + intel_plane); scaler_id = &plane_state->scaler_id; } |