radeonsi: remove redundant ps_iter_samples clamp
authorMarek Olšák <marek.olsak@amd.com>
Wed, 16 May 2018 01:51:07 +0000 (21:51 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 24 May 2018 17:41:56 +0000 (13:41 -0400)
si_get_ps_iter_samples already does this.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 675b1adbe6544a8e89bd86af08eb83ee91bdf42c..5bbf134b706a1c6da2d793e69cbc89fc132be9bf 100644 (file)
@@ -3412,7 +3412,6 @@ static void si_emit_msaa_config(struct si_context *sctx)
                };
                unsigned log_samples = util_logbase2(coverage_samples);
                unsigned ps_iter_samples = si_get_ps_iter_samples(sctx);
-               ps_iter_samples = MIN2(ps_iter_samples, color_samples);
                unsigned log_ps_iter_samples =
                        util_logbase2(util_next_power_of_two(ps_iter_samples));