summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-09-17 14:31:31 +0000
committerTom Stellard <[email protected]>2012-09-21 19:45:17 +0000
commit8ed9aaea5112bcda9ec7120e1c3b6f0447cc6cd2 (patch)
tree56546bade20319307ab3171ea00264085fd43a85
parent024e1732cba28adc0c6055744339048dee376482 (diff)
clover: Initialize height and depth to 1 for transfers
Reviewed-by: Francisco Jerez <[email protected]>
-rw-r--r--src/gallium/state_trackers/clover/api/transfer.cpp2
1 files changed, 1 insertions, 1 deletions
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 }};
}
};