diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 50c157bc3cc..8b3a1522725 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -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 diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index 343aecc61cc..bb22b7bc505 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -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 diff --git a/src/gallium/drivers/llvmpipe/lp_test_arit.c b/src/gallium/drivers/llvmpipe/lp_test_arit.c index f2f428a01e0..05db2131479 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_arit.c +++ b/src/gallium/drivers/llvmpipe/lp_test_arit.c @@ -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); diff --git a/src/gallium/drivers/llvmpipe/lp_test_blend.c b/src/gallium/drivers/llvmpipe/lp_test_blend.c index 6025c970f86..daab0ef2d4a 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_test_blend.c @@ -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); diff --git a/src/gallium/drivers/llvmpipe/lp_test_conv.c b/src/gallium/drivers/llvmpipe/lp_test_conv.c index fe25175f0c1..ad95a36fb42 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_conv.c +++ b/src/gallium/drivers/llvmpipe/lp_test_conv.c @@ -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); diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c index 8c663864006..f1531879cc9 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_format.c +++ b/src/gallium/drivers/llvmpipe/lp_test_format.c @@ -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); diff --git a/src/gallium/drivers/llvmpipe/lp_test_printf.c b/src/gallium/drivers/llvmpipe/lp_test_printf.c index 390af68c5ff..ee9299b1cfa 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_printf.c +++ b/src/gallium/drivers/llvmpipe/lp_test_printf.c @@ -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);