diff options
author | Eric Anholt <eric@anholt.net> | 2009-06-23 18:16:42 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-06-23 18:16:42 -0700 |
commit | bf3b1a3da95a1190ad09a0007be6c4c45d76627b (patch) | |
tree | 24e03093d1e1002697a744a725d75ab551009f7a /tools | |
parent | a18af8ed43b092408196948b1ec3d7f9a8d7065c (diff) |
Oops, fix up printed hw offset since the HEAD pointer fixup
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_gpu_dump.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c index 46aace41..17afb1ed 100644 --- a/tools/intel_gpu_dump.c +++ b/tools/intel_gpu_dump.c @@ -91,7 +91,7 @@ instr_out(uint32_t *data, uint32_t hw_offset, unsigned int index, else parseinfo = " "; - fprintf(out, "0x%08x: %s 0x%08x: %s", offset + index * 4, parseinfo, + fprintf(out, "0x%08x: %s 0x%08x: %s", offset, parseinfo, data[index], index == 0 ? "" : " "); va_start(va, fmt); @@ -2018,7 +2018,7 @@ main (int argc, char *argv[]) return 1; } - intel_get_pci_device(); + intel_get_mmio(); if (argc == 1) { path = "/debug/dri/0"; @@ -2065,6 +2065,10 @@ main (int argc, char *argv[]) free (filename); printf("ACTHD: 0x%08x\n", acthd); + 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)); asprintf (&filename, "%s/i915_batchbuffers", path); head_offset = acthd; |