radeon: only do the fb read if we are mapping a VRAM object

this makes writing the DMA buffers got a lot better
This commit is contained in:
Dave Airlie 2009-02-04 11:14:38 +10:00
parent e8f575d657
commit c85a3851b6

View file

@ -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;