freedreno/decode: try harder to not crash in disasm
authorRob Clark <robdclark@chromium.org>
Mon, 10 Aug 2020 15:47:40 +0000 (08:47 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Aug 2020 03:13:42 +0000 (03:13 +0000)
commit3d6e4a201af04018f18c413dead488c3c5565e1a
treeb36dbd76d47b451538dada36596f8d7a58f687b1
parentcbfce486f2cea8ace3bda5d2d93d28952ad2944d
freedreno/decode: try harder to not crash in disasm

Move the handling for catching asserts when we start decoding garbage
into disasm-a3xx.  This way it can also cover other cases where cffdec
tries to disassemble memory, such as SP_xS_OBJ_START.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6242>
src/freedreno/common/disasm.h
src/freedreno/decode/cffdec.c
src/freedreno/decode/crashdec.c
src/freedreno/ir3/disasm-a3xx.c