From 21b6f2600d2eda8e9c10ab9b123ebe79431779f7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 23 Jun 2009 19:35:19 -0700 Subject: [PATCH] intel_gpu_dump: Use the correct IPEHR on pre-965. --- tools/intel_gpu_dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c index 0e1e4af..a912dbb 100644 --- a/tools/intel_gpu_dump.c +++ b/tools/intel_gpu_dump.c @@ -2108,7 +2108,8 @@ main (int argc, char *argv[]) printf("EIR: 0x%08x\n", INREG(EIR)); printf("EMR: 0x%08x\n", INREG(EMR)); printf("ESR: 0x%08x\n", INREG(ESR)); - printf("IPEHR: 0x%08x\n", INREG(IPEHR_I965)); + printf("IPEHR: 0x%08x\n", + IS_965(devid) ? INREG(IPEHR_I965) : INREG(IPEHR)); asprintf (&filename, "%s/i915_batchbuffers", path); head_offset = acthd; -- 2.7.4