From a5b18bd4785dc8176f4f06bb09bf2d52873bc73e Mon Sep 17 00:00:00 2001 From: Thong Thai Date: Mon, 16 Jan 2023 11:05:14 -0500 Subject: [PATCH] gallium/auxiliary/vl: clean-up progressive shader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the progressive shader to the vl_compositor_cs_cleanup_shaders function. Signed-off-by: Thong Thai Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8086 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8088 Tested-by: Mark Herbert Reviewed-by: Marek Olšák (cherry picked from commit bb003d406e0b32c0507b27e9667704e240addf40) Fixes: 56eac722bd7 ("gallium/auxiliary/vl: compute shaders for progressive yuv") Part-of: --- src/gallium/auxiliary/vl/vl_compositor_cs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_compositor_cs.c b/src/gallium/auxiliary/vl/vl_compositor_cs.c index 8a4fc6398c4..743b3538825 100644 --- a/src/gallium/auxiliary/vl/vl_compositor_cs.c +++ b/src/gallium/auxiliary/vl/vl_compositor_cs.c @@ -961,4 +961,8 @@ void vl_compositor_cs_cleanup_shaders(struct vl_compositor *c) c->pipe->delete_compute_state(c->pipe, c->cs_yuv.bob.y); if (c->cs_yuv.bob.uv) c->pipe->delete_compute_state(c->pipe, c->cs_yuv.bob.uv); + if (c->cs_yuv.progressive.y) + c->pipe->delete_compute_state(c->pipe, c->cs_yuv.progressive.y); + if (c->cs_yuv.progressive.uv) + c->pipe->delete_compute_state(c->pipe, c->cs_yuv.progressive.uv); }