nir/recompute_io_bases: Fix per-primitive inputs.

This was a mistake, the decision shouldn't be based on shader info.

Fixes: 8a24610477
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28685>
This commit is contained in:
Timur Kristóf
2024-04-11 11:11:55 +02:00
committed by Marge Bot
parent 723b3d354e
commit 28c0f6f369
+1 -1
View File
@@ -123,7 +123,7 @@ nir_recompute_io_bases(nir_shader *nir, nir_variable_mode modes)
num_slots = (num_slots + sem.high_16bits + 1) / 2;
if (mode == nir_var_shader_in) {
if (nir->info.per_primitive_inputs & BITFIELD64_BIT(sem.location)) {
if (sem.per_primitive) {
nir_intrinsic_set_base(intr,
num_normal_inputs +
BITSET_PREFIX_SUM(per_prim_inputs, sem.location));