[PATCH] glamor: Only wait for GPU writes in radeon_glamor_prepare_access_cpu_ro

Michel Dänzer michel at daenzer.net
Wed May 27 19:29:48 PDT 2015


From: Michel Dänzer <michel.daenzer at amd.com>

We don't need to wait for GPU reads to finish before reading with the
CPU.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_glamor_wrappers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/radeon_glamor_wrappers.c b/src/radeon_glamor_wrappers.c
index 7a57bc1..ec81560 100644
--- a/src/radeon_glamor_wrappers.c
+++ b/src/radeon_glamor_wrappers.c
@@ -113,7 +113,7 @@ radeon_glamor_prepare_access_cpu_ro(ScrnInfoPtr scrn, PixmapPtr pixmap,
 		return TRUE;
 
 	info = RADEONPTR(scrn);
-	need_sync = radeon_glamor_gpu_pending(info->gpu_synced, priv->gpu_read);
+	need_sync = radeon_glamor_gpu_pending(info->gpu_synced, priv->gpu_write);
 	return radeon_glamor_prepare_access_cpu(scrn, RADEONPTR(scrn), pixmap,
 						priv, need_sync);
 }
-- 
2.1.4



More information about the xorg-driver-ati mailing list