diff options
author | Marek Olšák <[email protected]> | 2019-05-28 20:12:53 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-11 20:05:21 -0400 |
commit | 993bf52977c66920cae505de9a670956e7842fc5 (patch) | |
tree | 73d6383fa6167f02c7cb5744b3345efc39218bf2 /src | |
parent | 7f7ffa08837a8470b146d25af9bb750e20d57525 (diff) |
radeonsi: always interpolate PrimID as flat
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 || |