From: Dave Airlie Date: Tue, 5 May 2020 06:02:39 +0000 (+1000) Subject: draw/tess: free tessellation control shader i/o memory. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1ad1be35a5ba609fd533f2a808a473a067028d8;p=mesa.git draw/tess: free tessellation control shader i/o memory. Fixes: 0d02a7b8ca79 (draw: add main tessellation code) Reviewed-by: Roland Scheidegger Part-of: --- 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);