From 40c6d54e76c5e5859a78841ed305935b2ca6922c Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Sun, 15 May 2016 20:08:09 -0400 Subject: [PATCH] clover: grid_offset should be padded with 0 not 1 Signed-off-by: Jan Vesely Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/core/kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index 266d50e6145..9231462b822 100644 --- a/src/gallium/state_trackers/clover/core/kernel.cpp +++ b/src/gallium/state_trackers/clover/core/kernel.cpp @@ -179,7 +179,7 @@ kernel::exec_context::bind(intrusive_ptr _q, break; } case module::argument::grid_offset: { - for (cl_uint x : pad_vector(*q, grid_offset, 1)) { + for (cl_uint x : pad_vector(*q, grid_offset, 0)) { auto arg = argument::create(marg); arg->set(sizeof(x), &x); -- 2.30.2