mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 10:26:12 +00:00
error decode: print out class of chipset in the error report
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
f19a1942c2
commit
4f20844247
@ -256,8 +256,16 @@ read_data_file (FILE *file)
|
|||||||
printf("%s", line);
|
printf("%s", line);
|
||||||
|
|
||||||
matched = sscanf (line, "PCI ID: 0x%04x\n", ®);
|
matched = sscanf (line, "PCI ID: 0x%04x\n", ®);
|
||||||
if (matched == 1)
|
if (matched == 1) {
|
||||||
devid = reg;
|
devid = reg;
|
||||||
|
if (IS_965(devid)) {
|
||||||
|
printf("Detected i965+ chipset\n");
|
||||||
|
} else if (IS_9XX(devid)) {
|
||||||
|
printf("Detected i9xx chipset\n");
|
||||||
|
} else {
|
||||||
|
printf("Detected i8xx chipset\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
matched = sscanf (line, " ACTHD: 0x%08x\n", ®);
|
matched = sscanf (line, " ACTHD: 0x%08x\n", ®);
|
||||||
if (matched == 1)
|
if (matched == 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user