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:
Rob Clark 2022-11-05 12:16:16 -07:00 committed by Marge Bot
parent 924f264081
commit 9ececfc6e6

View file

@ -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");