mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-07 06:08:16 +02:00
ac/llvm: Fix build with LLVM 23.
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:
parent
867d0b33b3
commit
5a84a6b775
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue