From: Francisco Jerez Date: Sun, 12 Oct 2014 08:32:48 +0000 (+0300) Subject: clover: Fix unintended fall-through in kernel::argument::bind. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2286edce16e4f78500ccda77da99c30185d9c58f;p=mesa.git clover: Fix unintended fall-through in kernel::argument::bind. --- 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 _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 _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 _q, arg->set(sizeof(x), &x); arg->bind(*this, marg); } + break; } } }