summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-05-28 10:59:22 +0900
committerMichel Dänzer <michel@daenzer.net>2015-05-28 15:55:13 +0900
commite58fc380ccf2a581d28f041fd74b963626ca5404 (patch)
treecda63de3fd5d97d43bfb43667ea9d51cd08bf59b /src
parent5f82a720374c9c1caebb42bfbeea1f0cf8847d28 (diff)
glamor: Only wait for GPU writes in radeon_glamor_prepare_access_cpu_ro
We don't need to wait for GPU reads to finish before reading with the CPU. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_glamor_wrappers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_glamor_wrappers.c b/src/radeon_glamor_wrappers.c
index 7a57bc13..ec81560c 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);
}