[Mesa-stable] [PATCH] clover: Don't use PIPE_TRANSFER_UNSYNCHRONIZED for blocking copies.
Tom Stellard
tom at stellard.net
Mon Aug 26 18:04:26 PDT 2013
From: Tom Stellard <thomas.stellard at amd.com>
CC: "9.2" <mesa-stable at lists.freedesktop.org>
---
This should go to the 9.2 branch, but I know we are already in the rc
stage, so it can wait until the first point release.
src/gallium/state_trackers/clover/core/resource.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/clover/core/resource.cpp b/src/gallium/state_trackers/clover/core/resource.cpp
index 6d348e6..3b003e9 100644
--- a/src/gallium/state_trackers/clover/core/resource.cpp
+++ b/src/gallium/state_trackers/clover/core/resource.cpp
@@ -174,7 +174,7 @@ mapping::mapping(command_queue &q, resource &r,
pctx(q.pipe) {
unsigned usage = ((flags & CL_MAP_WRITE ? PIPE_TRANSFER_WRITE : 0 ) |
(flags & CL_MAP_READ ? PIPE_TRANSFER_READ : 0 ) |
- (blocking ? PIPE_TRANSFER_UNSYNCHRONIZED : 0));
+ (!blocking ? PIPE_TRANSFER_UNSYNCHRONIZED : 0));
p = pctx->transfer_map(pctx, r.pipe, 0, usage,
box(origin + r.offset, region), &pxfer);
--
1.7.11.4
More information about the mesa-stable
mailing list