diff options
author | Tom Stellard <[email protected]> | 2014-09-25 18:10:44 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-10-31 15:24:00 -0400 |
commit | fa07f4b68a20e54e1766876203b11a8b90ff120f (patch) | |
tree | 3143eb857d056ebbbf0586abb5dbec2db1581681 /src/gallium/drivers/radeon | |
parent | e91735a641b71bc2bccabd0c779a626fa412b314 (diff) |
r600g/compute: Enable PIPE_SHADER_IR_NATIVE for compute shaders v2
v2:
- Drop dependency on LLVM >= 3.5.1
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_llvm_util.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/radeon/radeon_llvm_util.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/gallium/drivers/radeon/radeon_llvm_util.c index ec1155923fe..0dfd9ad4867 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_util.c +++ b/src/gallium/drivers/radeon/radeon_llvm_util.c @@ -34,7 +34,7 @@ #include <llvm-c/Transforms/PassManagerBuilder.h> LLVMModuleRef radeon_llvm_parse_bitcode(LLVMContextRef ctx, - const unsigned char * bitcode, unsigned bitcode_len) + const char * bitcode, unsigned bitcode_len) { LLVMMemoryBufferRef buf; LLVMModuleRef module; @@ -47,7 +47,7 @@ LLVMModuleRef radeon_llvm_parse_bitcode(LLVMContextRef ctx, } unsigned radeon_llvm_get_num_kernels(LLVMContextRef ctx, - const unsigned char *bitcode, unsigned bitcode_len) + const char *bitcode, unsigned bitcode_len) { LLVMModuleRef mod = radeon_llvm_parse_bitcode(ctx, bitcode, bitcode_len); return LLVMGetNamedMetadataNumOperands(mod, "opencl.kernels"); @@ -88,7 +88,7 @@ static void radeon_llvm_optimize(LLVMModuleRef mod) } LLVMModuleRef radeon_llvm_get_kernel_module(LLVMContextRef ctx, unsigned index, - const unsigned char *bitcode, unsigned bitcode_len) + const char *bitcode, unsigned bitcode_len) { LLVMModuleRef mod; unsigned num_kernels; diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.h b/src/gallium/drivers/radeon/radeon_llvm_util.h index 733c329e99e..cc1932aef47 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_util.h +++ b/src/gallium/drivers/radeon/radeon_llvm_util.h @@ -30,10 +30,10 @@ #include <llvm-c/Core.h> LLVMModuleRef radeon_llvm_parse_bitcode(LLVMContextRef ctx, - const unsigned char * bitcode, unsigned bitcode_len); + const char * bitcode, unsigned bitcode_len); unsigned radeon_llvm_get_num_kernels(LLVMContextRef ctx, - const unsigned char *bitcode, unsigned bitcode_len); + const char *bitcode, unsigned bitcode_len); LLVMModuleRef radeon_llvm_get_kernel_module(LLVMContextRef ctx, unsigned index, - const unsigned char *bitcode, unsigned bitcode_len); + const char *bitcode, unsigned bitcode_len); #endif |