From bb085d5aaaf64962ba58f0adb6cc6585444e7e53 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 4 Jul 2025 03:17:37 -0400 Subject: [PATCH] Fix gnome-control-center bug --- 1005-fix-gnome-control-center-bug.patch | 55 +++++++++++++++++++++++++ mesa.spec | 6 ++- 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 1005-fix-gnome-control-center-bug.patch diff --git a/1005-fix-gnome-control-center-bug.patch b/1005-fix-gnome-control-center-bug.patch new file mode 100644 index 0000000..e380810 --- /dev/null +++ b/1005-fix-gnome-control-center-bug.patch @@ -0,0 +1,55 @@ +From 56da0337cbcce66e7d913bb98af4c1c06481aa44 Mon Sep 17 00:00:00 2001 +From: mgb01105731 +Date: Fri, 4 Jul 2025 03:14:54 -0400 +Subject: [PATCH 1/1] fix bug + +--- + src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp | 15 +-------------- + 1 file changed, 1 insertion(+), 14 deletions(-) + +diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp +index 17767f4..c6567bd 100644 +--- a/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp ++++ b/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp +@@ -52,12 +52,6 @@ + /* conflict with ObjectLinkingLayer.h */ + #include "util/u_memory.h" + +-#if DETECT_ARCH_RISCV64 == 1 || DETECT_ARCH_RISCV32 == 1 || DETECT_ARCH_LOONGARCH64 == 1 || (defined(_WIN32) && LLVM_VERSION_MAJOR >= 15) +-/* use ObjectLinkingLayer (JITLINK backend) */ +-#define USE_JITLINK +-#endif +-/* else use old RTDyldObjectLinkingLayer (RuntimeDyld backend) */ +- + unsigned lp_native_vector_width; + + unsigned gallivm_perf = 0; +@@ -420,24 +414,17 @@ LPJit::LPJit() :jit_dylib_count(0) { + tm = wrap(ExitOnErr(JTMB.createTargetMachine()).release()); + + /* Create an LLJIT instance with an ObjectLinkingLayer (JITLINK) +- * or RuntimeDyld as the base layer. ++ * as the base layer. + * intel & perf listeners are not supported by ObjectLinkingLayer yet + */ + lljit = ExitOnErr( + LLJITBuilder() + .setJITTargetMachineBuilder(std::move(JTMB)) +-#ifdef USE_JITLINK + .setObjectLinkingLayerCreator( + [&](ExecutionSession &ES, const llvm::Triple &TT) { + return std::make_unique( + ES, ExitOnErr(llvm::jitlink::InProcessMemoryManager::Create())); + }) +-#else +-#if LLVM_USE_INTEL_JITEVENTS +- .RegisterJITEventListener( +- llvm::JITEventListener::createIntelJITEventListener()) +-#endif +-#endif + .create()); + + LLVMOrcIRTransformLayerRef TL = wrap(&lljit->getIRTransformLayer()); +-- +2.41.0 + diff --git a/mesa.spec b/mesa.spec index ac737cb..5296236 100644 --- a/mesa.spec +++ b/mesa.spec @@ -1,4 +1,4 @@ -%define anolis_release 8 +%define anolis_release 9 %global with_hardware 1 %global with_vulkan_hw 1 @@ -59,6 +59,7 @@ Patch14: 0001-add_loongarch64_basic_support.patch Patch15: 0002-llvmpipe-support-loongarch64-orcjit.patch Patch16: 0003-llvmpipe-remove-useless-code.patch Patch17: 0004-add-loongarch64-macro-define.patch +Patch18: 1005-fix-gnome-control-center-bug.patch BuildRequires: meson BuildRequires: gcc @@ -647,6 +648,9 @@ popd %endif %changelog +* Fri Jul 04 2025 mgb01105731 - 23.3.0-9 +- Fix gnome-control-center bug + * Tue Jun 3 2025 zhoujiajia111 - 23.3.0-8 - Provide tar package using download file -- Gitee