mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
draw/tess: free the NIR
Fixes: 0d02a7b8ca (draw: add main tessellation code)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4563>
This commit is contained in:
parent
f01c0565bb
commit
cb0a2b3df6
1 changed files with 5 additions and 1 deletions
|
|
@ -32,7 +32,7 @@
|
|||
#include "util/u_prim.h"
|
||||
#include "util/u_math.h"
|
||||
#include "util/u_memory.h"
|
||||
|
||||
#include "util/ralloc.h"
|
||||
static inline int
|
||||
draw_tes_get_input_index(int semantic, int index,
|
||||
const struct tgsi_shader_info *input_info)
|
||||
|
|
@ -498,6 +498,8 @@ void draw_delete_tess_ctrl_shader(struct draw_context *draw,
|
|||
assert(shader->variants_cached == 0);
|
||||
}
|
||||
#endif
|
||||
if (dtcs->state.ir.nir)
|
||||
ralloc_free(dtcs->state.ir.nir);
|
||||
FREE(dtcs);
|
||||
}
|
||||
|
||||
|
|
@ -614,6 +616,8 @@ void draw_delete_tess_eval_shader(struct draw_context *draw,
|
|||
align_free(dtes->tes_input);
|
||||
}
|
||||
#endif
|
||||
if (dtes->state.ir.nir)
|
||||
ralloc_free(dtes->state.ir.nir);
|
||||
FREE(dtes);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue