This info needs to be freed for the non-0 stream.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>
const unsigned *elts;
ushort *tes_elts_out = NULL;
+ memset(&gs_vert_info, 0, sizeof(struct draw_vertex_info) * TGSI_MAX_VERTEX_STREAMS);
assert(fetch_info->count > 0);
llvm_vert_info.count = fetch_info->count;
llvm_vert_info.vertex_size = fpme->vertex_size;
}
out:
FREE(vert_info->verts);
+ if (gshader && gshader->num_vertex_streams > 1)
+ for (unsigned i = 1; i < gshader->num_vertex_streams; i++)
+ FREE(gs_vert_info[i].verts);
+
if (free_prim_info) {
FREE(tes_elts_out);
FREE(prim_info->primitive_lengths);