clover: grid_offset should be padded with 0 not 1

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
Jan Vesely 2016-05-15 20:08:09 -04:00
parent 71465179fc
commit 40c6d54e76
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ kernel::exec_context::bind(intrusive_ptr<command_queue> _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);