diff --git a/Mesa-drivers.changes b/Mesa-drivers.changes index 3d8e6a6..6d5213f 100644 --- a/Mesa-drivers.changes +++ b/Mesa-drivers.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Wed Mar 21 15:06:52 UTC 2018 - sndirsch@suse.com + +- Update to 18.0.0-rc5 + * The fifth and final release candidate for Mesa 18.0.0. Modulo + serious regressions, it is anticipated that it will become + Mesa 18.0.0 this Friday (2018-03-23) around 16:00 GMT +- supersedes u_glsl-linker-error.patch + +------------------------------------------------------------------- +Mon Mar 19 19:58:07 UTC 2018 - sndirsch@suse.com + +- no longer try to use non-existing python3-mako as BuildRequires + on Leap 42.3 + +------------------------------------------------------------------- +Thu Mar 15 15:49:45 UTC 2018 - msrb@suse.com + +- u_st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModif.patch + * Fixes laggy mouse in Wayland. (fdo#104926) + ------------------------------------------------------------------- Thu Mar 1 15:47:35 UTC 2018 - sndirsch@suse.com diff --git a/Mesa-drivers.spec b/Mesa-drivers.spec index d866307..2486234 100644 --- a/Mesa-drivers.spec +++ b/Mesa-drivers.spec @@ -43,7 +43,7 @@ %define glamor 1 %define _name_archive mesa -%define _version 18.0.0-rc4 +%define _version 18.0.0-rc5 %define with_opencl 0 %define with_vulkan 0 %define with_llvm 0 @@ -141,7 +141,7 @@ Patch32: archlinux_glvnd-fix-gl-dot-pc.patch # Upstream Patch43: u_r600-egd_tables.py-make-the-script-python-2-3-compat.patch Patch45: n_Disable-AMDGPU-GFX9-Vega-on-LLVM-lessthan-6.0.0.patch -Patch46: u_glsl-linker-error.patch +Patch47: u_st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModif.patch BuildRequires: autoconf >= 2.60 BuildRequires: automake @@ -151,7 +151,9 @@ BuildRequires: imake BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: python3-base +%if 0%{?suse_version} > 1320 BuildRequires: python3-mako +%endif BuildRequires: python3-xml BuildRequires: pkgconfig(dri2proto) BuildRequires: pkgconfig(dri3proto) @@ -751,7 +753,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch43 -p1 %patch45 -p1 -%patch46 -p1 +%patch47 -p1 # Remove requires to libglvnd/libglvnd-devel from baselibs.conf when # disabling libglvnd build; ugly ... diff --git a/Mesa.changes b/Mesa.changes index 3d8e6a6..6d5213f 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Wed Mar 21 15:06:52 UTC 2018 - sndirsch@suse.com + +- Update to 18.0.0-rc5 + * The fifth and final release candidate for Mesa 18.0.0. Modulo + serious regressions, it is anticipated that it will become + Mesa 18.0.0 this Friday (2018-03-23) around 16:00 GMT +- supersedes u_glsl-linker-error.patch + +------------------------------------------------------------------- +Mon Mar 19 19:58:07 UTC 2018 - sndirsch@suse.com + +- no longer try to use non-existing python3-mako as BuildRequires + on Leap 42.3 + +------------------------------------------------------------------- +Thu Mar 15 15:49:45 UTC 2018 - msrb@suse.com + +- u_st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModif.patch + * Fixes laggy mouse in Wayland. (fdo#104926) + ------------------------------------------------------------------- Thu Mar 1 15:47:35 UTC 2018 - sndirsch@suse.com diff --git a/Mesa.spec b/Mesa.spec index c17fe8b..5db0abf 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -42,7 +42,7 @@ %define glamor 1 %define _name_archive mesa -%define _version 18.0.0-rc4 +%define _version 18.0.0-rc5 %define with_opencl 0 %define with_vulkan 0 %define with_llvm 0 @@ -140,7 +140,7 @@ Patch32: archlinux_glvnd-fix-gl-dot-pc.patch # Upstream Patch43: u_r600-egd_tables.py-make-the-script-python-2-3-compat.patch Patch45: n_Disable-AMDGPU-GFX9-Vega-on-LLVM-lessthan-6.0.0.patch -Patch46: u_glsl-linker-error.patch +Patch47: u_st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModif.patch BuildRequires: autoconf >= 2.60 BuildRequires: automake @@ -150,7 +150,9 @@ BuildRequires: imake BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: python3-base +%if 0%{?suse_version} > 1320 BuildRequires: python3-mako +%endif BuildRequires: python3-xml BuildRequires: pkgconfig(dri2proto) BuildRequires: pkgconfig(dri3proto) @@ -750,7 +752,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch43 -p1 %patch45 -p1 -%patch46 -p1 +%patch47 -p1 # Remove requires to libglvnd/libglvnd-devel from baselibs.conf when # disabling libglvnd build; ugly ... diff --git a/mesa-18.0.0-rc4.tar.xz b/mesa-18.0.0-rc4.tar.xz deleted file mode 100644 index 6160a95..0000000 --- a/mesa-18.0.0-rc4.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad575becea192f04403b6783492955f395dd8faad7e51cbcbad203be70eb9075 -size 11027596 diff --git a/mesa-18.0.0-rc4.tar.xz.sig b/mesa-18.0.0-rc4.tar.xz.sig deleted file mode 100644 index c4124be..0000000 Binary files a/mesa-18.0.0-rc4.tar.xz.sig and /dev/null differ diff --git a/mesa-18.0.0-rc5.tar.xz b/mesa-18.0.0-rc5.tar.xz new file mode 100644 index 0000000..728778e --- /dev/null +++ b/mesa-18.0.0-rc5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4e0c559e06157b4f2c184c51133d8c224eb39d296985f662b43868eed0c20d0 +size 10970572 diff --git a/mesa-18.0.0-rc5.tar.xz.sig b/mesa-18.0.0-rc5.tar.xz.sig new file mode 100644 index 0000000..d0f55b1 Binary files /dev/null and b/mesa-18.0.0-rc5.tar.xz.sig differ diff --git a/u_glsl-linker-error.patch b/u_glsl-linker-error.patch deleted file mode 100644 index a753642..0000000 --- a/u_glsl-linker-error.patch +++ /dev/null @@ -1,115 +0,0 @@ -From 4195eed961ccfe404ae81b9112189fc93a254ded Mon Sep 17 00:00:00 2001 -From: "Juan A. Suarez Romero" -Date: Mon, 5 Feb 2018 17:38:39 +0100 -Subject: glsl/linker: check same name is not used in block and outside -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -According with OpenGL GLSL 3.20 spec, section 4.3.9: - - "It is a link-time error if any particular shader interface - contains: - - two different blocks, each having no instance name, and each - having a member of the same name, or - - a variable outside a block, and a block with no instance name, - where the variable has the same name as a member in the block." - -This fixes a previous commit 9b894c8 ("glsl/linker: link-error using the -same name in unnamed block and outside") that covered this case, but -did not take in account that precision qualifiers are ignored when -comparing blocks with no instance name. - -With this commit, the original tests -KHR-GL*.shaders.uniform_block.common.name_matching keep fixed, and also -dEQP-GLES31.functional.shaders.linkage.uniform.block.differing_precision -regression is fixed, which was broken by previous commit. - -v2: use helper varibles (Matteo Bruni) - -Fixes: 9b894c8 ("glsl/linker: link-error using the same name in unnamed block and outside") -Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104668 -Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104777 -CC: Mark Janes -CC: "18.0" -Tested-by: Matteo Bruni -Reviewed-by: Tapani Pälli -Signed-off-by: Juan A. Suarez Romero ---- - src/compiler/glsl/linker.cpp | 53 +++++++++++++++++++++++++------------------- - 1 file changed, 30 insertions(+), 23 deletions(-) - -diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp -index ce10193..d3d18c2 100644 ---- a/src/compiler/glsl/linker.cpp -+++ b/src/compiler/glsl/linker.cpp -@@ -1111,29 +1111,6 @@ cross_validate_globals(struct gl_shader_program *prog, - return; - } - -- /* In OpenGL GLSL 4.20 spec, section 4.3.9, page 57: -- * -- * "It is a link-time error if any particular shader interface -- * contains: -- * -- * - two different blocks, each having no instance name, and each -- * having a member of the same name, or -- * -- * - a variable outside a block, and a block with no instance name, -- * where the variable has the same name as a member in the block." -- */ -- if (var->data.mode == existing->data.mode && -- var->get_interface_type() != existing->get_interface_type()) { -- linker_error(prog, "declarations for %s `%s` are in " -- "%s and %s\n", -- mode_string(var), var->name, -- existing->get_interface_type() ? -- existing->get_interface_type()->name : "outside a block", -- var->get_interface_type() ? -- var->get_interface_type()->name : "outside a block"); -- -- return; -- } - /* Only in GLSL ES 3.10, the precision qualifier should not match - * between block members defined in matched block names within a - * shader interface. -@@ -1155,6 +1132,36 @@ cross_validate_globals(struct gl_shader_program *prog, - mode_string(var), var->name); - } - } -+ -+ /* In OpenGL GLSL 3.20 spec, section 4.3.9: -+ * -+ * "It is a link-time error if any particular shader interface -+ * contains: -+ * -+ * - two different blocks, each having no instance name, and each -+ * having a member of the same name, or -+ * -+ * - a variable outside a block, and a block with no instance name, -+ * where the variable has the same name as a member in the block." -+ */ -+ const glsl_type *var_itype = var->get_interface_type(); -+ const glsl_type *existing_itype = existing->get_interface_type(); -+ if (var_itype != existing_itype) { -+ if (!var_itype || !existing_itype) { -+ linker_error(prog, "declarations for %s `%s` are inside block " -+ "`%s` and outside a block", -+ mode_string(var), var->name, -+ var_itype ? var_itype->name : existing_itype->name); -+ return; -+ } else if (strcmp(var_itype->name, existing_itype->name) != 0) { -+ linker_error(prog, "declarations for %s `%s` are inside blocks " -+ "`%s` and `%s`", -+ mode_string(var), var->name, -+ existing_itype->name, -+ var_itype->name); -+ return; -+ } -+ } - } else - variables->add_variable(var); - } --- -cgit v1.1 - diff --git a/u_st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModif.patch b/u_st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModif.patch new file mode 100644 index 0000000..6aa3789 --- /dev/null +++ b/u_st-dri-don-t-set-queryDmaBufFormats-queryDmaBufModif.patch @@ -0,0 +1,33 @@ +Author: Michal Srb +Subject: st/dri: don't set queryDmaBufFormats/queryDmaBufModifiers if the driver does not implement it +Patch-mainline: To be upstreamed +References: fdo#104926 + +This is equivalent to commit a65db0ad1c3, but for dri_kms_init_screen. Without +this gbm_dri_is_format_supported always returns false. + +Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104926 +--- + src/gallium/state_trackers/dri/dri2.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c +index 415002d2cd..59740b1301 100644 +--- a/src/gallium/state_trackers/dri/dri2.c ++++ b/src/gallium/state_trackers/dri/dri2.c +@@ -2162,8 +2162,10 @@ dri_kms_init_screen(__DRIscreen * sPriv) + dri2ImageExtension.createImageFromFds = dri2_from_fds; + dri2ImageExtension.createImageFromDmaBufs = dri2_from_dma_bufs; + dri2ImageExtension.createImageFromDmaBufs2 = dri2_from_dma_bufs2; +- dri2ImageExtension.queryDmaBufFormats = dri2_query_dma_buf_formats; +- dri2ImageExtension.queryDmaBufModifiers = dri2_query_dma_buf_modifiers; ++ if (pscreen->query_dmabuf_modifiers) { ++ dri2ImageExtension.queryDmaBufFormats = dri2_query_dma_buf_formats; ++ dri2ImageExtension.queryDmaBufModifiers = dri2_query_dma_buf_modifiers; ++ } + } + + sPriv->extensions = dri_screen_extensions; +-- +2.13.6 +