Module: Mesa
Branch: master
Commit: 3401b028df1074a06a7fbc3fb1cda949646ef75d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3401b028df1074a06a7fbc3fb1cda949646ef75d

Author: Dave Airlie <airl...@redhat.com>
Date:   Tue Feb 27 12:34:54 2018 +1000

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 <b...@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Signed-off-by: Dave Airlie <airl...@redhat.com>

---

 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 5ae8a72046..d76fecd244 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;
                        }
                }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to