summaryrefslogtreecommitdiff
path: root/tools/intel_error_decode.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-02-14 15:56:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-02-14 15:57:40 +0000
commit41570d9bf583d35687bab88ac88620af41404836 (patch)
tree48c8cba44c9785ce392c7791323cdbb1dc31231d /tools/intel_error_decode.c
parentdac602b7b3678c82dd7bc41f258e6518efb8d6cd (diff)
Remove confusing use of IS_9XX
... and test for what we mean instead. Reported-by: Diego Celix <dcelix@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/intel_error_decode.c')
-rw-r--r--tools/intel_error_decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index a27ade9b..2745019d 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -202,7 +202,7 @@ print_pgtbl_err(unsigned int reg, unsigned int devid)
{
if (IS_965(devid)) {
return print_i965_pgtbl_err(reg);
- } else if (IS_9XX(devid)) {
+ } else if (IS_GEN3(devid)) {
return print_i915_pgtbl_err(reg);
} else {
return print_i830_pgtbl_err(reg);
@@ -268,7 +268,7 @@ read_data_file (FILE *file)
devid = reg;
if (IS_965(devid)) {
printf("Detected i965+ chipset\n");
- } else if (IS_9XX(devid)) {
+ } else if (IS_GEN3(devid)) {
printf("Detected i9xx chipset\n");
} else {
printf("Detected i8xx chipset\n");