Mesa (master): radeonsi: ensure sample locations are set for line and polygon smoothing

Nicolai Hähnle nh at kemper.freedesktop.org
Sat Jul 23 13:36:57 UTC 2016


Module: Mesa
Branch: master
Commit: 3d69357da9f297314f760be092fc55956848425e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d69357da9f297314f760be092fc55956848425e

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Sat Jul 16 20:41:18 2016 +0200

radeonsi: ensure sample locations are set for line and polygon smoothing

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 a423296..fd3ba9d 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -2171,8 +2171,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);
 		}
 	}




More information about the mesa-commit mailing list