Commit c389c9c4 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Daniel Vetter

drm/i915: Remove transitional references from intel_plane_atomic_check.

All transitional plane helpers are gone, party!
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Tested-by(IVB): Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 818ed961
...@@ -115,6 +115,7 @@ static int intel_plane_atomic_check(struct drm_plane *plane, ...@@ -115,6 +115,7 @@ static int intel_plane_atomic_check(struct drm_plane *plane,
struct intel_crtc_state *crtc_state; struct intel_crtc_state *crtc_state;
struct intel_plane *intel_plane = to_intel_plane(plane); struct intel_plane *intel_plane = to_intel_plane(plane);
struct intel_plane_state *intel_state = to_intel_plane_state(state); struct intel_plane_state *intel_state = to_intel_plane_state(state);
struct drm_crtc_state *drm_crtc_state;
int ret; int ret;
crtc = crtc ? crtc : plane->state->crtc; crtc = crtc ? crtc : plane->state->crtc;
...@@ -129,19 +130,11 @@ static int intel_plane_atomic_check(struct drm_plane *plane, ...@@ -129,19 +130,11 @@ static int intel_plane_atomic_check(struct drm_plane *plane,
if (!crtc) if (!crtc)
return 0; return 0;
/* FIXME: temporary hack necessary while we still use the plane update drm_crtc_state = drm_atomic_get_existing_crtc_state(state->state, crtc);
* helper. */ if (WARN_ON(!drm_crtc_state))
if (state->state) { return -EINVAL;
struct drm_crtc_state *drm_crtc_state =
drm_atomic_get_existing_crtc_state(state->state, crtc);
if (WARN_ON(!drm_crtc_state)) crtc_state = to_intel_crtc_state(drm_crtc_state);
return -EINVAL;
crtc_state = to_intel_crtc_state(drm_crtc_state);
} else {
crtc_state = intel_crtc->config;
}
/* /*
* The original src/dest coordinates are stored in state->base, but * The original src/dest coordinates are stored in state->base, but
...@@ -191,7 +184,7 @@ static int intel_plane_atomic_check(struct drm_plane *plane, ...@@ -191,7 +184,7 @@ static int intel_plane_atomic_check(struct drm_plane *plane,
intel_state->visible = false; intel_state->visible = false;
ret = intel_plane->check_plane(plane, crtc_state, intel_state); ret = intel_plane->check_plane(plane, crtc_state, intel_state);
if (ret || !state->state) if (ret)
return ret; return ret;
return intel_plane_atomic_calc_changes(&crtc_state->base, state); return intel_plane_atomic_calc_changes(&crtc_state->base, state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment