summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@aurora.(none)>2008-01-11 17:33:00 +0100
committerJakob Bornecrantz <jakob@aurora.(none)>2008-01-11 17:33:00 +0100
commite6fc47129ffe972bbee1c08fd822a8c171f21322 (patch)
treea7928df031e6ccdab6482e1facb5cfbe97dc1cb8 /linux-core
parentf07942f74a08e4c65e3b5e5c46f543686ae30c2b (diff)
Fix for X axis panning problem
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/intel_display.c b/linux-core/intel_display.c
index e75d3c07..1498a51c 100644
--- a/linux-core/intel_display.c
+++ b/linux-core/intel_display.c
@@ -370,7 +370,7 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y)
int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF);
Start = crtc->fb->offset;
- Offset = y * crtc->fb->pitch + x;
+ Offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8);
DRM_DEBUG("Writing base %08lX %08lX %d %d\n", Start, Offset, x, y);
if (IS_I965G(dev)) {