diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-09-04 18:25:26 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-16 23:35:18 +0200 |
commit | ba44f7207376e62de8863bc76281141c23103e7b (patch) | |
tree | a4fda3387030da65cdbf7cb8db5e870c339966cf /drivers/gpu/drm/i915/intel_sprite.c | |
parent | 20ddf6650458d08d42c3c3f8240a0d00a7e9ee97 (diff) |
drm/i915: Use pipe config in sprite code
Rather than dig up the pipe source size from crtc->mode, use
intel_crtc->config.requested_mode.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sprite.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sprite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index d9c7a667553a..ae0e686e6e55 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -652,8 +652,8 @@ intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, .y2 = crtc_y + crtc_h, }; const struct drm_rect clip = { - .x2 = crtc->mode.hdisplay, - .y2 = crtc->mode.vdisplay, + .x2 = intel_crtc->config.requested_mode.hdisplay, + .y2 = intel_crtc->config.requested_mode.vdisplay, }; intel_fb = to_intel_framebuffer(fb); |