Skip to content
Snippets Groups Projects
Commit 4d6fab24 authored by Marek Olšák's avatar Marek Olšák
Browse files

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: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
parent c8459846
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment