From 4247fd9928b0301a300c0e1e14ed45560e0afc33 Mon Sep 17 00:00:00 2001 From: Christian König Date: Fri, 13 Jul 2012 11:10:37 +0200 Subject: radeon/llvm: fix compiling when llvm is active, but opencl isn't MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König Reviewed-by: Tom Stellard --- src/gallium/drivers/r600/r600_llvm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index 5e073e0d3af..e77758b3a77 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/gallium/drivers/r600/r600_llvm.c @@ -16,6 +16,8 @@ #include +#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 -- cgit v1.2.3