diff options
author | Nicolai Hähnle <[email protected]> | 2016-11-15 14:47:25 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-11-18 09:48:39 +0100 |
commit | ceac3397fb79f48b76c9cd9f186dbc3efa0f5ea3 (patch) | |
tree | 51dd2d84530d34c300ae806676212a335c199ec7 /src/mesa/state_tracker | |
parent | adba706122ee033a4f8023bd309b73b0a5c52105 (diff) |
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 <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_atom_rasterizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |