mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 13:40:37 +02:00
intel/tools: decode ACTHD printed by newer kernels
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22874>
This commit is contained in:
parent
499f332a3a
commit
d6ece34418
1 changed files with 8 additions and 0 deletions
|
|
@ -566,6 +566,14 @@ read_data_file(FILE *file)
|
|||
if (matched == 2)
|
||||
acthd = ((uint64_t)reg << 32) | reg2;
|
||||
|
||||
matched = sscanf(line, " ACTHD_LDW: 0x%08x\n", ®);
|
||||
if (matched == 1)
|
||||
acthd = reg;
|
||||
|
||||
matched = sscanf(line, " ACTHD_UDW: 0x%08x\n", ®);
|
||||
if (matched == 1)
|
||||
acthd |= (uint64_t)reg << 32;
|
||||
|
||||
matched = sscanf(line, " PGTBL_ER: 0x%08x\n", ®);
|
||||
if (matched == 1 && reg)
|
||||
print_pgtbl_err(reg, &devinfo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue