Mesa (master): radeon/llvm: fix compiling when llvm is active, but opencl isn't
Christian König
deathsimple at kemper.freedesktop.org
Tue Jul 17 08:45:05 UTC 2012
Module: Mesa
Branch: master
Commit: 4247fd9928b0301a300c0e1e14ed45560e0afc33
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4247fd9928b0301a300c0e1e14ed45560e0afc33
Author: Christian König <deathsimple at vodafone.de>
Date: Fri Jul 13 11:10:37 2012 +0200
radeon/llvm: fix compiling when llvm is active, but opencl isn't
Signed-off-by: Christian König <deathsimple at vodafone.de>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
---
src/gallium/drivers/r600/r600_llvm.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c
index 5e073e0..e77758b 100644
--- a/src/gallium/drivers/r600/r600_llvm.c
+++ b/src/gallium/drivers/r600/r600_llvm.c
@@ -16,6 +16,8 @@
#include <stdio.h>
+#if defined R600_USE_LLVM || defined HAVE_OPENCL
+
static LLVMValueRef llvm_fetch_const(
struct lp_build_tgsi_context * bld_base,
const struct tgsi_full_src_register *reg,
@@ -319,3 +321,5 @@ unsigned r600_llvm_compile(
return radeon_llvm_compile(mod, inst_bytes, inst_byte_count,
gpu_family, dump);
}
+
+#endif
More information about the mesa-commit
mailing list