ac/llvm: Fix build with LLVM 23.
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Simple ac_llvm_context vs LLVMContextRef mixup.

Fixes: c431eaad63 ("ac/llvm: Use new denormal_fpenv attribute for llvm >= 23")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40419>
This commit is contained in:
Bas Nieuwenhuizen 2026-03-14 15:38:30 +01:00 committed by Marge Bot
parent 867d0b33b3
commit 5a84a6b775

View file

@ -3574,7 +3574,7 @@ struct ac_llvm_pointer ac_build_main(const struct ac_shader_args *args, struct a
/* Enable denormals for FP16 and FP64, disable denormals for FP32 */
#if LLVM_VERSION_MAJOR >= 23
LLVMAttributeRef fpenv_attr = LLVMCreateDenormalFPEnvAttribute(ctx,
LLVMAttributeRef fpenv_attr = LLVMCreateDenormalFPEnvAttribute(ctx->context,
LLVMDenormalModeKindIEEE,
LLVMDenormalModeKindIEEE,
LLVMDenormalModeKindPreserveSign,