radeonsi: enable VGPR spilling on VI
authorMarek Olšák <marek.olsak@amd.com>
Wed, 2 Sep 2015 17:05:09 +0000 (19:05 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 Sep 2015 15:14:15 +0000 (17:14 +0200)
This fixes corruption in Unigine Heaven on VI

Cc: 11.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 7dbb2e30422cc888762a6ac99c46f52504f3fc97..85ade311c9c6cfd723efc1574e7b7b107b98f969 100644 (file)
@@ -205,9 +205,7 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen,
        r600_target = radeon_llvm_get_r600_target(triple);
        sctx->tm = LLVMCreateTargetMachine(r600_target, triple,
                                           r600_get_llvm_processor_name(sscreen->b.family),
-                                          sctx->b.chip_class >= VI ?
-                                                  "+DumpCode" :
-                                                  "+DumpCode,+vgpr-spilling",
+                                          "+DumpCode,+vgpr-spilling",
                                           LLVMCodeGenLevelDefault,
                                           LLVMRelocDefault,
                                           LLVMCodeModelDefault);