intel_gpu_dump: Use the correct IPEHR on pre-965.

This commit is contained in:
Eric Anholt 2009-06-23 19:35:19 -07:00
parent eafbad3707
commit 21b6f2600d

View File

@ -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;