From: Tom Stellard Date: Tue, 27 Aug 2013 00:52:47 +0000 (-0700) Subject: clover: Don't use PIPE_TRANSFER_UNSYNCHRONIZED for blocking copies X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3e86d4a68c27f0e86d64a98469a48756c445498;p=mesa.git clover: Don't use PIPE_TRANSFER_UNSYNCHRONIZED for blocking copies CC: "9.2" Reviewed-by: Francisco Jerez --- 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);