freedreno/drm: Also clean ring_cache
authorRob Clark <robdclark@chromium.org>
Mon, 28 Sep 2020 21:25:11 +0000 (14:25 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Sep 2020 20:56:54 +0000 (20:56 +0000)
commit27c8d976577effe89c336181db7d140ddbb5cfa8
tree75cb05d821ec029c650245fcaa0d13b4a7eb322a
parent98093e2780eb14dc917eff6389da7ef48803f1ff
freedreno/drm: Also clean ring_cache

We also need to release all the entries from the ring_cache when tearing
down the dev.

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