Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6433>
const auto elem_size = types_iter->second.size;
const auto elem_nbs = get<uint32_t>(inst, 3);
const auto size = elem_size * elem_nbs;
- types[id] = { module::argument::scalar, size, size, size,
+ const auto align = elem_size * util_next_power_of_two(elem_nbs);
+ types[id] = { module::argument::scalar, size, size, align,
module::argument::zero_ext };
break;
}