diff options
author | Timothy Arceri <[email protected]> | 2017-04-11 11:05:22 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-04-13 12:08:31 +1000 |
commit | fbcd709a34ccccf16796b926a3b25d6044fb614b (patch) | |
tree | ce62f37eef7c9251f79bb9c90994154f69790c81 /src/mesa/state_tracker/st_atom.h | |
parent | f30f575e7b4bdb39012709ba2dd3104a97a53ffc (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.h | 6 |
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 | \ |