freedreno/decode: Fix overflow
authorRob Clark <robdclark@chromium.org>
Tue, 2 Feb 2021 20:12:14 +0000 (12:12 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Feb 2021 18:35:38 +0000 (18:35 +0000)
commitff61e9b54d9133cd7ac2f2d4b4761a43383834a3
tree33db4fb5756ad1148146da55439f57fdb058d0c2
parent57238876765017ae8c3217f702e67cb1cbcc4008
freedreno/decode: Fix overflow

CP_SET_DRAW_STATE state-groups count as a 4th level of IB.  Fixes a
crash seen on 32b/arm builds of crashdec.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8842>
src/freedreno/decode/cffdec.c