summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-10 12:09:43 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commit00173d91b70ae4dcea7c6324ee4858c498cae14b (patch)
tree1f3f7bcf4f7b17b1be58d50123d7b7efec8b6356 /src/mesa/state_tracker/st_context.c
parent55f1106637a122f6b6c91d45acb721398328cc17 (diff)
mesa: don't flag _NEW_TRANSFORM 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/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index c5f46aedb45..23aad0a1f41 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -213,12 +213,10 @@ st_invalidate_state(struct gl_context * ctx)
if (new_state & (_NEW_LIGHT |
_NEW_LINE |
_NEW_POINT |
- _NEW_POLYGON |
- _NEW_TRANSFORM))
+ _NEW_POLYGON))
st->dirty |= ST_NEW_RASTERIZER;
- if (new_state & (_NEW_PROJECTION |
- _NEW_TRANSFORM) &&
+ if (new_state & _NEW_PROJECTION &&
st_user_clip_planes_enabled(ctx))
st->dirty |= ST_NEW_CLIP_STATE;
@@ -523,6 +521,9 @@ static void st_init_driver_flags(struct st_context *st)
}
f->NewClipControl = ST_NEW_VIEWPORT | ST_NEW_RASTERIZER;
+ f->NewClipPlane = ST_NEW_CLIP_STATE;
+ f->NewClipPlaneEnable = ST_NEW_RASTERIZER;
+ f->NewDepthClamp = ST_NEW_RASTERIZER;
f->NewViewport = ST_NEW_VIEWPORT;
}