clover: Don't use PIPE_TRANSFER_UNSYNCHRONIZED for blocking copies
authorTom Stellard <thomas.stellard@amd.com>
Tue, 27 Aug 2013 00:52:47 +0000 (17:52 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 27 Aug 2013 01:27:03 +0000 (18:27 -0700)
CC: "9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/resource.cpp

index 6d348e6..3b003e9 100644 (file)
@@ -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);