From: Dave Airlie Date: Wed, 4 Feb 2009 01:14:38 +0000 (+1000) Subject: radeon: only do the fb read if we are mapping a VRAM object X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c85a3851b6519c24780e94dea570a72418621189;p=mesa.git radeon: only do the fb read if we are mapping a VRAM object this makes writing the DMA buffers got a lot better --- 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;