summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/frontends/clover/spirv/invocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/frontends/clover/spirv/invocation.cpp')
-rw-r--r--lib/mesa/src/gallium/frontends/clover/spirv/invocation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mesa/src/gallium/frontends/clover/spirv/invocation.cpp b/lib/mesa/src/gallium/frontends/clover/spirv/invocation.cpp
index ec425e2c7..ce1e85f7b 100644
--- a/lib/mesa/src/gallium/frontends/clover/spirv/invocation.cpp
+++ b/lib/mesa/src/gallium/frontends/clover/spirv/invocation.cpp
@@ -330,9 +330,8 @@ namespace {
const auto elem_size = types_iter->second.size;
const auto elem_nbs = get<uint32_t>(inst, 3);
- const auto size = elem_size * elem_nbs;
- const auto align = elem_size * util_next_power_of_two(elem_nbs);
- types[id] = { module::argument::scalar, size, size, align,
+ const auto size = elem_size * (elem_nbs != 3 ? elem_nbs : 4);
+ types[id] = { module::argument::scalar, size, size, size,
module::argument::zero_ext };
types[id].info.address_qualifier = CL_KERNEL_ARG_ADDRESS_PRIVATE;
break;