diff options
author | Marek Olšák <[email protected]> | 2017-06-10 23:12:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-22 01:51:02 +0200 |
commit | 4d6fab245eec3880e2a59424a579851f44857ce8 (patch) | |
tree | 28bc3a24c0db8b436b8356f949db3156387cf18e /src/gallium/auxiliary/cso_cache/cso_context.h | |
parent | c8459846905bf7adfb6b5010a77aee9269228bdb (diff) |
cso: don't track the number of sampler states bound
This removes 2 loops from hot codepaths and adds 1 loop to a rare codepath
(restore_sampler_states), and makes sanitize_hash() slightly worse.
Sampler states, when bound, are not unbound for draw calls that don't need
them. That's OK, because bound sampler states don't add any overhead.
This results in lower CPU overhead in most cases.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_context.h')
0 files changed, 0 insertions, 0 deletions