radeon/llvm: fix compiling when llvm is active, but opencl isn't
authorChristian König <deathsimple@vodafone.de>
Fri, 13 Jul 2012 09:10:37 +0000 (11:10 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 17 Jul 2012 08:43:53 +0000 (10:43 +0200)
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/r600_llvm.c

index 5e073e0d3af9ae7e48005779b36cb364af00d850..e77758b3a7779e0de5fe85a1f63b9ddaf67e7da4 100644 (file)
@@ -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