diff options
author | Marek Olšák <[email protected]> | 2017-06-10 01:46:34 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-22 01:51:02 +0200 |
commit | 581d77315bdb2338e97133a05fa8c354352f5fd8 (patch) | |
tree | 4b92a067c861b25dad5174bf68b9a8185ca21f79 /src/mesa/state_tracker | |
parent | b677e96078889140ad1549cb7b94b0a33c10f7ba (diff) |
mesa: don't flag _NEW_COLOR for st/mesa if possible
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index cdcc4ddaf48..2bd91530312 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -236,9 +236,6 @@ st_invalidate_state(struct gl_context * ctx) st_user_clip_planes_enabled(ctx)) st->dirty |= ST_NEW_CLIP_STATE; - if (new_state & _NEW_COLOR) - st->dirty |= ST_NEW_BLEND; - if (new_state & _NEW_PIXEL) st->dirty |= ST_NEW_PIXEL_TRANSFER; @@ -519,7 +516,11 @@ static void st_init_driver_flags(struct st_context *st) f->NewScissorRect = ST_NEW_SCISSOR; f->NewScissorTest = ST_NEW_SCISSOR | ST_NEW_RASTERIZER; f->NewAlphaTest = ST_NEW_DSA; + f->NewBlend = ST_NEW_BLEND; + f->NewBlendColor = ST_NEW_BLEND; /* TODO: add an atom for blend color */ + f->NewColorMask = ST_NEW_BLEND; f->NewDepth = ST_NEW_DSA; + f->NewLogicOp = ST_NEW_BLEND; f->NewStencil = ST_NEW_DSA; } |