diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-26 16:13:47 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-09 18:40:06 -0300 |
| commit | bd8b9bbcee93549f323352f227ff44d0e79e0ad4 (patch) | |
| tree | 5c68e7ab171db3f3d31bf27cd573c54a918f0708 /src/video_core/guest_driver.cpp | |
| parent | 22e825a3bc0d9bfb5f8c29a50724c2887014dc02 (diff) | |
gl_shader_cache: Rework shader cache and remove post-specializations
Instead of pre-specializing shaders and then post-specializing them,
drop the later and only "specialize" the shader while decoding it.
Diffstat (limited to 'src/video_core/guest_driver.cpp')
| -rw-r--r-- | src/video_core/guest_driver.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/guest_driver.cpp b/src/video_core/guest_driver.cpp index 6adef459e..f058f2744 100644 --- a/src/video_core/guest_driver.cpp +++ b/src/video_core/guest_driver.cpp @@ -4,13 +4,15 @@ #include <algorithm> #include <limits> +#include <vector> +#include "common/common_types.h" #include "video_core/guest_driver.h" namespace VideoCore { -void GuestDriverProfile::DeduceTextureHandlerSize(std::vector<u32>&& bound_offsets) { - if (texture_handler_size_deduced) { +void GuestDriverProfile::DeduceTextureHandlerSize(std::vector<u32> bound_offsets) { + if (texture_handler_size) { return; } const std::size_t size = bound_offsets.size(); @@ -29,7 +31,6 @@ void GuestDriverProfile::DeduceTextureHandlerSize(std::vector<u32>&& bound_offse if (min_val > 2) { return; } - texture_handler_size_deduced = true; texture_handler_size = min_texture_handler_size * min_val; } |
