radeonsi: get out of si_emit_vs_state early for blit vertex shaders

They don't use current_vs_state.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8548>
This commit is contained in:
Marek Olšák 2021-01-09 05:53:29 -05:00 committed by Marge Bot
parent 73709143d2
commit eb22bd2072

View file

@ -781,17 +781,17 @@ static void si_emit_rasterizer_prim_state(struct si_context *sctx)
ALWAYS_INLINE
static void si_emit_vs_state(struct si_context *sctx, unsigned index_size)
{
if (sctx->vs_shader.cso->info.uses_base_vertex) {
sctx->current_vs_state &= C_VS_STATE_INDEXED;
sctx->current_vs_state |= S_VS_STATE_INDEXED(!!index_size);
}
if (sctx->num_vs_blit_sgprs) {
/* Re-emit the state after we leave u_blitter. */
sctx->last_vs_state = ~0;
return;
}
if (sctx->vs_shader.cso->info.uses_base_vertex) {
sctx->current_vs_state &= C_VS_STATE_INDEXED;
sctx->current_vs_state |= S_VS_STATE_INDEXED(!!index_size);
}
if (sctx->current_vs_state != sctx->last_vs_state) {
struct radeon_cmdbuf *cs = &sctx->gfx_cs;