[Mesa-dev] [PATCH 1/2] radeon/llvm: fix compiling when llvm is active, but opencl isn't

Christian König deathsimple at vodafone.de
Mon Jul 16 06:46:35 PDT 2012


On 16.07.2012 15:32, Tom Stellard wrote:
> On Mon, Jul 16, 2012 at 12:14:27PM +0200, Christian König wrote:
>> Signed-off-by: Christian König <deathsimple at vodafone.de>
>> ---
>>   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 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
>> -- 
>> 1.7.9.5
> What was the build error you were seeing ?
IIRC it was something like function without previous declaration.

Christian.
>
> -Tom
>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>




More information about the mesa-dev mailing list