diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2011-12-19 17:06:49 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-20 05:06:27 -0500 |
commit | 01f2c7730e188077026c5f766f85f329c7000c54 (patch) | |
tree | 1b7ad10bd70c25ccaefa2a03aeedaeb20ac2c336 /drivers/gpu/drm/gma500/oaktrail_crtc.c | |
parent | 935b59774012d11e3012c909cdd0c3cba0adf219 (diff) |
drm: Replace pitch with pitches[] in drm_framebuffer
Otherwise each driver would need to keep the information inside
their own framebuffer object structure. Also add offsets[]. BOs
on the other hand are driver specific, so those can be kept in
driver specific structures.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/oaktrail_crtc.c')
-rw-r--r-- | drivers/gpu/drm/gma500/oaktrail_crtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/oaktrail_crtc.c b/drivers/gpu/drm/gma500/oaktrail_crtc.c index 8e15b5af1213..fe17e1f000bf 100644 --- a/drivers/gpu/drm/gma500/oaktrail_crtc.c +++ b/drivers/gpu/drm/gma500/oaktrail_crtc.c | |||
@@ -543,9 +543,9 @@ int oaktrail_pipe_set_base(struct drm_crtc *crtc, | |||
543 | return 0; | 543 | return 0; |
544 | 544 | ||
545 | start = psbfb->gtt->offset; | 545 | start = psbfb->gtt->offset; |
546 | offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8); | 546 | offset = y * crtc->fb->pitches[0] + x * (crtc->fb->bits_per_pixel / 8); |
547 | 547 | ||
548 | REG_WRITE(dspstride, crtc->fb->pitch); | 548 | REG_WRITE(dspstride, crtc->fb->pitches[0]); |
549 | 549 | ||
550 | dspcntr = REG_READ(dspcntr_reg); | 550 | dspcntr = REG_READ(dspcntr_reg); |
551 | dspcntr &= ~DISPPLANE_PIXFORMAT_MASK; | 551 | dspcntr &= ~DISPPLANE_PIXFORMAT_MASK; |