summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-05-06 19:10:52 +0200
committerMarek Olšák <[email protected]>2014-06-02 12:58:22 +0200
commit99df120e006dbbce7aaf4b1466db423aa2432e54 (patch)
tree9234406935731785c477c4ea7c9b302a79e0c636 /src/gallium/drivers/radeonsi/si_state.c
parent99d9d7c0d69c076d84334892ee12f921fe243319 (diff)
radeonsi: interpolate varyings at sample when full sample shading is enabled
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index b85a4594156..19d2b553a22 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -2115,6 +2115,8 @@ static INLINE void si_shader_selector_key(struct pipe_context *ctx,
if (sctx->queued.named.rasterizer) {
key->ps.color_two_side = sctx->queued.named.rasterizer->two_side;
key->ps.flatshade = sctx->queued.named.rasterizer->flatshade;
+ key->ps.interp_at_sample = sctx->framebuffer.nr_samples > 1 &&
+ sctx->ps_iter_samples == sctx->framebuffer.nr_samples;
if (sctx->queued.named.blend) {
key->ps.alpha_to_one = sctx->queued.named.blend->alpha_to_one &&