summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-02-14 22:08:10 -0500
committerTom Stellard <thomas.stellard@amd.com>2012-02-14 22:08:10 -0500
commit8cfefe8b72377aade8878a85a919c2a466877088 (patch)
treec543e3f80d76046689b8051abd78d6c6f26767ff
parent26ba233e9f8cea9815742f00a28ba3c5b62e6b92 (diff)
clover: Have clang generate x86_64 code by defaultclover-r600-llvm
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 2d27c790e76..8499315393d 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -93,8 +93,12 @@ clover::compile_program(const char *source, char **pbinary, size_t *binary_sz) {
#ifdef TGSI_BACKEND
c.getTargetOpts().Triple = "tgsi";
#else
+#if 0
+ /* XXX: These needs a patched clang */
c.getTargetOpts().Triple = "r600";
#endif
+ c.getTargetOpts().Triple = "x86_64";
+#endif
c.getInvocation().setLangDefaults(clang::IK_OpenCL);
c.createDiagnostics(0, NULL, new clang::TextDiagnosticPrinter(
s_log, c.getDiagnosticOpts()));