ac/nir: Use instance_rate_inputs per attribute, not per variable.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 22 Jan 2018 08:01:29 +0000 (09:01 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 23 Jan 2018 11:58:48 +0000 (12:58 +0100)
commit5a4dc285002e1924dbc8c72d17481a3dbc4c0142
tree977d705fc1df4ebcfa904c32d560a766e356e969
parentde00e8227b00740e3fe91c5c8fd0b2498751606c
ac/nir: Use instance_rate_inputs per attribute, not per variable.

This did the wrong thing if we had e.g. an array for which only some
of the attributes use the instance index. Tripped up some new CTS
tests.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c