From: Nicolai Hähnle Date: Tue, 15 Nov 2016 13:47:25 +0000 (+0100) Subject: st/mesa: remove a redundant call to _mesa_is_multisample_enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ceac3397fb79f48b76c9cd9f186dbc3efa0f5ea3;p=mesa.git st/mesa: remove a redundant call to _mesa_is_multisample_enabled We called it immediately prior, so re-use the previously returned value. Reviewed-by: Marek Olšák Reviewed-by: Edward O'Callaghan --- diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index 85030414a8e..50be7b6a8e8 100644 --- a/src/mesa/state_tracker/st_atom_rasterizer.c +++ b/src/mesa/state_tracker/st_atom_rasterizer.c @@ -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;