st/mesa: remove a redundant call to _mesa_is_multisample_enabled
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 15 Nov 2016 13:47:25 +0000 (14:47 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Nov 2016 08:48:39 +0000 (09:48 +0100)
We called it immediately prior, so re-use the previously returned value.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/mesa/state_tracker/st_atom_rasterizer.c

index 85030414a8e6891044d2115f7ddd607968f47a45..50be7b6a8e8544f86ee587faaf16a61f785bbc14 100644 (file)
@@ -253,7 +253,7 @@ static void update_raster_state( struct st_context *st )
    /* _NEW_MULTISAMPLE | _NEW_BUFFERS */
    raster->force_persample_interp =
          !st->force_persample_in_shader &&
-         _mesa_is_multisample_enabled(ctx) &&
+         raster->multisample &&
          ctx->Multisample.SampleShading &&
          ctx->Multisample.MinSampleShadingValue *
          _mesa_geometric_samples(ctx->DrawBuffer) > 1;