radeonsi: remove bogus r600-- triple
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 Apr 2015 18:27:02 +0000 (19:27 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Apr 2015 13:15:19 +0000 (14:15 +0100)
As mentioned by Michel Dänzer for LLVM >= 3.6 we create the
LLVMTargetMachine (with triple amdgcn--), as we setup the radeonsi
context. For older LLVM or hardware (r600) the triple is always r600--
and is created at a later stage - radeon_llvm_compile()

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index ae96b6bab1d764ef3a3f3148f826fd973f559173..5dc657c6b3bda12367e128771eb6b79d6c15be63 100644 (file)
@@ -85,8 +85,6 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, void *
        LLVMTargetRef r600_target;
 #if HAVE_LLVM >= 0x0306
        const char *triple = "amdgcn--";
-#else
-       const char *triple = "r600--";
 #endif
        int shader, i;