aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-04-11 11:05:22 +1000
committerTimothy Arceri <[email protected]>2017-04-13 12:08:31 +1000
commitfbcd709a34ccccf16796b926a3b25d6044fb614b (patch)
treece62f37eef7c9251f79bb9c90994154f69790c81 /src/mesa/state_tracker/st_atom.h
parentf30f575e7b4bdb39012709ba2dd3104a97a53ffc (diff)
mesa/st: only update samplers for stages that have changed
Might help reduce cpu for some apps that use sso. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom.h')
-rw-r--r--src/mesa/state_tracker/st_atom.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom.h b/src/mesa/state_tracker/st_atom.h
index 45c3e487647..0145cefd040 100644
--- a/src/mesa/state_tracker/st_atom.h
+++ b/src/mesa/state_tracker/st_atom.h
@@ -83,7 +83,11 @@ enum {
#undef ST_STATE
/* Combined state flags. */
-#define ST_NEW_SAMPLERS (ST_NEW_RENDER_SAMPLERS | \
+#define ST_NEW_SAMPLERS (ST_NEW_VS_SAMPLERS | \
+ ST_NEW_TCS_SAMPLERS | \
+ ST_NEW_TES_SAMPLERS | \
+ ST_NEW_GS_SAMPLERS | \
+ ST_NEW_FS_SAMPLERS | \
ST_NEW_CS_SAMPLERS)
#define ST_NEW_FRAMEBUFFER (ST_NEW_FB_STATE | \