diff options
author | Brian Paul <[email protected]> | 2014-07-03 12:02:16 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-07-09 06:43:25 -0600 |
commit | 971122a9c0d07751b73ea34afd79adeab087ab4d (patch) | |
tree | a4ca4d7e0ad8a51733b6abcf341bf384bedf5e18 | |
parent | 301ffe7b26f1c8f68697626490b0e7f1c6aef65e (diff) |
st/mesa: minor simplification of some state atom assignments
-rw-r--r-- | src/mesa/state_tracker/st_atom_blend.c | 9 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_atom_rasterizer.c | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_atom_blend.c b/src/mesa/state_tracker/st_atom_blend.c index 50d240a7b21..064e0c14f1f 100644 --- a/src/mesa/state_tracker/st_atom_blend.c +++ b/src/mesa/state_tracker/st_atom_blend.c @@ -263,16 +263,13 @@ update_blend( struct st_context *st ) blend->rt[i].colormask |= PIPE_MASK_A; } - if (ctx->Color.DitherFlag) - blend->dither = 1; + blend->dither = ctx->Color.DitherFlag; if (ctx->Multisample.Enabled) { /* unlike in gallium/d3d10 these operations are only performed if msaa is enabled */ - if (ctx->Multisample.SampleAlphaToCoverage) - blend->alpha_to_coverage = 1; - if (ctx->Multisample.SampleAlphaToOne) - blend->alpha_to_one = 1; + blend->alpha_to_coverage = ctx->Multisample.SampleAlphaToCoverage; + blend->alpha_to_one = ctx->Multisample.SampleAlphaToOne; } cso_set_blend(st->cso_context, blend); diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index ee5e9e5743b..2bad6433487 100644 --- a/src/mesa/state_tracker/st_atom_rasterizer.c +++ b/src/mesa/state_tracker/st_atom_rasterizer.c @@ -245,7 +245,7 @@ static void update_raster_state( struct st_context *st ) } /* _NEW_TRANSFORM */ - raster->depth_clip = ctx->Transform.DepthClamp == GL_FALSE; + raster->depth_clip = !ctx->Transform.DepthClamp; raster->clip_plane_enable = ctx->Transform.ClipPlanesEnabled; cso_set_rasterizer(st->cso_context, raster); |