From: Marek Olšák Date: Wed, 29 May 2019 00:12:53 +0000 (-0400) Subject: radeonsi: always interpolate PrimID as flat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=993bf52977c66920cae505de9a670956e7842fc5;p=mesa.git radeonsi: always interpolate PrimID as flat --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index c26acbbc927..c4517fcf538 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -2828,7 +2828,8 @@ static unsigned si_get_ps_input_cntl(struct si_context *sctx, unsigned j, offset, ps_input_cntl = 0; if (interpolate == TGSI_INTERPOLATE_CONSTANT || - (interpolate == TGSI_INTERPOLATE_COLOR && sctx->flatshade)) + (interpolate == TGSI_INTERPOLATE_COLOR && sctx->flatshade) || + name == TGSI_SEMANTIC_PRIMID) ps_input_cntl |= S_028644_FLAT_SHADE(1); if (name == TGSI_SEMANTIC_PCOORD ||