summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-01-15 14:26:43 -0800
committerEric Anholt <eric@anholt.net>2010-02-25 10:41:49 -0800
commit334f76d22de1098fb209c08c8ae45b8d71c4ed6a (patch)
tree3276bef971f5c091e90d02f8aa56d6d1fdfd0abe
parent35233864413ff74e26a29b7807ec7413cde6e7cc (diff)
intel_gpu_dump: Use the spec's names for the INSTDONE regs printed out.
-rw-r--r--tools/intel_gpu_dump.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c
index 99ec7b73..9fd3f123 100644
--- a/tools/intel_gpu_dump.c
+++ b/tools/intel_gpu_dump.c
@@ -324,7 +324,15 @@ main (int argc, char *argv[])
printf("ESR: 0x%08x\n", INREG(ESR));
printf("PGTBL_ER: 0x%08x\n", INREG(PGTBL_ER));
- if (IS_965(devid)) {
+ if (IS_GEN6(devid)) {
+ instdone = INREG(GEN6_INSTDONE_1);
+ instdone1 = INREG(GEN6_INSTDONE_2);
+
+ printf("IPEHR: 0x%08x\n", INREG(IPEHR_I965));
+ printf("IPEIR: 0x%08x\n", INREG(IPEIR_I965));
+ printf("INSTDONE1: 0x%08x\n", instdone);
+ printf("INSTDONE2: 0x%08x\n", instdone1);
+ } else if (IS_965(devid)) {
instdone = INREG(INST_DONE_I965);
instdone1 = INREG(INST_DONE_1);