diff options
author | Dave Airlie <[email protected]> | 2009-02-04 11:14:38 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-02-04 11:14:38 +1000 |
commit | c85a3851b6519c24780e94dea570a72418621189 (patch) | |
tree | 1c3764cb8f5f35bed911a0a65c267fc02d153cc4 /src | |
parent | e8f575d657c5a363a4bf090b3b4fd219cce218ae (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')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_bo_legacy.c | 2 |
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 71fe27609b3..993bac81243 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; |