mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
freedreno/cffdec: Fix hang location detection
We were previously checking only every 8 dwords within the packet. We should instead just check if the hang location comes within the packet. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19551>
This commit is contained in:
parent
924f264081
commit
9ececfc6e6
1 changed files with 2 additions and 1 deletions
|
|
@ -202,6 +202,8 @@ dump_hex(uint32_t *dwords, uint32_t sizedwords, int level)
|
|||
if (quiet(2))
|
||||
return;
|
||||
|
||||
bool highlight = highlight_gpuaddr(gpuaddr(dwords) + 4 * sizedwords - 1);
|
||||
|
||||
for (i = 0; i < sizedwords; i += 8) {
|
||||
int zero = 1;
|
||||
|
||||
|
|
@ -222,7 +224,6 @@ dump_hex(uint32_t *dwords, uint32_t sizedwords, int level)
|
|||
continue;
|
||||
|
||||
uint64_t addr = gpuaddr(&dwords[i]);
|
||||
bool highlight = highlight_gpuaddr(addr);
|
||||
|
||||
if (highlight)
|
||||
printf("\x1b[0;1;31m");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue