diff --git a/0003-llvmpipe-remove-useless-code.patch b/0003-llvmpipe-remove-useless-code.patch new file mode 100644 index 0000000000000000000000000000000000000000..f99c93b7a2373366f9710818301a2772d38ebd7b --- /dev/null +++ b/0003-llvmpipe-remove-useless-code.patch @@ -0,0 +1,28 @@ +From 9ca36b443cc0443bab2a7a8a804e986f76250684 Mon Sep 17 00:00:00 2001 +From: zhaojiale +Date: Mon, 13 May 2024 17:35:30 +0800 +Subject: [PATCH] llvmpipe: remove useless code + +Signed-off-by: zhaojiale +--- + src/gallium/auxiliary/gallivm/lp_bld_arit.c | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c +index 055ab20..d0264e4 100644 +--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c ++++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c +@@ -2390,10 +2390,6 @@ lp_build_iround(struct lp_build_context *bld, + } + + res = LLVMBuildFPToSI(builder, res, int_vec_type, ""); +- if (type.sign) +- res = LLVMBuildFPToSI(builder, res, int_vec_type, ""); +- else +- res = LLVMBuildFPToUI(builder, res, int_vec_type, ""); + + return res; + } +-- +2.1.0 + diff --git a/mesa.spec b/mesa.spec index 4e6fdb648c84beaf0b81abc2c111d2d55ad04bca..e4972be3dea42e100080bbdd6b4a2dbd15e241ac 100644 --- a/mesa.spec +++ b/mesa.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 %global with_hardware 1 %global with_vulkan_hw 1 @@ -51,6 +51,7 @@ Patch12: 0001-26018_upstream_orcjit.patch Patch13: 0002-26018_upstream_orcjit_patch_update.patch Patch14: 0001-add_loongarch64_basic_support.patch Patch15: 0002-llvmpipe-support-loongarch64-orcjit.patch +Patch16: 0003-llvmpipe-remove-useless-code.patch BuildRequires: meson BuildRequires: gcc @@ -639,6 +640,9 @@ popd %endif %changelog +* Mon May 13 2024 Jiale Zhao - 23.3.0-4 +- Remove useless code + * Sun May 12 2024 Jiale Zhao - 23.3.0-3 - Add upstream orcjit patch and support loongarch64 orcjit