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 3b6a1d5ef959ca18a397c8df6652c68331fc9721..40c5870e7c511559953944927b4dad49e86db2a8 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 5f094dc5fb49f75a6150cc38c6338a0839adaff9..168dc724db761802209efe893636e93b51d6f4ce 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 || \