summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2007-04-16 20:54:24 +0200
committerJakob Bornecrantz <wallbraker@gmail.com>2007-04-16 20:54:24 +0200
commitcd5769c3b563048357535b24dc40783775adb227 (patch)
tree9c20e0d70320148b84de140615b06276cf9117e8 /linux-core
parent2aa183db1ff0fb6044d24eae51854ff128da9a0f (diff)
Fix offset should from pci device address
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/intel_display.c b/linux-core/intel_display.c
index e58b31b0..48239329 100644
--- a/linux-core/intel_display.c
+++ b/linux-core/intel_display.c
@@ -350,8 +350,8 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y)
unsigned long Start, Offset;
int dspbase = (pipe == 0 ? DSPABASE : DSPBBASE);
int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF);
-
- Start = crtc->fb->offset + dev_priv->baseaddr;
+
+ Start = crtc->fb->offset;
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);