llvmpipe: fixup context leaks.
authorDave Airlie <airlied@redhat.com>
Tue, 14 Apr 2020 21:17:20 +0000 (07:17 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Apr 2020 04:25:50 +0000 (14:25 +1000)
commitf4edc6f8bd89e97047b79a4685640d0546e90a10
treeff981065aa4bcabd9cc75aac8e86fd7f6191b719
parent68b40cfe2728889d4bd86ff073b3b69fb8608e5a
llvmpipe: fixup context leaks.

Make sure we unreference all resources for all shaders on context
destruction.

Fixes: eb5227173f03 (llvmpipe: add support for tessellation shaders)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
src/gallium/drivers/llvmpipe/lp_context.c