Skip to content

Commit

Permalink
drm/i915: Keep drm_crtc->state in sync with intel_crtc->config
Browse files Browse the repository at this point in the history
So that atomic operations will reference the right crtc state.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ander Conselvan de Oliveira authored and Daniel Vetter committed Jan 27, 2015
1 parent f5de6e0 commit 16f3f65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -8931,6 +8931,7 @@ static void intel_crtc_set_state(struct intel_crtc *crtc,
{
kfree(crtc->config);
crtc->config = crtc_state;
crtc->base.state = &crtc_state->base;
}

static void intel_crtc_destroy(struct drm_crtc *crtc)
Expand Down

0 comments on commit 16f3f65

Please sign in to comment.