From 3401b028df1074a06a7fbc3fb1cda949646ef75d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 27 Feb 2018 12:34:54 +1000 Subject: [PATCH] ac/shader: fix vertex input with components. This fixes: dEQP-VK.glsl.440.linkage.varying.component.* Fixes: 1c57a6da5e3 (ac/shader: scan vertex inputs usage mask) Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Samuel Pitoiset Signed-off-by: Dave Airlie --- src/amd/common/ac_shader_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.30.2