diff options
author | Marek Olšák <[email protected]> | 2016-07-17 20:37:58 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-07-30 15:02:14 +0200 |
commit | 79dcd69afae4ada47fd4e746e9eec87c6d8028f0 (patch) | |
tree | 745e9f03a097f4d00f4ab39e0870e90b4d9be571 /src/mesa/state_tracker/st_context.h | |
parent | 1f73e2bb942783bf143185a58d2290fda2b08c81 (diff) |
st/mesa: remove excessive shader state dirtying
This just needs to be done by st_validate_state.
v2: add "shaders_may_be_dirty" flags for not skipping st_validate_state
on _NEW_PROGRAM to detect real shader changes
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 b9ad2a92433..e0f29e3cebf 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -140,6 +140,12 @@ struct st_context uint64_t dirty; /**< dirty states */ + /* If true, further analysis of states is required to know if something + * has changed. Used mainly for shaders. + */ + bool gfx_shaders_may_be_dirty; + bool compute_shader_may_be_dirty; + GLboolean vertdata_edgeflags; GLboolean edgeflag_culls_prims; |