From 41185a9826754edce1f3ce63e15fbff0dbfa9e49 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 22 Jan 2008 18:27:50 +0000 Subject: [PATCH] =?UTF-8?q?-=20Enable=20i915=20DRI=20on=20E7221.=20(Carlos?= =?UTF-8?q?=20Mart=C3=ADn,=20#425790)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mesa-7.1-e7221.patch | 35 +++++++++++++++++++++++++++++++++++ mesa.spec | 7 ++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 mesa-7.1-e7221.patch diff --git a/mesa-7.1-e7221.patch b/mesa-7.1-e7221.patch new file mode 100644 index 0000000..c0ed4f0 --- /dev/null +++ b/mesa-7.1-e7221.patch @@ -0,0 +1,35 @@ +diff -up mesa-20071127/src/mesa/drivers/dri/i915/intel_screen.c.e7221 mesa-20071127/src/mesa/drivers/dri/i915/intel_screen.c +--- mesa-20071127/src/mesa/drivers/dri/i915/intel_screen.c.e7221 2007-11-27 14:33:54.000000000 -0500 ++++ mesa-20071127/src/mesa/drivers/dri/i915/intel_screen.c 2008-01-22 13:26:07.000000000 -0500 +@@ -735,6 +735,7 @@ intelCreateContext(const __GLcontextMode + return i830CreateContext(mesaVis, driContextPriv, sharedContextPrivate); + + case PCI_CHIP_I915_G: ++ case PCI_CHIP_E7221_G: + case PCI_CHIP_I915_GM: + case PCI_CHIP_I945_G: + case PCI_CHIP_I945_GM: +diff -up mesa-20071127/src/mesa/drivers/dri/i915/intel_context.h.e7221 mesa-20071127/src/mesa/drivers/dri/i915/intel_context.h +--- mesa-20071127/src/mesa/drivers/dri/i915/intel_context.h.e7221 2007-11-27 14:33:54.000000000 -0500 ++++ mesa-20071127/src/mesa/drivers/dri/i915/intel_context.h 2008-01-22 13:26:07.000000000 -0500 +@@ -324,6 +324,7 @@ extern int INTEL_DEBUG; + #define PCI_CHIP_I855_GM 0x3582 + #define PCI_CHIP_I865_G 0x2572 + #define PCI_CHIP_I915_G 0x2582 ++#define PCI_CHIP_E7221_G 0x258A + #define PCI_CHIP_I915_GM 0x2592 + #define PCI_CHIP_I945_G 0x2772 + #define PCI_CHIP_I945_GM 0x27A2 +diff -up mesa-20071127/src/mesa/drivers/dri/i915/intel_context.c.e7221 mesa-20071127/src/mesa/drivers/dri/i915/intel_context.c +--- mesa-20071127/src/mesa/drivers/dri/i915/intel_context.c.e7221 2007-11-27 14:33:54.000000000 -0500 ++++ mesa-20071127/src/mesa/drivers/dri/i915/intel_context.c 2008-01-22 13:27:10.000000000 -0500 +@@ -125,6 +125,9 @@ intelGetString(GLcontext * ctx, GLenum n + case PCI_CHIP_I915_GM: + chipset = "Intel(R) 915GM"; + break; ++ case PCI_CHIP_E7221_G: ++ chipset = "Intel(R) E7221G (i915)"; ++ break; + case PCI_CHIP_I945_G: + chipset = "Intel(R) 945G"; + break; diff --git a/mesa.spec b/mesa.spec index 2b13ceb..06b1bde 100644 --- a/mesa.spec +++ b/mesa.spec @@ -35,7 +35,7 @@ Summary: Mesa graphics libraries Name: mesa Version: 7.1 -Release: 0.7%{?dist} +Release: 0.8%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -53,6 +53,7 @@ Patch4: mesa-6.5-dont-libglut-me-harder-ok-thx-bye.patch Patch18: mesa-7.0-selinux-awareness.patch Patch25: mesa-7.0-symlinks-before-depend.patch Patch26: mesa-7.1-remove-getid-i915.patch +Patch27: mesa-7.1-e7221.patch BuildRequires: pkgconfig %if %{with_dri} @@ -182,6 +183,7 @@ chmod a-x progs/demos/glslnoise.c %patch18 -p1 -b .selinux-awareness %patch25 -p1 -b .makej %patch26 -p1 -b .fixi915 +%patch27 -p1 -b .e7221 # WARNING: The following files are copyright "Mark J. Kilgard" under the GLUT # license and are not open source/free software, so we remove them. @@ -413,6 +415,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/mesa-demos-data %changelog +* Tue Jan 22 2008 Adam Jackson 7.1-0.8 +- Enable i915 DRI on E7221. (Carlos Martín, #425790) + * Mon Jan 21 2008 Adam Jackson - Make the demo seddery prettier.