[Mesa-dev] [PATCH] radeonsi: remove useless check in si_set_min_samples()

Marek Olšák maraeo at gmail.com
Thu Jun 15 14:59:02 UTC 2017


While I agree, I also think that it's safer to keep it.

Marek

On Thu, Jun 15, 2017 at 12:13 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> CSO already takes care of this.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/radeonsi/si_state.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
> index 1cd1f9190e0..facbc87e310 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -2978,9 +2978,6 @@ static void si_set_min_samples(struct pipe_context *ctx, unsigned min_samples)
>  {
>         struct si_context *sctx = (struct si_context *)ctx;
>
> -       if (sctx->ps_iter_samples == min_samples)
> -               return;
> -
>         sctx->ps_iter_samples = min_samples;
>         sctx->do_update_shaders = true;
>
> --
> 2.13.1
>
> _______________________________________________
> 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