summaryrefslogtreecommitdiffstats
path: root/src/video_core/guest_driver.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-13 21:26:24 +0100
committerGitHub <noreply@github.com>2020-03-13 21:26:24 +0100
commit666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2 (patch)
treed0f968d06b2bbc6e378a5a0632cd2d6322fe4e6d /src/video_core/guest_driver.cpp
parentMerge pull request #3491 from ReinUsesLisp/polygon-modes (diff)
parentMerge branch 'master' into shader-purge (diff)
downloadyuzu-666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2.tar
yuzu-666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2.tar.gz
yuzu-666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2.tar.bz2
yuzu-666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2.tar.lz
yuzu-666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2.tar.xz
yuzu-666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2.tar.zst
yuzu-666d431ad8ee4e36f1b7f48d13f3fa63ba3675f2.zip
Diffstat (limited to 'src/video_core/guest_driver.cpp')
-rw-r--r--src/video_core/guest_driver.cpp7
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;
}