mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
st/mesa: minor simplification of some state atom assignments
This commit is contained in:
parent
301ffe7b26
commit
971122a9c0
2 changed files with 4 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue