draw: free vertex info from geometry streams.
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>
This commit is contained in:
@@ -582,6 +582,7 @@ llvm_pipeline_generic(struct draw_pt_middle_end *middle,
|
|||||||
const unsigned *elts;
|
const unsigned *elts;
|
||||||
ushort *tes_elts_out = NULL;
|
ushort *tes_elts_out = NULL;
|
||||||
|
|
||||||
|
memset(&gs_vert_info, 0, sizeof(struct draw_vertex_info) * TGSI_MAX_VERTEX_STREAMS);
|
||||||
assert(fetch_info->count > 0);
|
assert(fetch_info->count > 0);
|
||||||
llvm_vert_info.count = fetch_info->count;
|
llvm_vert_info.count = fetch_info->count;
|
||||||
llvm_vert_info.vertex_size = fpme->vertex_size;
|
llvm_vert_info.vertex_size = fpme->vertex_size;
|
||||||
@@ -758,6 +759,10 @@ llvm_pipeline_generic(struct draw_pt_middle_end *middle,
|
|||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
FREE(vert_info->verts);
|
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) {
|
if (free_prim_info) {
|
||||||
FREE(tes_elts_out);
|
FREE(tes_elts_out);
|
||||||
FREE(prim_info->primitive_lengths);
|
FREE(prim_info->primitive_lengths);
|
||||||
|
Reference in New Issue
Block a user