summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/amd/common/ac_shader_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_shader_info.c b/src/amd/common/ac_shader_info.c
index 5ae8a720462..d76fecd2445 100644
--- a/src/amd/common/ac_shader_info.c
+++ b/src/amd/common/ac_shader_info.c
@@ -141,7 +141,7 @@ gather_intrinsic_info(const nir_shader *nir, const nir_intrinsic_instr *instr,
if (var->data.mode == nir_var_shader_in) {
unsigned idx = var->data.location;
uint8_t mask =
- nir_ssa_def_components_read(&instr->dest.ssa);
+ nir_ssa_def_components_read(&instr->dest.ssa) << var->data.location_frac;
info->vs.input_usage_mask[idx] |= mask;
}
}