diff --git a/Mesa-drivers.changes b/Mesa-drivers.changes
index 8ef1d19..873dc21 100644
--- a/Mesa-drivers.changes
+++ b/Mesa-drivers.changes
@@ -1,3 +1,16 @@
+-------------------------------------------------------------------
+Fri Feb 21 13:18:18 UTC 2020 - Philipp Seiler
+
+- update to mesa 20.0.0
+ * changelog https://mesa3d.org/relnotes/20.0.0.html
+- supersedes U_0001-gallium-Fix-a-couple-of-multiple-definition-warnings.patch
+- supersedes U_0002-r600-Move-get_pic_param-to-radeon_vce.c.patch
+- supersedes U_0003-radeon-Move-si_get_pic_param-to-radeon_vce.c.patch
+- supersedes U_0004-radeon-Fix-multiple-definition-error-with-radeon_deb.patch
+- supersedes U_0006-nouveau-nvc0-add-extern-keyword-to-nvc0_miptree_vtbl.patch
+- update to patch n_add-Mesa-headers-again.patch to fit v20.0.0 sources
+- update to patch n_drirc-disable-rgb10-for-chromium-on-amd.patch to fit v20.0.0 sources
+
-------------------------------------------------------------------
Fri Feb 21 05:09:10 UTC 2020 - Stefan Dirsch
diff --git a/Mesa-drivers.spec b/Mesa-drivers.spec
index 1a39c73..b49118b 100644
--- a/Mesa-drivers.spec
+++ b/Mesa-drivers.spec
@@ -42,7 +42,7 @@
%define glamor 1
%define _name_archive mesa
-%define _version 19.3.4
+%define _version 20.0.0
%define with_opencl 0
%define with_vulkan 0
%define with_llvm 0
@@ -110,7 +110,7 @@
%endif
Name: Mesa-drivers
-Version: 19.3.4
+Version: 20.0.0
Release: 0
Summary: System for rendering 3-D graphics
License: MIT
@@ -129,11 +129,6 @@ Patch2: n_add-Mesa-headers-again.patch
# never to be upstreamed
Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch
Patch58: u_dep_xcb.patch
-Patch61: U_0001-gallium-Fix-a-couple-of-multiple-definition-warnings.patch
-Patch62: U_0002-r600-Move-get_pic_param-to-radeon_vce.c.patch
-Patch63: U_0003-radeon-Move-si_get_pic_param-to-radeon_vce.c.patch
-Patch64: U_0004-radeon-Fix-multiple-definition-error-with-radeon_deb.patch
-Patch66: U_0006-nouveau-nvc0-add-extern-keyword-to-nvc0_miptree_vtbl.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
@@ -749,11 +744,6 @@ rm -rf docs/README.{VMS,WIN32,OS2}
%patch2 -p1
%patch54 -p1
%patch58 -p1
-%patch61 -p1
-%patch62 -p1
-%patch63 -p1
-%patch64 -p1
-%patch66 -p1
# Remove requires to libglvnd/libglvnd-devel from baselibs.conf when
# disabling libglvnd build; ugly ...
diff --git a/Mesa.changes b/Mesa.changes
index 8ef1d19..873dc21 100644
--- a/Mesa.changes
+++ b/Mesa.changes
@@ -1,3 +1,16 @@
+-------------------------------------------------------------------
+Fri Feb 21 13:18:18 UTC 2020 - Philipp Seiler
+
+- update to mesa 20.0.0
+ * changelog https://mesa3d.org/relnotes/20.0.0.html
+- supersedes U_0001-gallium-Fix-a-couple-of-multiple-definition-warnings.patch
+- supersedes U_0002-r600-Move-get_pic_param-to-radeon_vce.c.patch
+- supersedes U_0003-radeon-Move-si_get_pic_param-to-radeon_vce.c.patch
+- supersedes U_0004-radeon-Fix-multiple-definition-error-with-radeon_deb.patch
+- supersedes U_0006-nouveau-nvc0-add-extern-keyword-to-nvc0_miptree_vtbl.patch
+- update to patch n_add-Mesa-headers-again.patch to fit v20.0.0 sources
+- update to patch n_drirc-disable-rgb10-for-chromium-on-amd.patch to fit v20.0.0 sources
+
-------------------------------------------------------------------
Fri Feb 21 05:09:10 UTC 2020 - Stefan Dirsch
diff --git a/Mesa.spec b/Mesa.spec
index 0831a81..e989f48 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -41,7 +41,7 @@
%define glamor 1
%define _name_archive mesa
-%define _version 19.3.4
+%define _version 20.0.0
%define with_opencl 0
%define with_vulkan 0
%define with_llvm 0
@@ -109,7 +109,7 @@
%endif
Name: Mesa
-Version: 19.3.4
+Version: 20.0.0
Release: 0
Summary: System for rendering 3-D graphics
License: MIT
@@ -128,11 +128,6 @@ Patch2: n_add-Mesa-headers-again.patch
# never to be upstreamed
Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch
Patch58: u_dep_xcb.patch
-Patch61: U_0001-gallium-Fix-a-couple-of-multiple-definition-warnings.patch
-Patch62: U_0002-r600-Move-get_pic_param-to-radeon_vce.c.patch
-Patch63: U_0003-radeon-Move-si_get_pic_param-to-radeon_vce.c.patch
-Patch64: U_0004-radeon-Fix-multiple-definition-error-with-radeon_deb.patch
-Patch66: U_0006-nouveau-nvc0-add-extern-keyword-to-nvc0_miptree_vtbl.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
@@ -748,11 +743,6 @@ rm -rf docs/README.{VMS,WIN32,OS2}
%patch2 -p1
%patch54 -p1
%patch58 -p1
-%patch61 -p1
-%patch62 -p1
-%patch63 -p1
-%patch64 -p1
-%patch66 -p1
# Remove requires to libglvnd/libglvnd-devel from baselibs.conf when
# disabling libglvnd build; ugly ...
diff --git a/U_0001-gallium-Fix-a-couple-of-multiple-definition-warnings.patch b/U_0001-gallium-Fix-a-couple-of-multiple-definition-warnings.patch
deleted file mode 100644
index 941a64f..0000000
--- a/U_0001-gallium-Fix-a-couple-of-multiple-definition-warnings.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 8e22df3aec9190518a23818be7690ac345f0bc20 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Timur=20Krist=C3=B3f?=
-Date: Tue, 21 Jan 2020 16:12:16 +0100
-Subject: [PATCH] gallium: Fix a couple of multiple definition warnings.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Timur Kristóf
-Reviewed-by: Marek Olšák
-Part-of:
----
- src/gallium/auxiliary/target-helpers/drm_helper_public.h | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/gallium/auxiliary/target-helpers/drm_helper_public.h b/src/gallium/auxiliary/target-helpers/drm_helper_public.h
-index 82dfe9e2575..ab0fc8d1b1a 100644
---- a/src/gallium/auxiliary/target-helpers/drm_helper_public.h
-+++ b/src/gallium/auxiliary/target-helpers/drm_helper_public.h
-@@ -4,10 +4,10 @@
- struct pipe_screen;
- struct pipe_screen_config;
-
--const char *iris_driconf_xml;
--const char *radeonsi_driconf_xml;
--const char *v3d_driconf_xml;
--const char *virgl_driconf_xml;
-+extern const char *iris_driconf_xml;
-+extern const char *radeonsi_driconf_xml;
-+extern const char *v3d_driconf_xml;
-+extern const char *virgl_driconf_xml;
-
- struct pipe_screen *
- pipe_i915_create_screen(int fd, const struct pipe_screen_config *config);
---
-2.16.4
-
diff --git a/U_0002-r600-Move-get_pic_param-to-radeon_vce.c.patch b/U_0002-r600-Move-get_pic_param-to-radeon_vce.c.patch
deleted file mode 100644
index 3c0adaa..0000000
--- a/U_0002-r600-Move-get_pic_param-to-radeon_vce.c.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From a134ac5ee9355779e015f8d7f9fe3e2ab22cdb86 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Timur=20Krist=C3=B3f?=
-Date: Tue, 21 Jan 2020 16:08:21 +0100
-Subject: [PATCH] r600: Move get_pic_param to radeon_vce.c
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Timur Kristóf
-Reviewed-by: Marek Olšák
-Part-of:
----
- src/gallium/drivers/r600/radeon_vce.c | 4 ++++
- src/gallium/drivers/r600/radeon_vce.h | 4 ----
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/gallium/drivers/r600/radeon_vce.c b/src/gallium/drivers/r600/radeon_vce.c
-index 4051d73533d..16f48c69456 100644
---- a/src/gallium/drivers/r600/radeon_vce.c
-+++ b/src/gallium/drivers/r600/radeon_vce.c
-@@ -54,6 +54,10 @@
- #define FW_52_8_3 ((52 << 24) | (8 << 16) | (3 << 8))
- #define FW_53 (53 << 24)
-
-+/* version specific function for getting parameters */
-+static void (*get_pic_param)(struct rvce_encoder *enc,
-+ struct pipe_h264_enc_picture_desc *pic) = NULL;
-+
- /**
- * flush commands to the hardware
- */
-diff --git a/src/gallium/drivers/r600/radeon_vce.h b/src/gallium/drivers/r600/radeon_vce.h
-index 71f028721b4..c5e05477763 100644
---- a/src/gallium/drivers/r600/radeon_vce.h
-+++ b/src/gallium/drivers/r600/radeon_vce.h
-@@ -443,10 +443,6 @@ void radeon_vce_50_init(struct rvce_encoder *enc);
- /* init vce fw 52 specific callbacks */
- void radeon_vce_52_init(struct rvce_encoder *enc);
-
--/* version specific function for getting parameters */
--void (*get_pic_param)(struct rvce_encoder *enc,
-- struct pipe_h264_enc_picture_desc *pic);
--
- /* get parameters for vce 40.2.2 */
- void radeon_vce_40_2_2_get_param(struct rvce_encoder *enc,
- struct pipe_h264_enc_picture_desc *pic);
---
-2.16.4
-
diff --git a/U_0003-radeon-Move-si_get_pic_param-to-radeon_vce.c.patch b/U_0003-radeon-Move-si_get_pic_param-to-radeon_vce.c.patch
deleted file mode 100644
index 94dd430..0000000
--- a/U_0003-radeon-Move-si_get_pic_param-to-radeon_vce.c.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From b7f975980916d670dcfc280af1678f4439a59d2f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Timur=20Krist=C3=B3f?=
-Date: Tue, 21 Jan 2020 16:04:33 +0100
-Subject: [PATCH] radeon: Move si_get_pic_param to radeon_vce.c
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Timur Kristóf
-Reviewed-by: Marek Olšák
-Part-of:
----
- src/gallium/drivers/radeon/radeon_vce.c | 4 ++++
- src/gallium/drivers/radeon/radeon_vce.h | 4 ----
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c
-index 84d3c1e2fa4..652b4250654 100644
---- a/src/gallium/drivers/radeon/radeon_vce.c
-+++ b/src/gallium/drivers/radeon/radeon_vce.c
-@@ -48,6 +48,10 @@
- #define FW_52_8_3 ((52 << 24) | (8 << 16) | (3 << 8))
- #define FW_53 (53 << 24)
-
-+/* version specific function for getting parameters */
-+static void (*si_get_pic_param)(struct rvce_encoder *enc,
-+ struct pipe_h264_enc_picture_desc *pic) = NULL;
-+
- /**
- * flush commands to the hardware
- */
-diff --git a/src/gallium/drivers/radeon/radeon_vce.h b/src/gallium/drivers/radeon/radeon_vce.h
-index cf625e6fed7..b5cfe178061 100644
---- a/src/gallium/drivers/radeon/radeon_vce.h
-+++ b/src/gallium/drivers/radeon/radeon_vce.h
-@@ -437,10 +437,6 @@ void si_vce_50_init(struct rvce_encoder *enc);
- /* init vce fw 52 specific callbacks */
- void si_vce_52_init(struct rvce_encoder *enc);
-
--/* version specific function for getting parameters */
--void (*si_get_pic_param)(struct rvce_encoder *enc,
-- struct pipe_h264_enc_picture_desc *pic);
--
- /* get parameters for vce 40.2.2 */
- void si_vce_40_2_2_get_param(struct rvce_encoder *enc,
- struct pipe_h264_enc_picture_desc *pic);
---
-2.16.4
-
diff --git a/U_0004-radeon-Fix-multiple-definition-error-with-radeon_deb.patch b/U_0004-radeon-Fix-multiple-definition-error-with-radeon_deb.patch
deleted file mode 100644
index 51bd1ae..0000000
--- a/U_0004-radeon-Fix-multiple-definition-error-with-radeon_deb.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From 75e5720e1a64fac116e19cd9a7682b1d0f530149 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Timur=20Krist=C3=B3f?=
-Date: Tue, 21 Jan 2020 16:36:54 +0100
-Subject: [PATCH] radeon: Fix multiple definition error with radeon_debug
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Timur Kristóf
-Reviewed-by: Marek Olšák
-Tested-by: Marge Bot
-Part-of:
----
- src/mesa/drivers/dri/radeon/radeon_debug.c | 10 +++++++---
- src/mesa/drivers/dri/radeon/radeon_debug.h | 14 ++++++++++----
- 2 files changed, 17 insertions(+), 7 deletions(-)
-
-diff --git a/src/mesa/drivers/dri/radeon/radeon_debug.c b/src/mesa/drivers/dri/radeon/radeon_debug.c
-index 91f86a96b52..4ac974473e2 100644
---- a/src/mesa/drivers/dri/radeon/radeon_debug.c
-+++ b/src/mesa/drivers/dri/radeon/radeon_debug.c
-@@ -57,13 +57,17 @@ static const struct debug_control debug_control[] = {
- {NULL, 0}
- };
-
--radeon_debug_type_t radeon_enabled_debug_types;
-+#if defined(RADEON_R200)
-+radeon_debug_type_t r200_enabled_debug_types;
-+#elif defined(RADEON_R100)
-+radeon_debug_type_t r100_enabled_debug_types;
-+#endif
-
- void radeon_init_debug(void)
- {
-- radeon_enabled_debug_types = parse_debug_string(getenv("RADEON_DEBUG"), debug_control);
-+ RADEON_DEBUG = parse_debug_string(getenv("RADEON_DEBUG"), debug_control);
-
-- radeon_enabled_debug_types |= RADEON_GENERAL;
-+ RADEON_DEBUG |= RADEON_GENERAL;
- }
-
- void _radeon_debug_add_indent(void)
-diff --git a/src/mesa/drivers/dri/radeon/radeon_debug.h b/src/mesa/drivers/dri/radeon/radeon_debug.h
-index df2f1abfbf2..8f56ec6769b 100644
---- a/src/mesa/drivers/dri/radeon/radeon_debug.h
-+++ b/src/mesa/drivers/dri/radeon/radeon_debug.h
-@@ -81,18 +81,24 @@ struct radeon_debug {
- char indent[RADEON_MAX_INDENT];
- };
-
--extern radeon_debug_type_t radeon_enabled_debug_types;
--
- /**
- * Compabibility layer for old debug code
- **/
--#define RADEON_DEBUG radeon_enabled_debug_types
-+#if defined(RADEON_R200)
-+extern radeon_debug_type_t r200_enabled_debug_types;
-+#define RADEON_DEBUG r200_enabled_debug_types
-+#elif defined(RADEON_R100)
-+extern radeon_debug_type_t r100_enabled_debug_types;
-+#define RADEON_DEBUG r100_enabled_debug_types
-+#else
-+#error "Neither RADEON_R100 nor RADEON_R200 are defined."
-+#endif
-
- static inline int radeon_is_debug_enabled(const radeon_debug_type_t type,
- const radeon_debug_level_t level)
- {
- return RADEON_DEBUG_LEVEL >= level
-- && (type & radeon_enabled_debug_types);
-+ && (type & RADEON_DEBUG);
- }
-
- extern void _radeon_print(const radeon_debug_type_t type,
---
-2.16.4
-
diff --git a/U_0006-nouveau-nvc0-add-extern-keyword-to-nvc0_miptree_vtbl.patch b/U_0006-nouveau-nvc0-add-extern-keyword-to-nvc0_miptree_vtbl.patch
deleted file mode 100644
index 439c300..0000000
--- a/U_0006-nouveau-nvc0-add-extern-keyword-to-nvc0_miptree_vtbl.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 28eb481bc2156ccc07c106ab517c2a3a42a53de1 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Timur=20Krist=C3=B3f?=
-Date: Tue, 21 Jan 2020 17:11:22 +0100
-Subject: [PATCH] nouveau/nvc0: add extern keyword to nvc0_miptree_vtbl.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Timur Kristóf
-Reviewed-by: Karol Herbst
----
- src/gallium/drivers/nouveau/nvc0/nvc0_resource.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.h b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.h
-index b24fca004ca..78a1d79261e 100644
---- a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.h
-+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.h
-@@ -38,7 +38,7 @@ nvc0_miptree_create(struct pipe_screen *pscreen,
- const struct pipe_resource *tmp,
- const uint64_t *modifiers, unsigned int count);
-
--const struct u_resource_vtbl nvc0_miptree_vtbl;
-+extern const struct u_resource_vtbl nvc0_miptree_vtbl;
-
- struct pipe_surface *
- nvc0_miptree_surface_new(struct pipe_context *,
---
-2.16.4
-
diff --git a/mesa-19.3.4.tar.xz b/mesa-19.3.4.tar.xz
deleted file mode 100644
index 9c037cb..0000000
--- a/mesa-19.3.4.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:1da467e6ae2799a517e242462331eafd29ae77d9872f3a845df81f7c308e8fe4
-size 11968288
diff --git a/mesa-19.3.4.tar.xz.sig b/mesa-19.3.4.tar.xz.sig
deleted file mode 100644
index 04e2445..0000000
Binary files a/mesa-19.3.4.tar.xz.sig and /dev/null differ
diff --git a/mesa-20.0.0.tar.xz b/mesa-20.0.0.tar.xz
new file mode 100644
index 0000000..cb40c0b
--- /dev/null
+++ b/mesa-20.0.0.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb6db3e54b608d2536d4000b3de7dd3ae115fc114e8acbb5afff4b3bbed04b34
+size 12153408
diff --git a/mesa-20.0.0.tar.xz.sig b/mesa-20.0.0.tar.xz.sig
new file mode 100644
index 0000000..21e99f1
Binary files /dev/null and b/mesa-20.0.0.tar.xz.sig differ
diff --git a/n_add-Mesa-headers-again.patch b/n_add-Mesa-headers-again.patch
index 1499e01..360a38f 100644
--- a/n_add-Mesa-headers-again.patch
+++ b/n_add-Mesa-headers-again.patch
@@ -1,19 +1,14 @@
-diff -u -r mesa-19.2.2.orig/include/meson.build mesa-19.2.2/include/meson.build
---- mesa-19.2.2.orig/include/meson.build 2019-10-25 21:55:51.441084000 +0200
-+++ mesa-19.2.2/include/meson.build 2019-10-25 21:58:07.781272000 +0200
-@@ -22,7 +22,6 @@
+diff -dupr mesa-20.0.0.orig/include/meson.build mesa-20.0.0/include/meson.build
+--- mesa-20.0.0.orig/include/meson.build 2020-02-21 14:11:14.623397341 +0100
++++ mesa-20.0.0/include/meson.build 2020-02-21 14:13:05.620425210 +0100
+@@ -22,10 +22,8 @@ inc_include = include_directories('.')
inc_d3d9 = include_directories('D3D9')
inc_haikugl = include_directories('HaikuGL')
--if not glvnd_has_headers_and_pc_files
+-if not with_glvnd
if with_gles1 or with_gles2 or with_opengl or with_egl
install_headers('KHR/khrplatform.h', subdir : 'KHR')
- endif
-@@ -78,7 +77,6 @@
- subdir : 'EGL',
- )
- endif
--endif
+- endif
- # Non-upstream headers
- if with_egl
+ if with_gles1
+ install_headers(
diff --git a/n_drirc-disable-rgb10-for-chromium-on-amd.patch b/n_drirc-disable-rgb10-for-chromium-on-amd.patch
index ff2b153..3c44c88 100644
--- a/n_drirc-disable-rgb10-for-chromium-on-amd.patch
+++ b/n_drirc-disable-rgb10-for-chromium-on-amd.patch
@@ -1,8 +1,7 @@
-Index: mesa-19.3.1/src/util/00-mesa-defaults.conf
-===================================================================
---- mesa-19.3.1.orig/src/util/00-mesa-defaults.conf
-+++ mesa-19.3.1/src/util/00-mesa-defaults.conf
-@@ -523,6 +523,14 @@ TODO: document the other workarounds.
+diff -dupr mesa-20.0.0.orig/src/util/00-mesa-defaults.conf mesa-20.0.0/src/util/00-mesa-defaults.conf
+--- mesa-20.0.0.orig/src/util/00-mesa-defaults.conf 2020-02-19 20:29:32.000000000 +0100
++++ mesa-20.0.0/src/util/00-mesa-defaults.conf 2020-02-22 12:10:47.118008543 +0100
+@@ -556,6 +556,14 @@ TODO: document the other workarounds.
@@ -14,6 +13,6 @@ Index: mesa-19.3.1/src/util/00-mesa-defaults.conf
+
+
+
-
-
-
+