<div dir="ltr">Reviewed-by: Bas Nieuwenhuizen <<a href="mailto:bas@basnieuwenhuizen.nl">bas@basnieuwenhuizen.nl</a>></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 13, 2018 at 5:05 PM, James Legg <span dir="ltr"><<a href="mailto:jlegg@feralinteractive.com" target="_blank">jlegg@feralinteractive.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixes ad764e365beb8a119369b97f22225c<wbr>b95fc7ea8c:<br>
"ac/nir: Use instance_rate_inputs per attribute, not per variable".<br>
<br>
CC: <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.<wbr>freedesktop.org</a>><br>
CC: Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>><br>
CC: Bas Nieuwenhuizen <<a href="mailto:bas@basnieuwenhuizen.nl">bas@basnieuwenhuizen.nl</a>><br>
---<br>
 src/amd/common/ac_nir_to_llvm.<wbr>c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/amd/common/ac_nir_to_<wbr>llvm.c b/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
index dde6cbc8f5..4812debb2f 100644<br>
--- a/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
+++ b/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
@@ -5117,7 +5117,7 @@ handle_vs_input_decl(struct nir_to_llvm_context *ctx,<br>
        variable->data.driver_location = idx * 4;<br>
<br>
        for (unsigned i = 0; i < attrib_count; ++i, ++idx) {<br>
-               if (ctx->options->key.vs.<wbr>instance_rate_inputs & (1u << (index + 1))) {<br>
+               if (ctx->options->key.vs.<wbr>instance_rate_inputs & (1u << (index + i))) {<br>
                        buffer_index = LLVMBuildAdd(ctx->builder, ctx->abi.instance_id,<br>
                                                    ctx->abi.start_instance, "");<br>
                        ctx->shader_info->vs.vgpr_<wbr>comp_cnt =<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>