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

Marek Olšák maraeo at gmail.com
Mon Jul 18 11:25:03 UTC 2016


For the series:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sat, Jul 16, 2016 at 8:44 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list