[Mesa-dev] [PATCH 2/2] radeonsi: ensure sample locations are set for line and polygon smoothing

Nicolai Hähnle nhaehnle at gmail.com
Sat Jul 16 18:44:31 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Since commit d938b8c, the sample locations are no longer set unconditionally,
so we need to set the atom to dirty on all chips, not just Polaris.

Cc: 12.0 <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/radeonsi/si_state_shaders.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c
index c24130d..f5f69cf 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -2170,8 +2170,7 @@ bool si_update_shaders(struct si_context *sctx)
 			if (sctx->b.chip_class == SI)
 				si_mark_atom_dirty(sctx, &sctx->db_render_state);
 
-			if (sctx->framebuffer.nr_samples <= 1 &&
-			    sctx->b.family >= CHIP_POLARIS10)
+			if (sctx->framebuffer.nr_samples <= 1)
 				si_mark_atom_dirty(sctx, &sctx->msaa_sample_locs.atom);
 		}
 	}
-- 
2.7.4



More information about the mesa-dev mailing list