diff options
author | Marek Olšák <[email protected]> | 2016-08-02 16:59:41 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-08-12 18:50:01 +0200 |
commit | ac032d800e5f4cb3ab9166187150a93c17a508aa (patch) | |
tree | c17d1b8bea029be2ab7d47d1329dda13c9d71837 /src/mesa/state_tracker/st_context.h | |
parent | c323d5b8096cec3251c7a4a4269f0f7570fb274f (diff) |
st/mesa: _NEW_TEXTURE & CONSTANTS shouldn't flag states that aren't used
Tested-by: Edmondo Tommasina <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r-- | src/mesa/state_tracker/st_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 556b9c99a23..f82cf3a85aa 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -140,6 +140,9 @@ struct st_context uint64_t dirty; /**< dirty states */ + /** This masks out unused shader resources. Only valid in draw calls. */ + uint64_t active_states; + /* If true, further analysis of states is required to know if something * has changed. Used mainly for shaders. */ @@ -357,6 +360,9 @@ st_create_context(gl_api api, struct pipe_context *pipe, extern void st_destroy_context(struct st_context *st); +uint64_t +st_get_active_states(struct gl_context *ctx); + #ifdef __cplusplus } |