Commit 06e60d22 authored by Marek Olšák's avatar Marek Olšák
Browse files

amd,gallium: disable opaque pointers to fix LLVM users

This is a temporary workaround. It will eventually stop working.
parent 92e61dce
Pipeline #612708 waiting for manual action with stages
in 12 seconds
......@@ -62,6 +62,9 @@ void ac_llvm_context_init(struct ac_llvm_context *ctx, struct ac_llvm_compiler *
unsigned ballot_mask_bits)
{
ctx->context = LLVMContextCreate();
#if LLVM_VERSION_MAJOR >= 15
LLVMContextSetOpaquePointers(ctx->context, false);
#endif
ctx->gfx_level = gfx_level;
ctx->family = family;
......
......@@ -794,6 +794,12 @@ draw_llvm_create(struct draw_context *draw, LLVMContextRef context)
if (!llvm->context) {
llvm->context = LLVMContextCreate();
llvm->context_owned = true;
#if LLVM_VERSION_MAJOR >= 15
if (llvm->context)
LLVMContextSetOpaquePointers(llvm->context, false);
#endif
}
if (!llvm->context)
goto fail;
......
......@@ -245,6 +245,10 @@ llvmpipe_create_context(struct pipe_screen *screen, void *priv,
if (!llvmpipe->context)
goto fail;
#if LLVM_VERSION_MAJOR >= 15
LLVMContextSetOpaquePointers(llvmpipe->context, false);
#endif
/*
* Create drawing context and plug our rendering stage into it.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment