From c85a3851b6519c24780e94dea570a72418621189 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 4 Feb 2009 11:14:38 +1000 Subject: radeon: only do the fb read if we are mapping a VRAM object this makes writing the DMA buffers got a lot better --- src/mesa/drivers/dri/radeon/radeon_bo_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers') 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; -- cgit v1.2.3