From: Dave Airlie Date: Tue, 27 Feb 2018 02:34:54 +0000 (+1000) Subject: ac/shader: fix vertex input with components. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3401b028df1074a06a7fbc3fb1cda949646ef75d;p=mesa.git 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 --- 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; } }