clover: Initialize height and depth to 1 for transfers
authorTom Stellard <thomas.stellard@amd.com>
Mon, 17 Sep 2012 14:31:31 +0000 (14:31 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 21 Sep 2012 19:45:17 +0000 (19:45 +0000)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/transfer.cpp

index c67b75e803436fccd3c408b5af22199b7b2f97f9..8ea8f86768b41b3817c16210b60d4263e6c72c74 100644 (file)
@@ -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 }};
       }
    };