radeonsi: fix a leak in draw_vertex_state if threaded_context is disabled

Fixes: fb8f532ea1 - radeonsi: implement draw_vertex_state for lower display list overhead

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13235>
This commit is contained in:
Marek Olšák 2021-10-06 16:28:39 -04:00 committed by Marge Bot
parent 1fe24983e7
commit 50e40365c4
1 changed files with 3 additions and 0 deletions

View File

@ -2600,6 +2600,9 @@ static void si_draw_vertex_state(struct pipe_context *ctx,
si_draw<GFX_VERSION, HAS_TESS, HAS_GS, NGG, DRAW_VERTEX_STATE_ON, POPCNT>
(ctx, &dinfo, 0, NULL, draws, num_draws, vstate, partial_velem_mask);
if (info.take_vertex_state_ownership)
pipe_vertex_state_reference(&vstate, NULL);
}
static void si_draw_rectangle(struct blitter_context *blitter, void *vertex_elements_cso,