[PATCH 2/6] FinishAccess_CS: set bo_mapped to FALSE on unmap
Karl Tomlinson
karlt+ at karlt.net
Sat Aug 21 03:29:34 PDT 2010
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).
---
src/radeon_exa.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/radeon_exa.c b/src/radeon_exa.c
index 814c864..bf7cb88 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;
}
--
1.7.1
More information about the xorg-driver-ati
mailing list