Module: Mesa Branch: main Commit: 9ececfc6e639e8ae278954d6362392832fb1477b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ececfc6e639e8ae278954d6362392832fb1477b
Author: Rob Clark <[email protected]> Date: Sat Nov 5 12:16:16 2022 -0700 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19551> --- src/freedreno/decode/cffdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedreno/decode/cffdec.c b/src/freedreno/decode/cffdec.c index db18b46aa37..ee45b5589e3 100644 --- a/src/freedreno/decode/cffdec.c +++ b/src/freedreno/decode/cffdec.c @@ -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");
