aco: prevent invalid loads/stores vectorization if robustness is enabled
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 May 2020 14:03:35 +0000 (16:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 11 May 2020 07:25:16 +0000 (07:25 +0000)
commit266978f7cabe2c09e5538ef1b79efdd96b2cba00
tree8a3bde40647e24c302f2cb2df1cb6d6a2cf6c56e
parent04718a9cd63cea9d815bffd91495069a79db8ac5
aco: prevent invalid loads/stores vectorization if robustness is enabled

Only UBO, SSBO, global and push constants accesses should matter.

This fixes a bunch of new robustness2 failures. Note that RADV/LLVM
isn't affected because it relies on LLVM for loads/stores
vectorization and LLVM doesn't vectorize in this situation as well.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4881>
src/amd/compiler/aco_instruction_selection_setup.cpp