mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
clover: Fix unintended fall-through in kernel::argument::bind.
This commit is contained in:
parent
5bffc5e262
commit
2286edce16
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue