freedreno: Fix leak of binning shader variants.
authorEric Anholt <eric@anholt.net>
Thu, 9 Apr 2020 20:32:45 +0000 (13:32 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Apr 2020 18:42:20 +0000 (18:42 +0000)
commit904d5d63b47661950c5eace94e9ba3341bd4cb1c
tree8eb532ecfb7e4f8a173d359238a8a3b670c4c48f
parent5ec1f264f1f70806fe266606d3376a898a96292d
freedreno: Fix leak of binning shader variants.

The v->binning variant is never added to shader->variants, so just free
each one as we free the nonbinning variant.

Noticed from drm-shim mode running out of open fds, since each bo ends up
with an fd.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4502>
src/freedreno/ir3/ir3_shader.c