summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-02-04 11:14:38 +1000
committerDave Airlie <airlied@redhat.com>2009-02-04 11:14:38 +1000
commitc85a3851b6519c24780e94dea570a72418621189 (patch)
tree1c3764cb8f5f35bed911a0a65c267fc02d153cc4 /src/mesa/drivers/dri/radeon
parente8f575d657c5a363a4bf090b3b4fd219cce218ae (diff)
radeon: only do the fb read if we are mapping a VRAM object
this makes writing the DMA buffers got a lot better
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_bo_legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c b/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
index 71fe27609b..993bac8124 100644
--- a/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
+++ b/src/mesa/drivers/dri/radeon/radeon_bo_legacy.c
@@ -479,7 +479,7 @@ static int bo_map(struct radeon_bo *bo, int write)
* framebuffer, but I've found this to be unnecessary.
* -- Nicolai Hähnle, June 2008
*/
- {
+ if (!(bo->domains & RADEON_GEM_DOMAIN_GTT)) {
int p;
volatile int *buf = (int*)boml->screen->driScreen->pFB;
p = *buf;