changeset 5768:f07e1bce8820

mesa: update to v21.0.3 * src/mesa.mk: update version, checksum * src/mesa-2-uninitalized.patch: new file * dist-files.mk: add ref to new patch
author John Donoghue <john.donoghue@ieee.org>
date Wed, 26 May 2021 08:18:25 -0400
parents 52a6c3546406
children 5bf7c01b1bf7
files dist-files.mk src/mesa-2-uninitalized.patch src/mesa.mk
diffstat 3 files changed, 36 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Wed May 26 08:18:24 2021 -0400
+++ b/dist-files.mk	Wed May 26 08:18:25 2021 -0400
@@ -336,6 +336,7 @@
   matio.mk \
   mdbtools.mk \
   mesa-1-meson.patch \
+  mesa-2-uninitalized.patch \
   mesa-proto.mk \
   mesa.mk \
   mingw-blas-1-xerbla.patch \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/mesa-2-uninitalized.patch	Wed May 26 08:18:25 2021 -0400
@@ -0,0 +1,33 @@
+diff -ur mesa-21.0.3.orig/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c mesa-21.0.3/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+--- mesa-21.0.3.orig/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c	2021-05-20 18:45:28.645574035 -0400
++++ mesa-21.0.3/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c	2021-05-20 18:50:13.771317137 -0400
+@@ -305,7 +305,7 @@
+    LLVMBuilderRef builder = mask->bld->gallivm->builder;
+    struct function_ctx *ctx = func_ctx(mask);
+ 
+-   int default_exec_pc;
++   int default_exec_pc = 0;
+    boolean default_is_last;
+ 
+    if (ctx->switch_stack_size > LP_MAX_TGSI_NESTING) {
+diff -ur mesa-21.0.3.orig/src/util/u_string.h mesa-21.0.3/src/util/u_string.h
+--- mesa-21.0.3.orig/src/util/u_string.h	2021-05-20 18:45:28.898588502 -0400
++++ mesa-21.0.3/src/util/u_string.h	2021-05-25 08:35:19.002123122 -0400
+@@ -42,6 +42,8 @@
+ #include <stddef.h>
+ #include <stdarg.h>
+ #include <string.h>
++#include <limits.h>
++
+ 
+ #include "util/macros.h" // PRINTFLIKE
+ 
+@@ -72,7 +74,7 @@
+ {
+    va_list ap;
+    va_start(ap, format);
+-   vsnprintf(str, (size_t)-1, format, ap);
++   vsnprintf(str, INT_MAX, format, ap);
+    va_end(ap);
+ }
+ 
--- a/src/mesa.mk	Wed May 26 08:18:24 2021 -0400
+++ b/src/mesa.mk	Wed May 26 08:18:25 2021 -0400
@@ -2,8 +2,8 @@
 # See index.html for further information.
 
 PKG             := mesa
-$(PKG)_VERSION  := 20.3.5
-$(PKG)_CHECKSUM := 444b0b147537ea00c02e779d610009a377649db6
+$(PKG)_VERSION  := 21.0.3
+$(PKG)_CHECKSUM := e97b6bba3f6223668bf37a6bdea9dca5859470b4
 $(PKG)_SUBDIR   := mesa-$($(PKG)_VERSION)
 $(PKG)_FILE     := mesa-$($(PKG)_VERSION).tar.xz
 $(PKG)_URL      := ftp://ftp.freedesktop.org/pub/mesa/$($(PKG)_FILE)