diff options
author | José Fonseca <[email protected]> | 2014-05-08 13:25:28 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2014-05-14 11:04:59 +0100 |
commit | 9cf67e51b06b4b136d03e642b18b4a4e36a1dabb (patch) | |
tree | a79ebd49f932318ed663e6eb59629d780dffeaa4 /src/gallium/drivers/llvmpipe/lp_jit.c | |
parent | ecef2da0b2035b1043441ffd322802cfa4a9f36f (diff) |
gallivm,draw,llvmpipe: Remove support for versions of LLVM prior to 3.1.
Older versions haven't been tested probably don't work anyway. But more
importantly, code supporting it is hindering further work.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_jit.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_jit.c b/src/gallium/drivers/llvmpipe/lp_jit.c index 075bd148e88..261702f7109 100644 --- a/src/gallium/drivers/llvmpipe/lp_jit.c +++ b/src/gallium/drivers/llvmpipe/lp_jit.c @@ -57,12 +57,6 @@ lp_jit_create_types(struct lp_fragment_shader_variant *lp) viewport_type = LLVMStructTypeInContext(lc, elem_types, Elements(elem_types), 0); -#if HAVE_LLVM < 0x0300 - LLVMAddTypeName(gallivm->module, "viewport", viewport_type); - - LLVMInvalidateStructLayout(gallivm->target, viewport_type); -#endif - LP_CHECK_MEMBER_OFFSET(struct lp_jit_viewport, min_depth, gallivm->target, viewport_type, LP_JIT_VIEWPORT_MIN_DEPTH); @@ -90,11 +84,6 @@ lp_jit_create_types(struct lp_fragment_shader_variant *lp) texture_type = LLVMStructTypeInContext(lc, elem_types, Elements(elem_types), 0); -#if HAVE_LLVM < 0x0300 - LLVMAddTypeName(gallivm->module, "texture", texture_type); - - LLVMInvalidateStructLayout(gallivm->target, texture_type); -#endif LP_CHECK_MEMBER_OFFSET(struct lp_jit_texture, width, gallivm->target, texture_type, @@ -138,11 +127,6 @@ lp_jit_create_types(struct lp_fragment_shader_variant *lp) sampler_type = LLVMStructTypeInContext(lc, elem_types, Elements(elem_types), 0); -#if HAVE_LLVM < 0x0300 - LLVMAddTypeName(gallivm->module, "sampler", sampler_type); - - LLVMInvalidateStructLayout(gallivm->target, sampler_type); -#endif LP_CHECK_MEMBER_OFFSET(struct lp_jit_sampler, min_lod, gallivm->target, sampler_type, @@ -183,12 +167,6 @@ lp_jit_create_types(struct lp_fragment_shader_variant *lp) context_type = LLVMStructTypeInContext(lc, elem_types, Elements(elem_types), 0); -#if HAVE_LLVM < 0x0300 - LLVMInvalidateStructLayout(gallivm->target, context_type); - - LLVMAddTypeName(gallivm->module, "context", context_type); -#endif - LP_CHECK_MEMBER_OFFSET(struct lp_jit_context, constants, gallivm->target, context_type, LP_JIT_CTX_CONSTANTS); @@ -237,12 +215,6 @@ lp_jit_create_types(struct lp_fragment_shader_variant *lp) thread_data_type = LLVMStructTypeInContext(lc, elem_types, Elements(elem_types), 0); -#if HAVE_LLVM < 0x0300 - LLVMInvalidateStructLayout(gallivm->target, thread_data_type); - - LLVMAddTypeName(gallivm->module, "thread_data", thread_data_type); -#endif - lp->jit_thread_data_ptr_type = LLVMPointerType(thread_data_type, 0); } |