diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2016-05-15 20:08:09 -0400 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2016-05-16 13:58:14 -0400 |
commit | 40c6d54e76c5e5859a78841ed305935b2ca6922c (patch) | |
tree | e002078066bfc598d958ee70eeb04a42a099376c | |
parent | 71465179fc45820dabf933146fb16f044a7363d7 (diff) | |
download | external_mesa3d-40c6d54e76c5e5859a78841ed305935b2ca6922c.zip external_mesa3d-40c6d54e76c5e5859a78841ed305935b2ca6922c.tar.gz external_mesa3d-40c6d54e76c5e5859a78841ed305935b2ca6922c.tar.bz2 |
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>
-rw-r--r-- | src/gallium/state_trackers/clover/core/kernel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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); |