summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDavid Airlie <airlied@asimov.stargames.com.au>2007-04-10 15:20:50 +1000
committerDavid Airlie <airlied@asimov.stargames.com.au>2007-04-10 15:20:50 +1000
commit40bd6dcd86d554ca426deccd4fbada693c4be8a6 (patch)
tree76638f691e5752623aeb7880d1e410791b164638 /linux-core
parent65f465ed5ad3caf773658bb2832785c963b987f6 (diff)
set the base address of the CRTC correctly
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/intel_display.c b/linux-core/intel_display.c
index fce0fafd..92b39406 100644
--- a/linux-core/intel_display.c
+++ b/linux-core/intel_display.c
@@ -351,9 +351,10 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y)
int dspbase = (pipe == 0 ? DSPABASE : DSPBBASE);
int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF);
- Start = crtc->fb->offset;
+ Start = crtc->fb->offset + dev_priv->baseaddr;
Offset = ((y * crtc->fb->width + x) * (crtc->fb->bits_per_pixel / 8));
+ DRM_DEBUG("Writing base %08X %08X %d %d\n", Start, Offset, x, y);
if (IS_I965G(dev)) {
I915_WRITE(dspbase, Offset);
I915_READ(dspbase);