From 199aa14a4831b0ab005bcdabb8fb5befc128d7b1834236a24a4b62f57d9965e6 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Fri, 8 Dec 2023 17:49:35 +0000 Subject: [PATCH 1/6] Accepting request 1130356 from home:iznogood:factory New stable release. Not sure if more changes are needed to enable the new NVK experimental driver, please verify OBS-URL: https://build.opensuse.org/request/show/1130356 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1248 --- Mesa.changes | 31 ++++- Mesa.spec | 21 ++- ...ver-llvm-move-to-modern-pass-manager.patch | 127 ------------------ U_fix-mpeg1_2-decode-mesa-20.2.patch | 9 +- ...function-with-si_-to-prevent-name-co.patch | 75 ----------- mesa-23.2.1.tar.xz | 3 - mesa-23.2.1.tar.xz.sig | Bin 119 -> 0 bytes mesa-23.3.0.tar.xz | 3 + mesa-23.3.0.tar.xz.sig | Bin 0 -> 310 bytes n_add-Mesa-headers-again.patch | 8 +- n_stop-iris-flicker.patch | 8 +- u_dep_xcb.patch | 16 +-- 12 files changed, 62 insertions(+), 239 deletions(-) delete mode 100644 U_clover-llvm-move-to-modern-pass-manager.patch delete mode 100644 U_radeonsi-prefix-function-with-si_-to-prevent-name-co.patch delete mode 100644 mesa-23.2.1.tar.xz delete mode 100644 mesa-23.2.1.tar.xz.sig create mode 100644 mesa-23.3.0.tar.xz create mode 100644 mesa-23.3.0.tar.xz.sig diff --git a/Mesa.changes b/Mesa.changes index 5762f21..7a125e1 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Fri Dec 1 20:10:26 UTC 2023 - Bjørn Lie + +- Update to version 23.3.0: + * It includes NVK, a new reverse-engineered Vulkan driver for + Nvidia hardware. This driver is still in experimental phase, + not quite ready for prime time yet, but adventurous users can + give it a go! + * New extensions & features (in no particular order): + - VK_EXT_pipeline_robustness on ANV + - VK_KHR_maintenance5 on RADV + - OpenGL ES 3.1 on Asahi + - GL_ARB_compute_shader on Asahi + - GL_ARB_shader_atomic_counters on Asahi + - GL_ARB_shader_image_load_store on Asahi + - GL_ARB_shader_image_size on Asahi + - GL_ARB_shader_storage_buffer_object on Asahi + - GL_ARB_sample_shading on Asahi + - GL_OES_sample_variables on Asahi + - GL_OES_shader_multisample_interpolation on Asahi + - GL_OES_gpu_shader5 on Asahi + - EGL_ANDROID_blob_cache works when disk caching is disabled + - VK_KHR_cooperative_matrix on RADV/GFX11+ +- Drop patches fixed upstream: + * U_clover-llvm-move-to-modern-pass-manager.patch + * U_radeonsi-prefix-function-with-si_-to-prevent-name-co.patch +- Refresh patches with quilt. +- Use %patch -p N instead of deprecated %patchN. + ------------------------------------------------------------------- Mon Nov 20 14:53:17 UTC 2023 - Stefan Dirsch @@ -14,7 +43,7 @@ Mon Nov 20 14:44:53 UTC 2023 - Stefan Dirsch ------------------------------------------------------------------- Mon Nov 20 14:40:06 UTC 2023 - Stefan Dirsch -- enable rusticl on sle15-sp6 +- enable rusticl on sle15-sp6 ------------------------------------------------------------------- Fri Nov 17 14:14:06 UTC 2023 - Stefan Dirsch diff --git a/Mesa.spec b/Mesa.spec index e142b31..cd15d6e 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -42,7 +42,7 @@ %define glamor 1 %define _name_archive mesa -%define _version 23.2.1 +%define _version 23.3.0 %define with_opencl 0 %define with_rusticl 0 %define with_vulkan 0 @@ -123,7 +123,7 @@ %endif Name: Mesa%{psuffix} -Version: 23.2.1 +Version: 23.3.0 Release: 0 Summary: System for rendering 3-D graphics License: MIT @@ -138,9 +138,6 @@ Source4: manual-pages.tar.bz2 Source6: Mesa-rpmlintrc Source7: Mesa.keyring Patch2: n_add-Mesa-headers-again.patch -# Patches for LLVM 17, should all be in 23.2. -Patch4: U_clover-llvm-move-to-modern-pass-manager.patch -Patch10: U_radeonsi-prefix-function-with-si_-to-prevent-name-co.patch # never to be upstreamed Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch58: u_dep_xcb.patch @@ -752,17 +749,15 @@ programs against the XA state tracker. # remove some docs rm -rf docs/README.{VMS,WIN32,OS2} -%patch2 -p1 -%patch4 -p1 -%patch10 -p1 +%patch -P 2 -p1 # no longer needed since gstreamer-plugins-vaapi 1.18.4 %if 0%{?suse_version} < 1550 -%patch54 -p1 +%patch -P 54 -p1 %endif -%patch58 -p1 -%patch100 -p1 -#%patch200 -p1 -%patch400 -p1 +%patch -P 58 -p1 +%patch -P 100 -p1 +#%patch -P 200 -p1 +%patch -P 400 -p1 # Remove requires to vulkan libs from baselibs.conf on platforms # where vulkan build is disabled; ugly ... diff --git a/U_clover-llvm-move-to-modern-pass-manager.patch b/U_clover-llvm-move-to-modern-pass-manager.patch deleted file mode 100644 index a21a9ee..0000000 --- a/U_clover-llvm-move-to-modern-pass-manager.patch +++ /dev/null @@ -1,127 +0,0 @@ -From 2d4fe5f229791fde52846b3f583c12508b5109d6 Mon Sep 17 00:00:00 2001 -From: Dave Airlie -Date: Fri, 25 Aug 2023 12:43:44 +1000 -Subject: [PATCH] clover/llvm: move to modern pass manager. -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This seems like it should work, but I haven't tested it yet. - -Tested-by: Dieter Nützel -Part-of: ---- - .../frontends/clover/llvm/invocation.cpp | 64 +++++++++++++++---- - 1 file changed, 51 insertions(+), 13 deletions(-) - -diff --git a/src/gallium/frontends/clover/llvm/invocation.cpp b/src/gallium/frontends/clover/llvm/invocation.cpp -index 7a50fea3323..43d26fe1abb 100644 ---- a/src/gallium/frontends/clover/llvm/invocation.cpp -+++ b/src/gallium/frontends/clover/llvm/invocation.cpp -@@ -27,13 +27,17 @@ - #include - #include - #include -+#include - #include --#include -+#include - #include - #ifdef HAVE_CLOVER_SPIRV - #include - #endif - -+#include -+#include -+#include - #include - #include - #include -@@ -439,10 +443,10 @@ clover::llvm::compile_program(const std::string &source, - - namespace { - void -- optimize(Module &mod, unsigned optimization_level, -+ optimize(Module &mod, -+ const std::string& ir_target, -+ unsigned optimization_level, - bool internalize_symbols) { -- ::llvm::legacy::PassManager pm; -- - // By default, the function internalizer pass will look for a function - // called "main" and then mark all other functions as internal. Marking - // functions as internal enables the optimizer to perform optimizations -@@ -458,19 +462,53 @@ namespace { - if (internalize_symbols) { - std::vector names = - map(std::mem_fn(&Function::getName), get_kernels(mod)); -- pm.add(::llvm::createInternalizePass( -+ internalizeModule(mod, - [=](const ::llvm::GlobalValue &gv) { - return std::find(names.begin(), names.end(), - gv.getName()) != names.end(); -- })); -+ }); - } - -- ::llvm::PassManagerBuilder pmb; -- pmb.OptLevel = optimization_level; -- pmb.LibraryInfo = new ::llvm::TargetLibraryInfoImpl( -- ::llvm::Triple(mod.getTargetTriple())); -- pmb.populateModulePassManager(pm); -- pm.run(mod); -+ -+ const char *opt_str = NULL; -+ LLVMCodeGenOptLevel level; -+ switch (optimization_level) { -+ case 0: -+ default: -+ opt_str = "default"; -+ level = LLVMCodeGenLevelNone; -+ break; -+ case 1: -+ opt_str = "default"; -+ level = LLVMCodeGenLevelLess; -+ break; -+ case 2: -+ opt_str = "default"; -+ level = LLVMCodeGenLevelDefault; -+ break; -+ case 3: -+ opt_str = "default"; -+ level = LLVMCodeGenLevelAggressive; -+ break; -+ } -+ -+ const target &target = ir_target; -+ LLVMTargetRef targ; -+ char *err_message; -+ -+ if (LLVMGetTargetFromTriple(target.triple.c_str(), &targ, &err_message)) -+ return; -+ LLVMTargetMachineRef tm = -+ LLVMCreateTargetMachine(targ, target.triple.c_str(), -+ target.cpu.c_str(), "", level, -+ LLVMRelocDefault, LLVMCodeModelDefault); -+ -+ if (!tm) -+ return; -+ LLVMPassBuilderOptionsRef opts = LLVMCreatePassBuilderOptions(); -+ LLVMRunPasses(wrap(&mod), opt_str, tm, opts); -+ -+ LLVMDisposeTargetMachine(tm); - } - - std::unique_ptr -@@ -500,7 +538,7 @@ clover::llvm::link_program(const std::vector &binaries, - auto c = create_compiler_instance(dev, dev.ir_target(), options, r_log); - auto mod = link(*ctx, *c, binaries, r_log); - -- optimize(*mod, c->getCodeGenOpts().OptimizationLevel, !create_library); -+ optimize(*mod, dev.ir_target(), c->getCodeGenOpts().OptimizationLevel, !create_library); - - static std::atomic_uint seq(0); - const std::string id = "." + mod->getModuleIdentifier() + "-" + --- -2.42.0 - diff --git a/U_fix-mpeg1_2-decode-mesa-20.2.patch b/U_fix-mpeg1_2-decode-mesa-20.2.patch index 501b751..fd9eaf9 100644 --- a/U_fix-mpeg1_2-decode-mesa-20.2.patch +++ b/U_fix-mpeg1_2-decode-mesa-20.2.patch @@ -3,9 +3,11 @@ src/gallium/drivers/r600/evergreen_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---- a/src/gallium/drivers/r600/evergreen_state.c -+++ b/src/gallium/drivers/r600/evergreen_state.c -@@ -580,7 +580,8 @@ static void *evergreen_create_sampler_st +Index: mesa-23.3.0/src/gallium/drivers/r600/evergreen_state.c +=================================================================== +--- mesa-23.3.0.orig/src/gallium/drivers/r600/evergreen_state.c ++++ mesa-23.3.0/src/gallium/drivers/r600/evergreen_state.c +@@ -598,7 +598,8 @@ static void *evergreen_create_sampler_st : state->max_anisotropy; unsigned max_aniso_ratio = r600_tex_aniso_filter(max_aniso); bool trunc_coord = state->min_img_filter == PIPE_TEX_FILTER_NEAREST && @@ -15,4 +17,3 @@ float max_lod = state->max_lod; if (!ss) { --- diff --git a/U_radeonsi-prefix-function-with-si_-to-prevent-name-co.patch b/U_radeonsi-prefix-function-with-si_-to-prevent-name-co.patch deleted file mode 100644 index c55cbf4..0000000 --- a/U_radeonsi-prefix-function-with-si_-to-prevent-name-co.patch +++ /dev/null @@ -1,75 +0,0 @@ -From 9590bce3e249a34665b2c42b20bfdbdc7f32147f Mon Sep 17 00:00:00 2001 -From: WinLinux1028 -Date: Tue, 11 Jul 2023 18:16:01 +0900 -Subject: [PATCH] radeonsi: prefix function with si_ to prevent name collision - -Fixed a build error caused by multiple gfx11_init_query symbols when building with iris and radeonsi specified in gallium-drivers. - -Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9238 -Part-of: ---- - src/gallium/drivers/radeonsi/gfx11_query.c | 4 ++-- - src/gallium/drivers/radeonsi/si_pipe.c | 4 ++-- - src/gallium/drivers/radeonsi/si_pipe.h | 4 ++-- - 3 files changed, 6 insertions(+), 6 deletions(-) - -diff --git a/src/gallium/drivers/radeonsi/gfx11_query.c b/src/gallium/drivers/radeonsi/gfx11_query.c -index bfcd8e25110..2a331cc3bda 100644 ---- a/src/gallium/drivers/radeonsi/gfx11_query.c -+++ b/src/gallium/drivers/radeonsi/gfx11_query.c -@@ -422,13 +422,13 @@ struct pipe_query *gfx11_sh_query_create(struct si_screen *screen, enum pipe_que - return (struct pipe_query *)query; - } - --void gfx11_init_query(struct si_context *sctx) -+void si_gfx11_init_query(struct si_context *sctx) - { - list_inithead(&sctx->shader_query_buffers); - sctx->atoms.s.shader_query.emit = emit_shader_query; - } - --void gfx11_destroy_query(struct si_context *sctx) -+void si_gfx11_destroy_query(struct si_context *sctx) - { - if (!sctx->shader_query_buffers.next) - return; -diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c -index fb5c02c473b..2b4fceb89b1 100644 ---- a/src/gallium/drivers/radeonsi/si_pipe.c -+++ b/src/gallium/drivers/radeonsi/si_pipe.c -@@ -192,7 +192,7 @@ static void si_destroy_context(struct pipe_context *context) - si_release_all_descriptors(sctx); - - if (sctx->gfx_level >= GFX10 && sctx->has_graphics) -- gfx11_destroy_query(sctx); -+ si_gfx11_destroy_query(sctx); - - if (sctx->sqtt) { - struct si_screen *sscreen = sctx->screen; -@@ -637,7 +637,7 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, unsign - /* Initialize graphics-only context functions. */ - if (sctx->has_graphics) { - if (sctx->gfx_level >= GFX10) -- gfx11_init_query(sctx); -+ si_gfx11_init_query(sctx); - si_init_msaa_functions(sctx); - si_init_shader_functions(sctx); - si_init_state_functions(sctx); -diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h -index 55f1d1788f1..389716854f9 100644 ---- a/src/gallium/drivers/radeonsi/si_pipe.h -+++ b/src/gallium/drivers/radeonsi/si_pipe.h -@@ -1616,8 +1616,8 @@ void *si_create_query_result_cs(struct si_context *sctx); - void *gfx11_create_sh_query_result_cs(struct si_context *sctx); - - /* gfx11_query.c */ --void gfx11_init_query(struct si_context *sctx); --void gfx11_destroy_query(struct si_context *sctx); -+void si_gfx11_init_query(struct si_context *sctx); -+void si_gfx11_destroy_query(struct si_context *sctx); - - /* si_test_image_copy_region.c */ - void si_test_image_copy_region(struct si_screen *sscreen); --- -2.41.0 - diff --git a/mesa-23.2.1.tar.xz b/mesa-23.2.1.tar.xz deleted file mode 100644 index 6c78768..0000000 --- a/mesa-23.2.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:64de0616fc2d801f929ab1ac2a4f16b3e2783c4309a724c8a259b20df8bbc1cc -size 18855304 diff --git a/mesa-23.2.1.tar.xz.sig b/mesa-23.2.1.tar.xz.sig deleted file mode 100644 index f9710bed9c7b214028c3543fb86943848d5948fffb79172e3603fb54977cee5d..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmeAuWnmEGVvrS6WGOtdJxpOwX+gL5ZB?JCzgF9AD1O7rlq&ksn}Lf{04DOcfstXE z+3hv`vOKO2-dE&JJARF~W4-g8rk!rvx4hlxE4x{^nUP_ob^W4kp8Bj}CzP)J5?W|e V#^HTn-%GV+Gj6hYO+M+v2LN*vGpGOn diff --git a/mesa-23.3.0.tar.xz b/mesa-23.3.0.tar.xz new file mode 100644 index 0000000..0d32b38 --- /dev/null +++ b/mesa-23.3.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50f729dd60ed6335b989095baad81ef5edf7cfdd4b4b48b9b955917cb07d69c5 +size 19234688 diff --git a/mesa-23.3.0.tar.xz.sig b/mesa-23.3.0.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..a813a3ec03f152a08e38e8f186c077ff5dfa1fb1afce03ddafd35a32be408772 GIT binary patch literal 310 zcmV-60m=S}0W$;u0SEvc79j*zRUP45mXBjW!btXwjxn#pBq*i@0%d2DCIAWv5RHy8 zufrrLrZ2w-`v(mt&PW<6-qe~RtN^jQ>I6VLB~B+8Y2ORo30XDFO?<@sg^v9~8G+TS z0QVv8`CnZnd7R0PBg&LR8kA7w+kL_)J?a_N3lYFU=u_95?kmrx=Nb57p53PmY+7_Z zGFnw+p_Hf4!vPNDo&2+nN4ha|_kjAznXIrD=#n65IIM=ejzlxtgv1_PKSQX9p(x38 zni^etyt@n}e`rg)2eJf^J8b_)QPI!U66}#ZgCE?#+93o!xifB+O{sV@5}1e0%);q9 zgem_handle, .offset = bo->address, diff --git a/u_dep_xcb.patch b/u_dep_xcb.patch index e92160f..759527d 100644 --- a/u_dep_xcb.patch +++ b/u_dep_xcb.patch @@ -1,8 +1,8 @@ -Index: mesa-23.1.1/meson.build +Index: mesa-23.3.0/meson.build =================================================================== ---- mesa-23.1.1.orig/meson.build -+++ mesa-23.1.1/meson.build -@@ -1966,9 +1966,11 @@ if with_platform_x11 +--- mesa-23.3.0.orig/meson.build ++++ mesa-23.3.0/meson.build +@@ -2022,9 +2022,11 @@ if with_platform_x11 endif endif if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm') @@ -14,11 +14,11 @@ Index: mesa-23.1.1/meson.build dep_xcb_dri3 = dependency('xcb-dri3') dep_xcb_present = dependency('xcb-present') # until xcb-dri3 has been around long enough to make a hard-dependency: -Index: mesa-23.1.1/src/loader/meson.build +Index: mesa-23.3.0/src/loader/meson.build =================================================================== ---- mesa-23.1.1.orig/src/loader/meson.build -+++ mesa-23.1.1/src/loader/meson.build -@@ -46,6 +46,6 @@ libloader = static_library( +--- mesa-23.3.0.orig/src/loader/meson.build ++++ mesa-23.3.0/src/loader/meson.build +@@ -47,6 +47,6 @@ libloader = static_library( c_args : loader_c_args, gnu_symbol_visibility : 'hidden', include_directories : [inc_include, inc_src, inc_util], From f7553d3f698fc70d8194fe7f4bb30821313928618c27500479746e0a579ea270 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Sat, 6 Jan 2024 14:46:20 +0000 Subject: [PATCH 2/6] - Update to bugfix release 23.3.2 --> https://docs.mesa3d.org/relnotes/23.3.2.html OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1249 --- Mesa.changes | 6 ++++++ Mesa.spec | 6 +++--- mesa-23.3.0.tar.xz | 3 --- mesa-23.3.0.tar.xz.sig | Bin 310 -> 0 bytes mesa-23.3.2.tar.xz | 3 +++ mesa-23.3.2.tar.xz.sig | Bin 0 -> 310 bytes 6 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 mesa-23.3.0.tar.xz delete mode 100644 mesa-23.3.0.tar.xz.sig create mode 100644 mesa-23.3.2.tar.xz create mode 100644 mesa-23.3.2.tar.xz.sig diff --git a/Mesa.changes b/Mesa.changes index 7a125e1..e1d51c1 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jan 6 14:24:41 UTC 2024 - Stefan Dirsch + +- Update to bugfix release 23.3.2 + --> https://docs.mesa3d.org/relnotes/23.3.2.html + ------------------------------------------------------------------- Fri Dec 1 20:10:26 UTC 2023 - Bjørn Lie diff --git a/Mesa.spec b/Mesa.spec index cd15d6e..90c9ca6 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -42,7 +42,7 @@ %define glamor 1 %define _name_archive mesa -%define _version 23.3.0 +%define _version 23.3.2 %define with_opencl 0 %define with_rusticl 0 %define with_vulkan 0 @@ -123,7 +123,7 @@ %endif Name: Mesa%{psuffix} -Version: 23.3.0 +Version: 23.3.2 Release: 0 Summary: System for rendering 3-D graphics License: MIT diff --git a/mesa-23.3.0.tar.xz b/mesa-23.3.0.tar.xz deleted file mode 100644 index 0d32b38..0000000 --- a/mesa-23.3.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50f729dd60ed6335b989095baad81ef5edf7cfdd4b4b48b9b955917cb07d69c5 -size 19234688 diff --git a/mesa-23.3.0.tar.xz.sig b/mesa-23.3.0.tar.xz.sig deleted file mode 100644 index a813a3ec03f152a08e38e8f186c077ff5dfa1fb1afce03ddafd35a32be408772..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SEvc79j*zRUP45mXBjW!btXwjxn#pBq*i@0%d2DCIAWv5RHy8 zufrrLrZ2w-`v(mt&PW<6-qe~RtN^jQ>I6VLB~B+8Y2ORo30XDFO?<@sg^v9~8G+TS z0QVv8`CnZnd7R0PBg&LR8kA7w+kL_)J?a_N3lYFU=u_95?kmrx=Nb57p53PmY+7_Z zGFnw+p_Hf4!vPNDo&2+nN4ha|_kjAznXIrD=#n65IIM=ejzlxtgv1_PKSQX9p(x38 zni^etyt@n}e`rg)2eJf^J8b_)QPI!U66}#ZgCE?#+93o!xifB+O{sV@5}1e0%);q9 zpluixK-fkh63+6TZq8Eg|=l;~_w7*9AwZa#l>#fO>3NPz1G51!wm z;oxUMRSSv6P z%T|8f60C>s(FIWsq4z4~ZQj{CznQ==RP9pUHQ4c9PA54cYnmKKT_2Qso$JhZI1P;k IZ?}2%)a|^I=>Px# literal 0 HcmV?d00001 From bccdc80f1afac0391f0b163a2b263cc07eadee041cbd2873089201586e447daa Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Thu, 11 Jan 2024 14:56:27 +0000 Subject: [PATCH 3/6] - Update to bugfix release 23.3.3 --> https://docs.mesa3d.org/relnotes/23.3.3.html OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1250 --- Mesa.changes | 6 ++++++ Mesa.spec | 4 ++-- mesa-23.3.2.tar.xz | 3 --- mesa-23.3.2.tar.xz.sig | Bin 310 -> 0 bytes mesa-23.3.3.tar.xz | 3 +++ mesa-23.3.3.tar.xz.sig | Bin 0 -> 310 bytes 6 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 mesa-23.3.2.tar.xz delete mode 100644 mesa-23.3.2.tar.xz.sig create mode 100644 mesa-23.3.3.tar.xz create mode 100644 mesa-23.3.3.tar.xz.sig diff --git a/Mesa.changes b/Mesa.changes index e1d51c1..c6d952e 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 11 11:41:17 UTC 2024 - Stefan Dirsch + +- Update to bugfix release 23.3.3 + --> https://docs.mesa3d.org/relnotes/23.3.3.html + ------------------------------------------------------------------- Sat Jan 6 14:24:41 UTC 2024 - Stefan Dirsch diff --git a/Mesa.spec b/Mesa.spec index 90c9ca6..380348a 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -42,7 +42,7 @@ %define glamor 1 %define _name_archive mesa -%define _version 23.3.2 +%define _version 23.3.3 %define with_opencl 0 %define with_rusticl 0 %define with_vulkan 0 @@ -123,7 +123,7 @@ %endif Name: Mesa%{psuffix} -Version: 23.3.2 +Version: 23.3.3 Release: 0 Summary: System for rendering 3-D graphics License: MIT diff --git a/mesa-23.3.2.tar.xz b/mesa-23.3.2.tar.xz deleted file mode 100644 index 9436a37..0000000 --- a/mesa-23.3.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3cfcb81fa16f89c56abe3855d2637d396ee4e03849b659000a6b8e5f57e69adc -size 19365140 diff --git a/mesa-23.3.2.tar.xz.sig b/mesa-23.3.2.tar.xz.sig deleted file mode 100644 index 74d2db41e85426e53143350ff32f7052cea32a5ff546786655c09a3f7b7ea80f..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SEvc79j*zRUP45mXBjW!btXwjxn#pBq*i@0%eS*MgR&45RHy8 zufrrLrYmp<{0XnpZwj(k`-{22VN2s|*)wvz266!_#pU*GYp!VU;v=2mjx+0Q!~Q|z zVU1-IS@-c3Ov>pluixK-fkh63+6TZq8Eg|=l;~_w7*9AwZa#l>#fO>3NPz1G51!wm z;oxUMRSSv6P z%T|8f60C>s(FIWsq4z4~ZQj{CznQ==RP9pUHQ4c9PA54cYnmKKT_2Qso$JhZI1P;k IZ?}2%)a|^I=>Px# diff --git a/mesa-23.3.3.tar.xz b/mesa-23.3.3.tar.xz new file mode 100644 index 0000000..1c0ee00 --- /dev/null +++ b/mesa-23.3.3.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:518307c0057fa3cee8b58df78be431d4df5aafa7edc60d09278b2d7a0a80f3b4 +size 19379484 diff --git a/mesa-23.3.3.tar.xz.sig b/mesa-23.3.3.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..c3be7b90e0a7c34274ea3ea62a3b82d81ef796c0285a1c9256b747257f5d5491 GIT binary patch literal 310 zcmV-60m=S}0W$;u0SEvc79j*zRUP45mXBjW!btXwjxn#pBq*i@0%e~8qDj z8%{XkC-S9gc*xrn!0C6=`2+Y6_a5!4tHAAEj(C*<+tFJTMsVh@Y>jA^*r?#vSviC! zjH(W|_{d^Pi@!34EhU5)%Uureka*h2@4CEk;VrezN3y7znrdyAHw2`hk3N{%Owj4o zJ@f7}RQDfrr$#0wfDaXB8u;u@4xN4gXLQ_qKEj?+Kutk58L5-K;-rNufU)&ZMa Date: Sat, 20 Jan 2024 11:01:04 +0000 Subject: [PATCH 4/6] - let Mesa-dri require libvulkan1 to get zink/swrast driver fallbacks working (hopefully); probably related: https://gitlab.freedesktop.org/mesa/mesa/-/commit/2a71f06f2938678d89d5ed1372cda6a7b55d964d OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1251 --- Mesa.changes | 7 +++++++ Mesa.spec | 1 + 2 files changed, 8 insertions(+) diff --git a/Mesa.changes b/Mesa.changes index c6d952e..f14f0e0 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jan 20 10:43:27 UTC 2024 - Stefan Dirsch + +- let Mesa-dri require libvulkan1 to get zink/swrast driver + fallbacks working (hopefully); probably related: + https://gitlab.freedesktop.org/mesa/mesa/-/commit/2a71f06f2938678d89d5ed1372cda6a7b55d964d + ------------------------------------------------------------------- Thu Jan 11 11:41:17 UTC 2024 - Stefan Dirsch diff --git a/Mesa.spec b/Mesa.spec index 380348a..b4b4bbb 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -503,6 +503,7 @@ the Mesa-libGLES* packages. Summary: DRI plug-ins for 3D acceleration Group: System/Libraries Requires: Mesa = %{version} +Requires: libvulkan1 Supplements: Mesa %description -n Mesa-dri From 3214aee2cad9a085030a9ec22707057a572ccd0724483eba2d25e5d02a7ccb09 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Sat, 20 Jan 2024 13:49:19 +0000 Subject: [PATCH 5/6] - python36-buildfix.patch * src/freedreno/registers/gen_header.py: hopefully fixes aarch64 build - u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch python36-buildfix.patch * fixes build against python 3.6 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1252 --- Mesa.changes | 15 ++++ Mesa.spec | 7 ++ python36-buildfix.patch | 76 ++++++++++++++++++ ...p-from-__future__-import-annotations.patch | 54 +++++++++++++ ...-a-untyped-OrderedDict-fallback-for-.patch | 78 +++++++++++++++++++ 5 files changed, 230 insertions(+) create mode 100644 python36-buildfix.patch create mode 100644 u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch create mode 100644 u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch diff --git a/Mesa.changes b/Mesa.changes index f14f0e0..f4784b8 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Sat Jan 20 13:04:02 UTC 2024 - Stefan Dirsch + +- python36-buildfix.patch + * src/freedreno/registers/gen_header.py: hopefully fixes aarch64 + build + +------------------------------------------------------------------- +Sat Jan 20 11:22:42 UTC 2024 - Stefan Dirsch + +- u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch + u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch + python36-buildfix.patch + * fixes build against python 3.6 + ------------------------------------------------------------------- Sat Jan 20 10:43:27 UTC 2024 - Stefan Dirsch diff --git a/Mesa.spec b/Mesa.spec index b4b4bbb..9c1eefb 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -138,6 +138,9 @@ Source4: manual-pages.tar.bz2 Source6: Mesa-rpmlintrc Source7: Mesa.keyring Patch2: n_add-Mesa-headers-again.patch +Patch11: u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch +Patch12: u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch +Patch13: python36-buildfix.patch # never to be upstreamed Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch58: u_dep_xcb.patch @@ -751,6 +754,10 @@ programs against the XA state tracker. rm -rf docs/README.{VMS,WIN32,OS2} %patch -P 2 -p1 +# fixes build against python 3.6 +%patch -P 11 -p1 +%patch -P 12 -p1 +%patch -P 13 -p1 # no longer needed since gstreamer-plugins-vaapi 1.18.4 %if 0%{?suse_version} < 1550 %patch -P 54 -p1 diff --git a/python36-buildfix.patch b/python36-buildfix.patch new file mode 100644 index 0000000..f8592da --- /dev/null +++ b/python36-buildfix.patch @@ -0,0 +1,76 @@ +--- mesa-23.3.3/src/nouveau/nvidia-headers/class_parser.py.orig 2024-01-20 12:47:36.464476669 +0100 ++++ mesa-23.3.3/src/nouveau/nvidia-headers/class_parser.py 2024-01-20 13:04:30.212851443 +0100 +@@ -9,6 +9,16 @@ + + from mako.template import Template + ++def removeprefix(s, prefix): ++ if s.startswith(prefix): ++ return s[len(prefix):] ++ return s ++ ++def removesuffix(s, suffix): ++ if s.endswith(suffix): ++ return s[:-len(suffix)] ++ return s ++ + METHOD_ARRAY_SIZES = { + 'BIND_GROUP_CONSTANT_BUFFER' : 16, + 'CALL_MME_DATA' : 256, +@@ -273,7 +283,7 @@ + if ":" in list[2]: + state = 1 + elif teststr in list[1]: +- curmthd.field_defs[curfield][list[1].removeprefix(teststr)] = list[2] ++ curmthd.field_defs[curfield][removeprefix(list[1], teststr)] = list[2] + else: + state = 1 + +@@ -283,7 +293,7 @@ + if ("0x" in list[2]): + state = 1 + else: +- field = list[1].removeprefix(teststr) ++ field = removeprefix(list[1], teststr) + bitfield = list[2].split(":") + curmthd.field_name_start[field] = bitfield[1] + curmthd.field_name_end[field] = bitfield[0] +@@ -304,13 +314,13 @@ + is_array = 0 + if (':' in list[2]): + continue +- name = list[1].removeprefix(teststr) ++ name = removeprefix(list[1], teststr) + if name.endswith("(i)"): + is_array = 1 +- name = name.removesuffix("(i)") ++ name = removesuffix(name, "(i)") + if name.endswith("(j)"): + is_array = 1 +- name = name.removesuffix("(j)") ++ name = removesuffix(name, "(j)") + x = method() + x.name = name + x.addr = list[2] +@@ -336,8 +346,8 @@ + + clheader = os.path.basename(args.in_h) + nvcl = clheader +- nvcl = nvcl.removeprefix("cl") +- nvcl = nvcl.removesuffix(".h") ++ nvcl = removeprefix(nvcl, "cl") ++ nvcl = removesuffix(nvcl, ".h") + nvcl = nvcl.upper() + nvcl = "NV" + nvcl + +--- mesa-23.3.3/src/freedreno/registers/gen_header.py.orig 2024-01-20 14:01:30.261999839 +0100 ++++ mesa-23.3.3/src/freedreno/registers/gen_header.py 2024-01-20 14:01:57.678558692 +0100 +@@ -781,7 +781,7 @@ def main(): + parser.add_argument('--rnn', type=str, required=True) + parser.add_argument('--xml', type=str, required=True) + +- subparsers = parser.add_subparsers(required=True) ++ subparsers = parser.add_subparsers() + + parser_c_defines = subparsers.add_parser('c-defines') + parser_c_defines.set_defaults(func=dump_c_defines) diff --git a/u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch b/u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch new file mode 100644 index 0000000..14a8752 --- /dev/null +++ b/u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch @@ -0,0 +1,54 @@ +From a14fa9920669c8d6d911e375376f2e45052a31d6 Mon Sep 17 00:00:00 2001 +From: Jordan Justen +Date: Sat, 20 Jan 2024 01:07:23 -0800 +Subject: [PATCH 1/2] intel/genxml: Drop "from __future__ import annotations" + +This is not supported in Python 3.6, and optional in 3.7+. + +Ref: f1eae2f8bbe ("python: drop python2 support") +Signed-off-by: Jordan Justen +--- + src/intel/genxml/gen_sort_tags.py | 1 - + src/intel/genxml/genxml_import.py | 1 - + src/intel/genxml/intel_genxml.py | 1 - + 3 files changed, 3 deletions(-) + +diff --git a/src/intel/genxml/gen_sort_tags.py b/src/intel/genxml/gen_sort_tags.py +index dcdba333fe6..44cd152cd11 100755 +--- a/src/intel/genxml/gen_sort_tags.py ++++ b/src/intel/genxml/gen_sort_tags.py +@@ -2,7 +2,6 @@ + # Copyright © 2019, 2022 Intel Corporation + # SPDX-License-Identifier: MIT + +-from __future__ import annotations + import argparse + import copy + import intel_genxml +diff --git a/src/intel/genxml/genxml_import.py b/src/intel/genxml/genxml_import.py +index 76a7c77eb4c..442b4726d08 100755 +--- a/src/intel/genxml/genxml_import.py ++++ b/src/intel/genxml/genxml_import.py +@@ -2,7 +2,6 @@ + # Copyright © 2019, 2022 Intel Corporation + # SPDX-License-Identifier: MIT + +-from __future__ import annotations + import argparse + import copy + import intel_genxml +diff --git a/src/intel/genxml/intel_genxml.py b/src/intel/genxml/intel_genxml.py +index 2b7b4d8391a..9388ebecfce 100755 +--- a/src/intel/genxml/intel_genxml.py ++++ b/src/intel/genxml/intel_genxml.py +@@ -2,7 +2,6 @@ + # Copyright © 2019, 2022 Intel Corporation + # SPDX-License-Identifier: MIT + +-from __future__ import annotations + from collections import OrderedDict + import copy + import io +-- +2.35.3 + diff --git a/u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch b/u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch new file mode 100644 index 0000000..a1fc972 --- /dev/null +++ b/u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch @@ -0,0 +1,78 @@ +From 89ede5b851a6a15f85e83278257ee4e3783f6bd2 Mon Sep 17 00:00:00 2001 +From: Jordan Justen +Date: Sat, 20 Jan 2024 01:00:56 -0800 +Subject: [PATCH 2/2] intel/genxml: Add a untyped OrderedDict fallback for + Python 3.6 + +typing.OrderedDict was introduced in Python 3.7.2. + +Python 3.6 and 3.7 have been deprecated and are no longer supported, +but this seems like an easy enough fallback to include for now. + +https://devguide.python.org/versions/ + +Signed-off-by: Jordan Justen +--- + src/intel/genxml/intel_genxml.py | 22 +++++++++++++++++----- + 1 file changed, 17 insertions(+), 5 deletions(-) + +diff --git a/src/intel/genxml/intel_genxml.py b/src/intel/genxml/intel_genxml.py +index 9388ebecfce..eefd7b44992 100755 +--- a/src/intel/genxml/intel_genxml.py ++++ b/src/intel/genxml/intel_genxml.py +@@ -45,10 +45,22 @@ BASE_TYPES = { + + FIXED_PATTERN = re.compile(r"(s|u)(\d+)\.(\d+)") + ++try: ++ # Python 3.7 and newer should be able to support strong typing for ++ # our OrderedDict usage. ++ def typed_ordered_dict(key_ty, val_ty): ++ return typing.OrderedDict[str, bool] ++ # This will raise an exception on Python 3.6 ++ typed_ordered_dict(int, int) ++except Exception: ++ # For Python 3.6 we return an untyped OrderedDict ++ def typed_ordered_dict(key_ty, val_ty): ++ return OrderedDict ++ + def is_base_type(name: str) -> bool: + return name in BASE_TYPES or FIXED_PATTERN.match(name) is not None + +-def add_struct_refs(items: typing.OrderedDict[str, bool], node: et.Element) -> None: ++def add_struct_refs(items: typed_ordered_dict(str, bool), node: et.Element) -> None: + if node.tag == 'field': + if 'type' in node.attrib and not is_base_type(node.attrib['type']): + t = node.attrib['type'] +@@ -64,16 +76,16 @@ class Struct(object): + def __init__(self, xml: et.Element): + self.xml = xml + self.name = xml.attrib['name'] +- self.deps: typing.OrderedDict[str, Struct] = OrderedDict() ++ self.deps: typed_ordered_dict(str, Struct) = OrderedDict() + + def find_deps(self, struct_dict, enum_dict) -> None: +- deps: typing.OrderedDict[str, bool] = OrderedDict() ++ deps: typed_ordered_dict(str, bool) = OrderedDict() + add_struct_refs(deps, self.xml) + for d in deps.keys(): + if d in struct_dict: + self.deps[d] = struct_dict[d] + +- def add_xml(self, items: typing.OrderedDict[str, et.Element]) -> None: ++ def add_xml(self, items: typed_ordered_dict(str, et.Element)) -> None: + for d in self.deps.values(): + d.add_xml(items) + items[self.name] = self.xml +@@ -151,7 +163,7 @@ def sort_xml(xml: et.ElementTree) -> None: + for ws in wrapped_struct_dict.values(): + ws.find_deps(wrapped_struct_dict, enum_dict) + +- sorted_structs: typing.OrderedDict[str, et.Element] = OrderedDict() ++ sorted_structs: typed_ordered_dict(str, et.Element) = OrderedDict() + for s in structs: + _s = wrapped_struct_dict[s.attrib['name']] + _s.add_xml(sorted_structs) +-- +2.35.3 + From 27079a373a239f860ccad77ddebeb653e0b23a6df2d13738b37fef2bed72f916 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Mon, 22 Jan 2024 14:46:34 +0000 Subject: [PATCH 6/6] - split python36-buildfix.patch into two patches python36-buildfix1.patch and python36-buildfix2.patch; apply the latter only on sle15-sp6/Leap 15.6 since on newer python releases than 3.6 it changes behaviour to remove required=True option OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1253 --- Mesa.changes | 8 ++++++++ Mesa.spec | 6 +++++- python36-buildfix.patch => python36-buildfix1.patch | 11 ----------- python36-buildfix2.patch | 11 +++++++++++ 4 files changed, 24 insertions(+), 12 deletions(-) rename python36-buildfix.patch => python36-buildfix1.patch (81%) create mode 100644 python36-buildfix2.patch diff --git a/Mesa.changes b/Mesa.changes index f4784b8..885838b 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jan 22 14:36:33 UTC 2024 - Stefan Dirsch + +- split python36-buildfix.patch into two patches python36-buildfix1.patch + and python36-buildfix2.patch; apply the latter only on sle15-sp6/Leap 15.6 + since on newer python releases than 3.6 it changes behaviour to + remove required=True option + ------------------------------------------------------------------- Sat Jan 20 13:04:02 UTC 2024 - Stefan Dirsch diff --git a/Mesa.spec b/Mesa.spec index 9c1eefb..f6c4711 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -140,7 +140,8 @@ Source7: Mesa.keyring Patch2: n_add-Mesa-headers-again.patch Patch11: u_0001-intel-genxml-Drop-from-__future__-import-annotations.patch Patch12: u_0002-intel-genxml-Add-a-untyped-OrderedDict-fallback-for-.patch -Patch13: python36-buildfix.patch +Patch13: python36-buildfix1.patch +Patch14: python36-buildfix2.patch # never to be upstreamed Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch58: u_dep_xcb.patch @@ -758,6 +759,9 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch -P 11 -p1 %patch -P 12 -p1 %patch -P 13 -p1 +%if 0%{?suse_version} < 1550 +%patch -P 14 -p1 +%endif # no longer needed since gstreamer-plugins-vaapi 1.18.4 %if 0%{?suse_version} < 1550 %patch -P 54 -p1 diff --git a/python36-buildfix.patch b/python36-buildfix1.patch similarity index 81% rename from python36-buildfix.patch rename to python36-buildfix1.patch index f8592da..557711a 100644 --- a/python36-buildfix.patch +++ b/python36-buildfix1.patch @@ -63,14 +63,3 @@ nvcl = nvcl.upper() nvcl = "NV" + nvcl ---- mesa-23.3.3/src/freedreno/registers/gen_header.py.orig 2024-01-20 14:01:30.261999839 +0100 -+++ mesa-23.3.3/src/freedreno/registers/gen_header.py 2024-01-20 14:01:57.678558692 +0100 -@@ -781,7 +781,7 @@ def main(): - parser.add_argument('--rnn', type=str, required=True) - parser.add_argument('--xml', type=str, required=True) - -- subparsers = parser.add_subparsers(required=True) -+ subparsers = parser.add_subparsers() - - parser_c_defines = subparsers.add_parser('c-defines') - parser_c_defines.set_defaults(func=dump_c_defines) diff --git a/python36-buildfix2.patch b/python36-buildfix2.patch new file mode 100644 index 0000000..b0e05dc --- /dev/null +++ b/python36-buildfix2.patch @@ -0,0 +1,11 @@ +--- mesa-23.3.3/src/freedreno/registers/gen_header.py.orig 2024-01-20 14:01:30.261999839 +0100 ++++ mesa-23.3.3/src/freedreno/registers/gen_header.py 2024-01-20 14:01:57.678558692 +0100 +@@ -781,7 +781,7 @@ def main(): + parser.add_argument('--rnn', type=str, required=True) + parser.add_argument('--xml', type=str, required=True) + +- subparsers = parser.add_subparsers(required=True) ++ subparsers = parser.add_subparsers() + + parser_c_defines = subparsers.add_parser('c-defines') + parser_c_defines.set_defaults(func=dump_c_defines)