Fixes: 0d02a7b8ca794 (draw: add main tessellation code)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4563>
#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)
assert(shader->variants_cached == 0);
}
#endif
+ if (dtcs->state.ir.nir)
+ ralloc_free(dtcs->state.ir.nir);
FREE(dtcs);
}
align_free(dtes->tes_input);
}
#endif
+ if (dtes->state.ir.nir)
+ ralloc_free(dtes->state.ir.nir);
FREE(dtes);
}