[Mesa-dev] [PATCH 2/3] clover: Initialize height and depth to 1 for transfers
Tom Stellard
tom at stellard.net
Mon Sep 17 14:01:07 PDT 2012
From: Tom Stellard <thomas.stellard at amd.com>
---
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 c67b75e..8ea8f86 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 }};
}
};
--
1.7.11.4
More information about the mesa-dev
mailing list