ac/nir: only use the new raw/struct image atomic intrinsics with LLVM 9+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 18 Apr 2019 07:17:04 +0000 (09:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 19 Apr 2019 07:20:09 +0000 (09:20 +0200)
commit31164cf5f70caa94dba0abb93610a935e17f5af2
treeb3f49df0bbc18d4edc3e82ce0a493cb84a574d9c
parenta913fbf124e201a8bf53fe8385619a71a6e9594b
ac/nir: only use the new raw/struct image atomic intrinsics with LLVM 9+

They are buggy with LLVM 8 because they weren't marked as source
of divergence, see r358579.

Fixes: dd0172e865f ("radv: Use structured intrinsics instead of indexing workaround for GFX9.")"
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/common/ac_nir_to_llvm.c