Add E7221 variant to i915.
authorAdam Jackson <ajax@redhat.com>
Fri, 15 Feb 2008 19:46:25 +0000 (14:46 -0500)
committerAdam Jackson <ajax@redhat.com>
Fri, 15 Feb 2008 19:46:25 +0000 (14:46 -0500)
src/mesa/drivers/dri/i915/intel_context.c
src/mesa/drivers/dri/intel/intel_chipset.h

index 3b6a1d5..40c5870 100644 (file)
@@ -48,6 +48,7 @@
 
 #include "i830_dri.h"
 
+#include "intel_chipset.h"
 #include "intel_buffers.h"
 #include "intel_tex.h"
 #include "intel_span.h"
@@ -123,6 +124,9 @@ intelGetString(GLcontext * ctx, GLenum name)
       case PCI_CHIP_I915_G:
          chipset = "Intel(R) 915G";
          break;
+      case PCI_CHIP_E7221_G:
+        chipset = "Intel (R) E7221G (i915)";
+        break;
       case PCI_CHIP_I915_GM:
          chipset = "Intel(R) 915GM";
          break;
index 5f094dc..168dc72 100644 (file)
@@ -36,6 +36,7 @@
 #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
@@ -73,6 +74,7 @@
                                 IS_IGD(devid))
 
 #define IS_9XX(devid)          (devid == PCI_CHIP_I915_G || \
+                                devid == PCI_CHIP_E7221_G || \
                                 devid == PCI_CHIP_I915_GM || \
                                 devid == PCI_CHIP_I945_G || \
                                 devid == PCI_CHIP_I945_GM || \