summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-06-20 07:51:27 +1000
committerDave Airlie <airlied@linux.ie>2008-06-20 07:51:27 +1000
commitcfe814a481d8cf2005d738a0ca9782f1ed4177f5 (patch)
treea74ffe9ac3896ec4b30da215b516a408cc1af773
parent5b323a2cbbc412b6dd4e782438b64ee996558d05 (diff)
r600: don't add fb offset here to make shadowfb work.
discovered on irc with wpwrak.
-rw-r--r--src/radeon_driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 25165905..f18ad993 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -224,8 +224,7 @@ radeonShadowWindow(ScreenPtr screen, CARD32 row, CARD32 offset, int mode,
stride = (pScrn->displayWidth * pScrn->bitsPerPixel) / 8;
*size = stride;
- return ((uint8_t *)info->FB + pScrn->fbOffset +
- row * stride + offset);
+ return ((uint8_t *)info->FB + row * stride + offset);
}
static Bool
RADEONCreateScreenResources (ScreenPtr pScreen)