radeonsi: remove a tautology sctx->framebuffer.nr_samples >= 1
authorMarek Olšák <marek.olsak@amd.com>
Wed, 2 Aug 2017 22:01:49 +0000 (00:01 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 7 Aug 2017 19:12:24 +0000 (21:12 +0200)
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 c9bb108cc16cdcb4f59b8f6da84d10ad13d03d62..11dee499b8797f6bce53295dab4837707edb637e 100644 (file)
@@ -2985,8 +2985,7 @@ static void si_emit_msaa_sample_locs(struct si_context *sctx,
        if (has_msaa_sample_loc_bug)
                nr_samples = MAX2(nr_samples, 1);
 
-       if (nr_samples >= 1 &&
-           (nr_samples != sctx->msaa_sample_locs.nr_samples)) {
+       if (nr_samples != sctx->msaa_sample_locs.nr_samples) {
                sctx->msaa_sample_locs.nr_samples = nr_samples;
                cayman_emit_msaa_sample_locs(cs, nr_samples);
        }