diff options
author | Matt Roper <matthew.d.roper@intel.com> | 2015-01-21 19:35:48 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-27 03:57:25 -0500 |
commit | c196e1d66c36b0731cffc39fe28922b17c2901d9 (patch) | |
tree | d8b995b22e2c307b1228f0b9837885a2e5c5af56 /drivers/gpu/drm/i915/intel_atomic_plane.c | |
parent | 1356837e55e273c9178c13f5fbddf086da285283 (diff) |
drm/i915: Switch plane properties to full atomic helper.
This will exercise our atomic pipeline for legacy property updates.
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_atomic_plane.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_atomic_plane.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_atomic_plane.c b/drivers/gpu/drm/i915/intel_atomic_plane.c index 4a3914f1cdee..9e6f727dfd19 100644 --- a/drivers/gpu/drm/i915/intel_atomic_plane.c +++ b/drivers/gpu/drm/i915/intel_atomic_plane.c | |||
@@ -118,6 +118,15 @@ static int intel_plane_atomic_check(struct drm_plane *plane, | |||
118 | intel_crtc = to_intel_crtc(crtc); | 118 | intel_crtc = to_intel_crtc(crtc); |
119 | 119 | ||
120 | /* | 120 | /* |
121 | * Both crtc and plane->crtc could be NULL if we're updating a | ||
122 | * property while the plane is disabled. We don't actually have | ||
123 | * anything driver-specific we need to test in that case, so | ||
124 | * just return success. | ||
125 | */ | ||
126 | if (!crtc) | ||
127 | return 0; | ||
128 | |||
129 | /* | ||
121 | * The original src/dest coordinates are stored in state->base, but | 130 | * The original src/dest coordinates are stored in state->base, but |
122 | * we want to keep another copy internal to our driver that we can | 131 | * we want to keep another copy internal to our driver that we can |
123 | * clip/modify ourselves. | 132 | * clip/modify ourselves. |