From d1ad1be35a5ba609fd533f2a808a473a067028d8 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 5 May 2020 16:02:39 +1000 Subject: [PATCH] draw/tess: free tessellation control shader i/o memory. Fixes: 0d02a7b8ca79 (draw: add main tessellation code) Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/auxiliary/draw/draw_tess.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/draw/draw_tess.c b/src/gallium/auxiliary/draw/draw_tess.c index f025d955f02..07d5ef960f7 100644 --- a/src/gallium/auxiliary/draw/draw_tess.c +++ b/src/gallium/auxiliary/draw/draw_tess.c @@ -497,8 +497,11 @@ void draw_delete_tess_ctrl_shader(struct draw_context *draw, } assert(shader->variants_cached == 0); + align_free(dtcs->tcs_input); + align_free(dtcs->tcs_output); } #endif + if (dtcs->state.ir.nir) ralloc_free(dtcs->state.ir.nir); FREE(dtcs); -- 2.30.2