aco: don't use p_as_uniform for vgpr sampler/image indices
authorRhys Perry <pendingchaos02@gmail.com>
Sat, 21 Sep 2019 14:33:44 +0000 (15:33 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Fri, 11 Oct 2019 14:26:58 +0000 (14:26 +0000)
commitf13ad839f11aed68075b735ca0ac04ab9fecd154
tree828059f3810b0f075347d5b3676ea24414b1b4b2
parent0c3fe323b6cfd1aa96d60bb29dc881c9a1c05279
aco: don't use p_as_uniform for vgpr sampler/image indices

p_as_uniform can get CSE'd, which can be incorrect and break some
dEQP-VK.descriptor_indexing.* tests.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_instruction_selection.cpp