radeonsi: ensure sample locations are set for line and polygon smoothing
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 16 Jul 2016 18:41:18 +0000 (20:41 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 23 Jul 2016 13:36:39 +0000 (15:36 +0200)
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@lists.freedesktop.org>
src/gallium/drivers/radeonsi/si_state_shaders.c

index a423296..fd3ba9d 100644 (file)
@@ -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);
                }
        }