diff options
Diffstat (limited to 'src/mesa/main/glspirv.c')
-rw-r--r-- | src/mesa/main/glspirv.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c index c53fe0bd07c..fecf7384eb3 100644 --- a/src/mesa/main/glspirv.c +++ b/src/mesa/main/glspirv.c @@ -263,12 +263,8 @@ _mesa_spirv_to_nir(struct gl_context *ctx, NIR_PASS_V(nir, nir_split_var_copies); NIR_PASS_V(nir, nir_split_per_member_structs); - if (nir->info.stage == MESA_SHADER_VERTEX) { - uint64_t dual_slot_inputs = nir_get_dual_slot_attributes(nir); - if (options->vs_inputs_dual_locations) - nir_remap_dual_slot_attributes(nir, dual_slot_inputs); - linked_shader->Program->DualSlotInputs = dual_slot_inputs; - } + if (nir->info.stage == MESA_SHADER_VERTEX) + nir_remap_dual_slot_attributes(nir, &linked_shader->Program->DualSlotInputs); return nir; } |