diff options
author | Marek Olšák <[email protected]> | 2017-06-10 02:39:06 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-22 01:51:02 +0200 |
commit | 29db5c1dcc5940fd18e72d1a7295cbb9edb424d8 (patch) | |
tree | 86d13624db607744af3ae8d43b411cfcbcd93485 /src/mesa/state_tracker | |
parent | c8363eb0276c863100a457b18fee5ef900cf6f74 (diff) |
mesa: don't flag _NEW_VIEWPORT 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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 23e3768373f..c5f46aedb45 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -202,9 +202,6 @@ st_invalidate_state(struct gl_context * ctx) if (new_state & _NEW_POLYGONSTIPPLE) st->dirty |= ST_NEW_POLY_STIPPLE; - if (new_state & _NEW_VIEWPORT) - st->dirty |= ST_NEW_VIEWPORT; - if (new_state & _NEW_FRAG_CLAMP) { if (st->clamp_frag_color_in_shader) st->dirty |= ST_NEW_FS_STATE; @@ -524,6 +521,9 @@ static void st_init_driver_flags(struct st_context *st) } else { f->NewSampleShading |= ST_NEW_RASTERIZER; } + + f->NewClipControl = ST_NEW_VIEWPORT | ST_NEW_RASTERIZER; + f->NewViewport = ST_NEW_VIEWPORT; } struct st_context *st_create_context(gl_api api, struct pipe_context *pipe, |