From: Tom Stellard Date: Mon, 17 Sep 2012 14:31:31 +0000 (+0000) Subject: clover: Initialize height and depth to 1 for transfers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ed9aaea5112bcda9ec7120e1c3b6f0447cc6cd2;p=mesa.git clover: Initialize height and depth to 1 for transfers Reviewed-by: Francisco Jerez --- diff --git a/src/gallium/state_trackers/clover/api/transfer.cpp b/src/gallium/state_trackers/clover/api/transfer.cpp index c67b75e8034..8ea8f86768b 100644 --- a/src/gallium/state_trackers/clover/api/transfer.cpp +++ b/src/gallium/state_trackers/clover/api/transfer.cpp @@ -89,7 +89,7 @@ namespace { static mapping get(cl_command_queue q, memory_obj *obj, cl_map_flags flags, size_t offset, size_t size) { - return { *q, obj->resource(q), flags, true, { offset }, { size }}; + return { *q, obj->resource(q), flags, true, { offset }, { size, 1, 1 }}; } };