>From 47543731f717daacb2e8f102ed0ac7dd655eb3d1 Mon Sep 17 00:00:00 2001
From: Karl Tomlinson <kar...@karlt.net>
Date: Sat, 21 Aug 2010 22:29:34 +1200
Subject: [PATCH 2/6] 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).
---
 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

_______________________________________________
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-ati

Reply via email to