summaryrefslogtreecommitdiff
path: root/lib/intel_chipset.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-12-06 16:57:53 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-12-06 16:57:53 +0100
commitff409c537f541cbaa20f0b0f8faa03ece0d8014f (patch)
tree9936e3c4819577d21ebc814653f1a63a9c311301 /lib/intel_chipset.h
parent5a851b139266063fc4e172e6ce781ebc1c75c9d9 (diff)
tests/gem_partial_pwrite_pread: don't trash gtt unnecessarily
On chips that don't have a unmappable gtt part it's utterly pointless. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/intel_chipset.h')
-rwxr-xr-xlib/intel_chipset.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 35edaf77..668bf598 100755
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -114,7 +114,9 @@
#define IS_945(devid) (devid == PCI_CHIP_I945_G || \
devid == PCI_CHIP_I945_GM || \
devid == PCI_CHIP_I945_GME || \
- devid == PCI_CHIP_G33_G || \
+ IS_G33(devid))
+
+#define IS_G33(devid) (devid == PCI_CHIP_G33_G || \
devid == PCI_CHIP_Q33_G || \
devid == PCI_CHIP_Q35_G || IS_IGD(devid))