mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
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:
parent
73709143d2
commit
eb22bd2072
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue