# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/mesa/hotfix-riscv32.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- mesa-26.1.3/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp.vanilla 2026-06-22 17:13:39.932138997 +0200 +++ mesa-26.1.3/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp 2026-06-22 17:14:08.995949135 +0200 @@ -410,7 +410,7 @@ MAttrs.push_back("+fp64"); #endif -#if DETECT_ARCH_RISCV64 == 1 +#if DETECT_ARCH_RISCV32 == 1 || DETECT_ARCH_RISCV64 == 1 /* Linux currently requires IMA, so hardcode it */ MAttrs = {"+m","+a"}; MAttrs.push_back(util_get_cpu_caps()->has_rv_fd ? "+f" : "-f");