From 79dcd69afae4ada47fd4e746e9eec87c6d8028f0 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 17 Jul 2016 20:37:58 +0200 Subject: st/mesa: remove excessive shader state dirtying MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/mesa/state_tracker/st_context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/state_tracker/st_context.h') 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; -- cgit v1.2.3