aboutsummaryrefslogtreecommitdiff
path: root/graphics/dri
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2007-04-30 11:44:58 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2007-04-30 11:44:58 +0000
commit8d956ddc3a1721f614ab8ab299d4a8c0752a9692 (patch)
treeb5788d52248d72ed91275cadcb79c3c1fae3819d /graphics/dri
parentb283a7205c39976d74f17f7163e93fc8909a3421 (diff)
downloadports-8d956ddc3a1721f614ab8ab299d4a8c0752a9692.tar.gz
ports-8d956ddc3a1721f614ab8ab299d4a8c0752a9692.zip
Notes
Diffstat (limited to 'graphics/dri')
-rw-r--r--graphics/dri/Makefile2
-rw-r--r--graphics/dri/files/patch-945gm43
2 files changed, 44 insertions, 1 deletions
diff --git a/graphics/dri/Makefile b/graphics/dri/Makefile
index 6e6bcb4550c2..58b60c4f741a 100644
--- a/graphics/dri/Makefile
+++ b/graphics/dri/Makefile
@@ -37,7 +37,7 @@ DRIMODDIR= ${PREFIX}/lib/modules/dri
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM:L} != xorg
-IGNORE= requires libGL from X.Org.
+IGNORE= requires libGL from X.Org
.endif
do-install:
diff --git a/graphics/dri/files/patch-945gm b/graphics/dri/files/patch-945gm
new file mode 100644
index 000000000000..f65cdb09ce71
--- /dev/null
+++ b/graphics/dri/files/patch-945gm
@@ -0,0 +1,43 @@
+--- src/mesa/drivers/dri/i915/intel_screen.c.orig Fri Apr 6 16:49:46 2007
++++ src/mesa/drivers/dri/i915/intel_screen.c Fri Apr 6 16:50:04 2007
+@@ -340,6 +340,7 @@
+ case PCI_CHIP_I915_G:
+ case PCI_CHIP_I915_GM:
+ case PCI_CHIP_I945_G:
++ case PCI_CHIP_I945_GM:
+ return i915CreateContext( mesaVis, driContextPriv,
+ sharedContextPrivate );
+
+--- src/mesa/drivers/dri/i915/intel_context.c.orig Fri Apr 6 16:45:51 2007
++++ src/mesa/drivers/dri/i915/intel_context.c Fri Apr 6 16:46:20 2007
+@@ -118,6 +118,8 @@
+ chipset = "Intel(R) 915GM"; break;
+ case PCI_CHIP_I945_G:
+ chipset = "Intel(R) 945G"; break;
++ case PCI_CHIP_I945_GM:
++ chipset = "Intel(R) 945GM"; break;
+ default:
+ chipset = "Unknown Intel Chipset"; break;
+ }
+--- src/mesa/drivers/dri/i915/i915_texstate.c.orig Fri Apr 6 16:48:21 2007
++++ src/mesa/drivers/dri/i915/i915_texstate.c Fri Apr 6 16:48:48 2007
+@@ -496,7 +496,8 @@
+ }
+
+
+- if (i915->intel.intelScreen->deviceID == PCI_CHIP_I945_G)
++ if (i915->intel.intelScreen->deviceID == PCI_CHIP_I945_G ||
++ i915->intel.intelScreen->deviceID == PCI_CHIP_I945_GM)
+ i945LayoutTextureImages( i915, tObj );
+ else
+ i915LayoutTextureImages( i915, tObj );
+--- src/mesa/drivers/dri/i915/intel_context.h.orig Fri Apr 6 16:49:05 2007
++++ src/mesa/drivers/dri/i915/intel_context.h Fri Apr 6 16:49:31 2007
+@@ -413,6 +413,7 @@
+ #define PCI_CHIP_I915_G 0x2582
+ #define PCI_CHIP_I915_GM 0x2592
+ #define PCI_CHIP_I945_G 0x2772
++#define PCI_CHIP_I945_GM 0x27A2
+
+
+ /* ================================================================