summaryrefslogtreecommitdiff
path: root/src/radeon_exa.c
diff options
context:
space:
mode:
authorKarl Tomlinson <karlt+@karlt.net>2010-08-21 22:29:34 +1200
committerMichel Dänzer <michel@daenzer.net>2010-09-20 10:13:05 +0200
commita4eef8faffbb1ea2f742273ee855f4e6f992e5c8 (patch)
tree2d5f3cffc18cfcc1bdfd27ecdf836f4327239b4b /src/radeon_exa.c
parentbfebe039af0c0282d04eb6234b6e6d1e02097146 (diff)
FinishAccess_CS: set bo_mapped to FALSE on unmap
This is actually only necessary when PrepareAccess may behave differently on different calls with the same pixmap, which currently doesn't happen. However resetting bo_mapped is necessary to let PrepareAccess (with mixed pixmaps) choose to fail based on whether the pixmap is in VRAM (to avoid CPU reads).
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r--src/radeon_exa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c
index 814c8641..bf7cb885 100644
--- a/src/radeon_exa.c
+++ b/src/radeon_exa.c
@@ -323,6 +323,7 @@ void RADEONFinishAccess_CS(PixmapPtr pPix, int index)
return;
radeon_bo_unmap(driver_priv->bo);
+ driver_priv->bo_mapped = FALSE;
pPix->devPrivate.ptr = NULL;
}