diff options
author | Christian König <[email protected]> | 2012-07-13 11:10:37 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2012-07-17 10:43:53 +0200 |
commit | 4247fd9928b0301a300c0e1e14ed45560e0afc33 (patch) | |
tree | 27a8bce327e108a11ceda2494f22584e260ff30a /src | |
parent | aa0becdbb6368af20c8348fb2353ee31f4b14a8c (diff) |
radeon/llvm: fix compiling when llvm is active, but opencl isn't
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | 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 5e073e0d3af..e77758b3a77 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 |