From: Jan Vesely Date: Mon, 16 May 2016 00:08:09 +0000 (-0400) Subject: clover: grid_offset should be padded with 0 not 1 X-Git-Tag: upstream/17.1.0~9864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40c6d54e76c5e5859a78841ed305935b2ca6922c;p=platform%2Fupstream%2Fmesa.git clover: grid_offset should be padded with 0 not 1 Signed-off-by: Jan Vesely Reviewed-by: Francisco Jerez --- diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index 266d50e..9231462 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);