diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 9df8f47e624..72d0518c6bd 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -881,10 +881,10 @@ static inline void si_shader_selector_key(struct pipe_context *ctx, key->as_ls = 1; else if (sctx->gs_shader.cso) key->as_es = 1; - - if (!sctx->gs_shader.cso && sctx->ps_shader.cso && - sctx->ps_shader.cso->info.uses_primid) - key->part.vs.epilog.export_prim_id = 1; + else { + if (sctx->ps_shader.cso && sctx->ps_shader.cso->info.uses_primid) + key->part.vs.epilog.export_prim_id = 1; + } break; case PIPE_SHADER_TESS_CTRL: key->part.tcs.epilog.prim_mode = |