Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282513
b: refs/heads/master
c: 9e38a66
h: refs/heads/master
i:
  282511: c7b1c40
v: v3
  • Loading branch information
Dave Airlie committed Dec 20, 2011
1 parent 40f7865 commit ce3ef59
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01f2c7730e188077026c5f766f85f329c7000c54
refs/heads/master: 9e38a66171a297f150a0332469ca3f186f2766da
2 changes: 1 addition & 1 deletion trunk/drivers/staging/gma500/accel_2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void psbfb_copyarea_accel(struct fb_info *info,
return;

offset = psbfb->gtt->offset;
stride = fb->pitch;
stride = fb->pitches[0];

switch (fb->depth) {
case 8:
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/gma500/cdv_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ int cdv_intel_pipe_set_base(struct drm_crtc *crtc,
if (ret < 0)
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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/gma500/framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ static int psbfb_create(struct psb_fbdev *fbdev,
info->apertures->ranges[0].size = dev_priv->gtt.stolen_size;
}

drm_fb_helper_fill_fix(info, fb->pitch, fb->depth);
drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
drm_fb_helper_fill_var(info, &fbdev->psb_fb_helper,
sizes->fb_width, sizes->fb_height);

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/gma500/mdfld_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/gma500/mrst_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,9 @@ int mrst_pipe_set_base(struct drm_crtc *crtc,
return 0;

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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/gma500/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ bool gma_power_begin(struct drm_device *dev, bool force_on)
ret = gma_resume_pci(dev->pdev);
if (ret == 0) {
/* FIXME: we want to defer this for Medfield/Oaktrail */
gma_resume_display(dev);
gma_resume_display(dev->pdev);
psb_irq_preinstall(dev);
psb_irq_postinstall(dev);
pm_runtime_get(&dev->pdev->dev);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/gma500/psb_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ int psb_intel_pipe_set_base(struct drm_crtc *crtc,
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;
Expand Down

0 comments on commit ce3ef59

Please sign in to comment.