diff options
author | Timothy Arceri <[email protected]> | 2017-06-07 13:26:16 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-06-09 09:13:46 +1000 |
commit | bc70bad59bde311434349bbe07b7fb1d3b0ec559 (patch) | |
tree | ed702288f8d317dde9b1a1f5fdc18dc5d46ace98 /src/mesa/main | |
parent | 99987fe92e5e109d7a0c114477cba52cdc6629b5 (diff) |
mesa: inline vbo_exec_invalidate_state() and call from mesa core
Rather than calling it indirectly in each driver.
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 04dafa983c5..b7e165fab62 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -51,6 +51,7 @@ #include "texobj.h" #include "texstate.h" #include "varray.h" +#include "vbo/vbo_context.h" #include "viewport.h" #include "blend.h" @@ -410,13 +411,15 @@ _mesa_update_state_locked( struct gl_context *ctx ) out: new_prog_state |= update_program_constants(ctx); + ctx->NewState |= new_prog_state; + vbo_exec_invalidate_state(ctx); + /* * Give the driver a chance to act upon the new_state flags. * The driver might plug in different span functions, for example. * Also, this is where the driver can invalidate the state of any * active modules (such as swrast_setup, swrast, tnl, etc). */ - ctx->NewState |= new_prog_state; ctx->Driver.UpdateState(ctx); ctx->NewState = 0; ctx->Array.VAO->NewArrays = 0x0; |