From 2286edce16e4f78500ccda77da99c30185d9c58f Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Sun, 12 Oct 2014 11:32:48 +0300 Subject: [PATCH] clover: Fix unintended fall-through in kernel::argument::bind. --- src/gallium/state_trackers/clover/core/kernel.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } } } -- 2.30.2