mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
gallivm: use valid LLVM_VERSION_MAJOR instead of LLVM_VERSION
Partial of: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7680
Fixes: 203920d4c6 ("gallivm: add atomic 32-bit float support")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19926>
This commit is contained in:
parent
970c8dfd98
commit
b461921ed8
1 changed files with 1 additions and 1 deletions
|
|
@ -1736,7 +1736,7 @@ visit_atomic_image(struct lp_build_nir_context *bld_base,
|
|||
case nir_intrinsic_image_atomic_fadd:
|
||||
params.op = LLVMAtomicRMWBinOpFAdd;
|
||||
break;
|
||||
#if LLVM_VERSION >= 15
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
case nir_intrinsic_image_atomic_fmin:
|
||||
params.op = LLVMAtomicRMWBinOpFMin;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue