From f3e86d4a68c27f0e86d64a98469a48756c445498 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 26 Aug 2013 17:52:47 -0700 Subject: [PATCH] clover: Don't use PIPE_TRANSFER_UNSYNCHRONIZED for blocking copies CC: "9.2" Reviewed-by: Francisco Jerez --- 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 6d348e692bc..3b003e9e927 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); -- 2.30.2