tools/decode: don't move around the display register section

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2011-10-18 15:54:31 +02:00
parent 6ed89f47ec
commit 92b1f2c96e

View File

@ -315,6 +315,16 @@ read_data_file (FILE *file)
if (matched != 2) {
unsigned int reg;
/* display reg section is after the ringbuffers, don't mix them */
if (count) {
printf("%s (%s) at 0x%08x:\n",
buffer_type[is_batch],
ring_name,
gtt_offset);
intel_decode (data, count, gtt_offset, devid, 0);
count = 0;
}
printf("%s", line);
matched = sscanf (line, "PCI ID: 0x%04x\n", &reg);