summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@fedoraproject.org>2008-05-07 00:21:10 +0000
committerDave Airlie <airlied@fedoraproject.org>2008-05-07 00:21:10 +0000
commit75c2c8ea2b573a42724e51b79627b9a1b9b52649 (patch)
tree65fd632cc027d839714e22c4acac230f120fc4d2
parent869d45b951ac7e6ff82972cd642f88371df2888a (diff)
downloadmesa-75c2c8ea2b573a42724e51b79627b9a1b9b52649.tar.gz
mesa-75c2c8ea2b573a42724e51b79627b9a1b9b52649.tar.xz
mesa-75c2c8ea2b573a42724e51b79627b9a1b9b52649.zip
- fix googleearth on Intel 965 (#443930)mesa-7_1-0_30_fc9
- disable classic warning to avoid people reporting it.
-rw-r--r--mesa-7.1-disable-intel-classic-warn.patch14
-rw-r--r--mesa-7.1-fix-965-googleearth.patch38
-rw-r--r--mesa.spec10
3 files changed, 61 insertions, 1 deletions
diff --git a/mesa-7.1-disable-intel-classic-warn.patch b/mesa-7.1-disable-intel-classic-warn.patch
new file mode 100644
index 0000000..3370e92
--- /dev/null
+++ b/mesa-7.1-disable-intel-classic-warn.patch
@@ -0,0 +1,14 @@
+diff -up mesa-20080415/src/mesa/drivers/dri/intel/intel_context.c.nowarn mesa-20080415/src/mesa/drivers/dri/intel/intel_context.c
+--- mesa-20080415/src/mesa/drivers/dri/intel/intel_context.c.nowarn 2008-05-07 10:11:10.000000000 +1000
++++ mesa-20080415/src/mesa/drivers/dri/intel/intel_context.c 2008-05-07 10:11:21.000000000 +1000
+@@ -479,8 +479,8 @@ intel_init_bufmgr(struct intel_context *
+ if (ttm_disable) {
+ fprintf(stderr, "TTM buffer manager disabled. Using classic.\n");
+ } else {
+- fprintf(stderr, "Failed to initialize TTM buffer manager. "
+- "Falling back to classic.\n");
++ //fprintf(stderr, "Failed to initialize TTM buffer manager. "
++ // "Falling back to classic.\n");
+ }
+
+ if (intelScreen->tex.size == 0) {
diff --git a/mesa-7.1-fix-965-googleearth.patch b/mesa-7.1-fix-965-googleearth.patch
new file mode 100644
index 0000000..a081d11
--- /dev/null
+++ b/mesa-7.1-fix-965-googleearth.patch
@@ -0,0 +1,38 @@
+commit 17adf04e5c1da72a51815f3fdb9de2f3a8149c1a
+Author: Dave Airlie <airlied@panoply-rh.(none)>
+Date: Tue May 6 18:52:47 2008 +1000
+
+ i965: fix googleearth in classic mode.
+
+ In classic mode googleearth triggered a case where vbos weren't getting accounted properly.
+
+diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
+index aa985d6..2d99238 100644
+--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
++++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
+@@ -404,6 +404,7 @@ int brw_prepare_vertices( struct brw_context *brw,
+ */
+ copy_array_to_vbo_array(brw, upload[0], interleave);
+
++ ret |= dri_bufmgr_check_aperture_space(upload[0]->bo);
+ for (i = 1; i < nr_uploads; i++) {
+ /* Then, just point upload[i] at upload[0]'s buffer. */
+ upload[i]->stride = interleave;
+@@ -416,13 +417,13 @@ int brw_prepare_vertices( struct brw_context *brw,
+ else {
+ /* Upload non-interleaved arrays */
+ for (i = 0; i < nr_uploads; i++) {
+- copy_array_to_vbo_array(brw, upload[i], upload[i]->element_size);
++ copy_array_to_vbo_array(brw, upload[i], upload[i]->element_size);
++ if (upload[i]->bo) {
++ ret |= dri_bufmgr_check_aperture_space(upload[i]->bo);
++ }
+ }
+ }
+
+- if (brw->vb.upload.bo) {
+- ret |= dri_bufmgr_check_aperture_space(brw->vb.upload.bo);
+- }
+
+ if (ret)
+ return 1;
diff --git a/mesa.spec b/mesa.spec
index e259ee7..5a14652 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -15,7 +15,7 @@
Summary: Mesa graphics libraries
Name: mesa
Version: 7.1
-Release: 0.29%{?dist}
+Release: 0.30%{?dist}
License: MIT
Group: System Environment/Libraries
URL: http://www.mesa3d.org
@@ -39,6 +39,8 @@ Patch7: mesa-7.1-link-shared.patch
Patch8: mesa-7.1-sparc.patch
Patch10: mesa-7.1-f9-intel-and-radeon-fixes.patch
+Patch11: mesa-7.1-fix-965-googleearth.patch
+Patch12: mesa-7.1-disable-intel-classic-warn.patch
BuildRequires: pkgconfig autoconf automake
%if %{with_dri}
@@ -168,6 +170,8 @@ This package provides some demo applications for testing Mesa.
%patch7 -p1 -b .dricore
%patch8 -p1
%patch10 -p1 -b .misc-fixes
+%patch11 -p1 -b .965-googleearth
+%patch12 -p1 -b .intel-nowarn
# WARNING: The following files are copyright "Mark J. Kilgard" under the GLUT
# license and are not open source/free software, so we remove them.
@@ -416,6 +420,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/mesa-demos-data
%changelog
+* Wed May 07 2008 Dave Airlie <airlied@redhat.com> 7.1-0.30
+- fix googleearth on Intel 965 (#443930)
+- disable classic warning to avoid people reporting it.
+
* Mon May 05 2008 Dave Airlie <airlied@redhat.com> 7.1-0.29
- mesa-7.1-f9-intel-and-radeon-fixes.patch - Update mesa
package with cherrypicked fixes from master.