diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-09-26 10:49:44 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-11-29 02:18:46 -0800 |
commit | e563c33d57f779b34d885c561b731b3eb8eb25b7 (patch) | |
tree | fd7e653e07e5b2ca15a24241ea4b9eba4ea0ca27 /src/mesa/drivers/dri/i965/brw_sampler_state.c | |
parent | 324368b500fc83fc8aa801ac2ab4db4427ebece1 (diff) | |
download | external_mesa3d-e563c33d57f779b34d885c561b731b3eb8eb25b7.zip external_mesa3d-e563c33d57f779b34d885c561b731b3eb8eb25b7.tar.gz external_mesa3d-e563c33d57f779b34d885c561b731b3eb8eb25b7.tar.bz2 |
i965: Move CACHE_NEW_SAMPLER to BRW_NEW_SAMPLER_STATE_TABLE.
This flag signifies that we've emitted a new SAMPLER_STATE table.
Given that we haven't cached those in years, CACHE_NEW_SAMPLER isn't
a great name. Putting it in the BRW_NEW_* hierarchy would make more
sense; BRW_NEW_SAMPLER_STATE_TABLE better reflects its actual purpose.
When this flag is raised, the pointer to the SAMPLER_STATE table has
changed, so we need to re-issue any packets which point to it (unit
state on Gen4-5, 3DSTATE_SAMPLER_STATE_POINTERS on Gen6, and the
per-stage variants on Gen7+).
Saves 2 * sizeof(void *) bytes per context, as we remove useless
aux_compare/aux_free function pointers.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sampler_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sampler_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sampler_state.c b/src/mesa/drivers/dri/i965/brw_sampler_state.c index 8363a48..9c5e45c 100644 --- a/src/mesa/drivers/dri/i965/brw_sampler_state.c +++ b/src/mesa/drivers/dri/i965/brw_sampler_state.c @@ -512,7 +512,7 @@ brw_upload_sampler_state_table(struct brw_context *brw, /* Flag that the sampler state table pointer has changed; later atoms * will handle it. */ - brw->state.dirty.cache |= CACHE_NEW_SAMPLER; + brw->state.dirty.brw |= BRW_NEW_SAMPLER_STATE_TABLE; } } |