clover: Fix unintended fall-through in kernel::argument::bind.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 12 Oct 2014 08:32:48 +0000 (11:32 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Sun, 12 Oct 2014 08:44:05 +0000 (11:44 +0300)
src/gallium/state_trackers/clover/core/kernel.cpp

index 947e785903ebc362b88d728200c0fff5c1a32a95..e07d14d39f760293daf6c5237e60702dbaa56b34 100644 (file)
@@ -163,6 +163,7 @@ kernel::exec_context::bind(intrusive_ptr<command_queue> _q,
       switch (marg.semantic) {
       case module::argument::general:
          (*(explicit_arg++))->bind(*this, marg);
+         break;
 
       case module::argument::grid_dimension: {
          const cl_uint dimension = grid_offset.size();
@@ -170,6 +171,7 @@ kernel::exec_context::bind(intrusive_ptr<command_queue> _q,
 
          arg->set(sizeof(dimension), &dimension);
          arg->bind(*this, marg);
+         break;
       }
       case module::argument::grid_offset: {
          for (cl_uint x : pad_vector(*q, grid_offset, 1)) {
@@ -178,6 +180,7 @@ kernel::exec_context::bind(intrusive_ptr<command_queue> _q,
             arg->set(sizeof(x), &x);
             arg->bind(*this, marg);
          }
+         break;
       }
       }
    }