diff --git a/src/compiler/nir/nir_opt_varyings.c b/src/compiler/nir/nir_opt_varyings.c index fec59e82ee6..609f81d3e4f 100644 --- a/src/compiler/nir/nir_opt_varyings.c +++ b/src/compiler/nir/nir_opt_varyings.c @@ -3547,6 +3547,9 @@ relocate_slot(struct linkage_info *linkage, struct scalar_slot *slot, sem.location = new_semantic; sem.high_16bits = new_high_16bits; + /* This is never indirectly indexed. Simplify num_slots. */ + sem.num_slots = 1; + nir_intrinsic_set_io_semantics(intr, sem); nir_intrinsic_set_component(intr, new_component);