radv/gfx10: set llvm_has_working_vgpr_indexing
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Jun 2019 09:24:48 +0000 (11:24 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 7 Jul 2019 15:03:38 +0000 (17:03 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c

index 3f8625630bc13cd8e8750f7a0ebd352f711efeff..7cf10c456e2397b8ab29c237bb607c31fa1e7909 100644 (file)
@@ -4415,10 +4415,9 @@ void
 ac_lower_indirect_derefs(struct nir_shader *nir, enum chip_class chip_class)
 {
        /* While it would be nice not to have this flag, we are constrained
-        * by the reality that LLVM 5.0 doesn't have working VGPR indexing
-        * on GFX9.
+        * by the reality that LLVM 9.0 has buggy VGPR indexing on GFX9.
         */
-       bool llvm_has_working_vgpr_indexing = chip_class <= GFX8;
+       bool llvm_has_working_vgpr_indexing = chip_class != GFX9;
 
        /* TODO: Indirect indexing of GS inputs is unimplemented.
         *