mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
fix: gallivm: limit usage of LLVMContextSetOpaquePointers() to LLVM 15
LLVMContextSetOpaquePointers() was a temporary workaround offered to
allow transitioning to opaque pointers. Mesa is ready for this now with
recent versions of LLVM (16+). Therefore we limit the workaround of
using LLVMContextSetOpaquePointers() to LLVM 15 now, that this C
interface was removed in LLVM 17.
Reference: 1270879376
Suggested-by: Dave Airlie <airlied@redhat.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8183
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21124>
This commit is contained in:
parent
569517d7ad
commit
1d5d07e565
7 changed files with 8 additions and 8 deletions
|
|
@ -784,7 +784,7 @@ draw_llvm_create(struct draw_context *draw, LLVMContextRef context)
|
|||
if (!llvm->context) {
|
||||
llvm->context = LLVMContextCreate();
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(llvm->context, false);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ llvmpipe_create_context(struct pipe_screen *screen, void *priv,
|
|||
if (!llvmpipe->context)
|
||||
goto fail;
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(llvmpipe->context, false);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -434,7 +434,7 @@ test_unary(unsigned verbose, FILE *fp, const struct unary_test_t *test, unsigned
|
|||
}
|
||||
|
||||
context = LLVMContextCreate();
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(context, false);
|
||||
#endif
|
||||
gallivm = gallivm_create("test_module", context, NULL);
|
||||
|
|
|
|||
|
|
@ -452,7 +452,7 @@ test_one(unsigned verbose,
|
|||
dump_blend_type(stdout, blend, type);
|
||||
|
||||
context = LLVMContextCreate();
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(context, false);
|
||||
#endif
|
||||
gallivm = gallivm_create("test_module", context, NULL);
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ test_one(unsigned verbose,
|
|||
}
|
||||
|
||||
context = LLVMContextCreate();
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(context, false);
|
||||
#endif
|
||||
gallivm = gallivm_create("test_module", context, NULL);
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ test_format_float(unsigned verbose, FILE *fp,
|
|||
unsigned i, j, k, l;
|
||||
|
||||
context = LLVMContextCreate();
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(context, false);
|
||||
#endif
|
||||
gallivm = gallivm_create("test_module_float", context, NULL);
|
||||
|
|
@ -254,7 +254,7 @@ test_format_unorm8(unsigned verbose, FILE *fp,
|
|||
unsigned i, j, k, l;
|
||||
|
||||
context = LLVMContextCreate();
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(context, false);
|
||||
#endif
|
||||
gallivm = gallivm_create("test_module_unorm8", context, NULL);
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ test_printf(unsigned verbose, FILE *fp,
|
|||
boolean success = TRUE;
|
||||
|
||||
context = LLVMContextCreate();
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#if LLVM_VERSION_MAJOR == 15
|
||||
LLVMContextSetOpaquePointers(context, false);
|
||||
#endif
|
||||
gallivm = gallivm_create("test_module", context, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue