freedreno/ir3: fix crash with samgq workaround
authorRob Clark <robdclark@chromium.org>
Wed, 26 Feb 2020 00:37:26 +0000 (16:37 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 16:53:41 +0000 (16:53 +0000)
commit4b8e198fd2b5bfcefccd998a94a1f065c91119d3
treec775ab27e156e0502086eccbfa40fd9bac576e4f
parent56565b7bba54b8298d2c14c66bb87c59930b09ee
freedreno/ir3: fix crash with samgq workaround

Need to list_delinit() before we clone the instruction to split it into
individual samgpN instructions, otherwise we get list corruption.

Tested-by: Eduardo Lima Mitev <elima@igalia.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
src/freedreno/ir3/ir3_legalize.c