ac/nir: only use the new raw/struct SSBO atomic intrinsics with LLVM 9+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 18 Apr 2019 07:06:49 +0000 (09:06 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 19 Apr 2019 07:20:13 +0000 (09:20 +0200)
commit895e10d2dbc9b0efcb97f8232948f780a32c1524
tree32ab7d75fceab5eaa768882788f0a5d97b3f6486
parent31164cf5f70caa94dba0abb93610a935e17f5af2
ac/nir: only use the new raw/struct SSBO atomic intrinsics with LLVM 9+

They are buggy with older LLVM version, see r358579.

Fixes: 78c551aca1c ("ac/nir: use new LLVM 8 intrinsics for SSBO atomics except cmpswap")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/common/ac_nir_to_llvm.c