From 8ed9aaea5112bcda9ec7120e1c3b6f0447cc6cd2 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 17 Sep 2012 14:31:31 +0000 Subject: [PATCH] clover: Initialize height and depth to 1 for transfers Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/api/transfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}; } }; -- 2.30.2