From 334f76d22de1098fb209c08c8ae45b8d71c4ed6a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 15 Jan 2010 14:26:43 -0800 Subject: [PATCH] intel_gpu_dump: Use the spec's names for the INSTDONE regs printed out. --- tools/intel_gpu_dump.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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);