[Mesa-dev] [PATCH] clover: Don't use PIPE_TRANSFER_UNSYNCHRONIZED for blocking copies.
Francisco Jerez
currojerez at riseup.net
Mon Aug 26 18:12:38 PDT 2013
Tom Stellard <tom at stellard.net> writes:
> 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.
>
Thanks for fixing this,
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130826/e2ffc5a6/attachment.pgp>
More information about the mesa-dev
mailing list