diff options
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 @@ | |||
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <limits> | 6 | #include <limits> |
| 7 | #include <vector> | ||
| 7 | 8 | ||
| 9 | #include "common/common_types.h" | ||
| 8 | #include "video_core/guest_driver.h" | 10 | #include "video_core/guest_driver.h" |
| 9 | 11 | ||
| 10 | namespace VideoCore { | 12 | namespace VideoCore { |
| 11 | 13 | ||
| 12 | void GuestDriverProfile::DeduceTextureHandlerSize(std::vector<u32>&& bound_offsets) { | 14 | void GuestDriverProfile::DeduceTextureHandlerSize(std::vector<u32> bound_offsets) { |
| 13 | if (texture_handler_size_deduced) { | 15 | if (texture_handler_size) { |
| 14 | return; | 16 | return; |
| 15 | } | 17 | } |
| 16 | const std::size_t size = bound_offsets.size(); | 18 | const std::size_t size = bound_offsets.size(); |
| @@ -29,7 +31,6 @@ void GuestDriverProfile::DeduceTextureHandlerSize(std::vector<u32>&& bound_offse | |||
| 29 | if (min_val > 2) { | 31 | if (min_val > 2) { |
| 30 | return; | 32 | return; |
| 31 | } | 33 | } |
| 32 | texture_handler_size_deduced = true; | ||
| 33 | texture_handler_size = min_texture_handler_size * min_val; | 34 | texture_handler_size = min_texture_handler_size * min_val; |
| 34 | } | 35 | } |
| 35 | 36 | ||