diff options
author | Francisco Jerez <[email protected]> | 2014-10-12 11:32:48 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-10-12 11:44:05 +0300 |
commit | 2286edce16e4f78500ccda77da99c30185d9c58f (patch) | |
tree | 3f568d402becd5569d58c976afd9c6c2c0d465c5 /src/gallium/state_trackers/clover | |
parent | 5bffc5e2620db7631300527f937b3a4823f3f999 (diff) |
clover: Fix unintended fall-through in kernel::argument::bind.
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r-- | src/gallium/state_trackers/clover/core/kernel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index 947e785903e..e07d14d39f7 100644 --- a/src/gallium/state_trackers/clover/core/kernel.cpp +++ b/src/gallium/state_trackers/clover/core/kernel.cpp @@ -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; } } } |