|
@@ -390,9 +390,9 @@ int mdfld__intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, struct drm_f
|
|
|
goto psb_intel_pipe_set_base_exit;
|
|
|
|
|
|
start = psbfb->gtt->offset;
|
|
|
- offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8);
|
|
|
+ offset = y * crtc->fb->pitches[0] + x * (crtc->fb->bits_per_pixel / 8);
|
|
|
|
|
|
- REG_WRITE(dspstride, crtc->fb->pitch);
|
|
|
+ REG_WRITE(dspstride, crtc->fb->pitches[0]);
|
|
|
dspcntr = REG_READ(dspcntr_reg);
|
|
|
dspcntr &= ~DISPPLANE_PIXFORMAT_MASK;
|
|
|
|