[mesa/f17] get latest 8.0.2 set of fixes

Dave Airlie airlied at fedoraproject.org
Sat Mar 31 08:52:04 UTC 2012


commit 6d3385fa54e9f9a8c69b38de4777e4260f6eaa46
Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Mar 31 09:25:39 2012 +0100

    get latest 8.0.2 set of fixes

 .gitignore                                         |    1 +
 ...ix-null-dereference-processing-HiZ-buffer.patch |   52 ++++++++++++++++++++
 mesa.spec                                          |   14 +++--
 sources                                            |    2 +-
 4 files changed, 63 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c99b51e..1d5484f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,4 @@ mesa-20100720.tar.bz2
 /mesa-20120126.tar.xz
 /MesaLib-8.0.tar.bz2
 /MesaLib-8.0.1.tar.bz2
+/MesaLib-8.0.2.tar.bz2
diff --git a/0001-intel-fix-null-dereference-processing-HiZ-buffer.patch b/0001-intel-fix-null-dereference-processing-HiZ-buffer.patch
new file mode 100644
index 0000000..7c507b2
--- /dev/null
+++ b/0001-intel-fix-null-dereference-processing-HiZ-buffer.patch
@@ -0,0 +1,52 @@
+From 89e796aef5ca1b35ca4ff6fce9231b4125e07037 Mon Sep 17 00:00:00 2001
+From: Dylan Noblesmith <nobled at dreamwidth.org>
+Date: Fri, 16 Mar 2012 18:38:49 +0000
+Subject: [PATCH] intel: fix null dereference processing HiZ buffer
+
+Or technically, a near-null dereference.
+
+https://bugs.freedesktop.org/show_bug.cgi?id=46303
+https://bugs.freedesktop.org/show_bug.cgi?id=46739
+
+NOTE: This is a candidate for the 8.0 branch.
+
+Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
+(cherry picked from commit 8d9decb75f0df564abaf9888d9fc5c77de8059cd)
+---
+ src/mesa/drivers/dri/intel/intel_context.c |    6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
+index d3c0d70..9cdd804 100644
+--- a/src/mesa/drivers/dri/intel/intel_context.c
++++ b/src/mesa/drivers/dri/intel/intel_context.c
+@@ -1225,6 +1225,10 @@ intel_process_dri2_buffer_with_separate_stencil(struct intel_context *intel,
+    if (!rb)
+       return;
+ 
++   /* Check if we failed to allocate the depth miptree earlier. */
++   if (buffer->attachment == __DRI_BUFFER_HIZ && rb->mt == NULL)
++     return;
++
+    /* If the renderbuffer's and DRIbuffer's regions match, then continue. */
+    if ((buffer->attachment != __DRI_BUFFER_HIZ &&
+ 	rb->mt &&
+@@ -1266,6 +1270,7 @@ intel_process_dri2_buffer_with_separate_stencil(struct intel_context *intel,
+     * due to failure to allocate new storage.
+     */
+    if (buffer->attachment == __DRI_BUFFER_HIZ) {
++      assert(rb->mt);
+       intel_miptree_release(&rb->mt->hiz_mt);
+    } else {
+       intel_miptree_release(&rb->mt);
+@@ -1291,6 +1296,7 @@ intel_process_dri2_buffer_with_separate_stencil(struct intel_context *intel,
+ 
+    /* Associate buffer with new storage. */
+    if (buffer->attachment == __DRI_BUFFER_HIZ) {
++      assert(rb->mt);
+       rb->mt->hiz_mt = mt;
+    } else {
+       rb->mt = mt;
+-- 
+1.7.7.6
+
diff --git a/mesa.spec b/mesa.spec
index 567ba38..08da9bc 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -29,8 +29,8 @@
 
 Summary: Mesa graphics libraries
 Name: mesa
-Version: 8.0.1
-Release: 9%{?dist}
+Version: 8.0.2
+Release: 1%{?dist}
 License: MIT
 Group: System Environment/Libraries
 URL: http://www.mesa3d.org
@@ -45,9 +45,10 @@ Source3: make-git-snapshot.sh
 #Patch7: mesa-7.1-link-shared.patch
 Patch8: mesa-7.10-llvmcore.patch
 Patch9: mesa-8.0-llvmpipe-shmget.patch
-Patch10: mesa-8.0.1-git.patch
+Patch10: 0001-intel-fix-null-dereference-processing-HiZ-buffer.patch
 Patch11: mesa-8.0-nouveau-tfp-blacklist.patch
 
+
 BuildRequires: pkgconfig autoconf automake libtool
 %if %{with_hardware}
 BuildRequires: kernel-headers
@@ -269,12 +270,12 @@ Requires(postun): /sbin/ldconfig
 Mesa shared glapi
 
 %prep
-%setup -q -n Mesa-%{version}%{?snapshot} -b0 -b2
+%setup -q -n Mesa-%{version}%{?snapshot} -b2
 #setup -q -n mesa-%{gitdate} -b2
 #patch7 -p1 -b .dricore
 %patch8 -p1 -b .llvmcore
 %patch9 -p1 -b .shmget
-%patch10 -p1 -b .git
+%patch10 -p1 -b .intel-hiz-fix
 %patch11 -p1 -b .nouveau
 
 %build
@@ -551,6 +552,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Sat Mar 31 2012 Dave Airlie <airlied at redhat.com> 8.0.2-1
+- get latest 8.0.2 set of fixes
+
 * Wed Mar 28 2012 Adam Jackson <ajax at redhat.com> 8.0.1-9
 - Subpackage libglapi instead of abusing -dri-drivers for it to keep minimal
   disk space minimal. (#807750)
diff --git a/sources b/sources
index a99602a..8464215 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
 6ae05158e678f4594343f32c2ca50515  gl-manpages-1.0.1.tar.bz2
-24eeebf66971809d8f40775a379b36c9  MesaLib-8.0.1.tar.bz2
+a368104e5700707048dc3e8691a9a7a1  MesaLib-8.0.2.tar.bz2


More information about the scm-commits mailing list