clover: grid_offset should be padded with 0 not 1
authorJan Vesely <jan.vesely@rutgers.edu>
Mon, 16 May 2016 00:08:09 +0000 (20:08 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Mon, 16 May 2016 17:58:14 +0000 (13:58 -0400)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/kernel.cpp

index 266d50e61453bdbaad83f2f4009d56538fb40cd2..9231462b8226408c23de822fa9d2e9a04d7c8588 100644 (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);