From 7956eae1c76e298ca1ded46679c1a9bf875ec4ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 2 Sep 2015 19:05:09 +0200 Subject: [PATCH] radeonsi: enable VGPR spilling on VI This fixes corruption in Unigine Heaven on VI Cc: 11.0 Reviewed-by: Alex Deucher --- src/gallium/drivers/radeonsi/si_pipe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 7dbb2e30422..85ade311c9c 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -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); -- 2.30.2