summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-03-26 05:02:37 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-03-26 05:52:26 +0200
commit49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3 (patch)
treed177009cf2eaff0a5632bb2968ecff46042f3dac
parenttests: Implement tests for verifying HashValue (diff)
downloadyuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar
yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar.gz
yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar.bz2
yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar.lz
yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar.xz
yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar.zst
yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/macro/macro.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cpp
index 82ad0477d..905505ca1 100644
--- a/src/video_core/macro/macro.cpp
+++ b/src/video_core/macro/macro.cpp
@@ -6,7 +6,7 @@
#include <optional>
#include <span>
-#include <boost/container_hash/hash.hpp>
+#include "common/container_hash.h"
#include <fstream>
#include "common/assert.h"
@@ -89,7 +89,7 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) {
if (!mid_method.has_value()) {
cache_info.lle_program = Compile(macro_code->second);
- cache_info.hash = boost::hash_value(macro_code->second);
+ cache_info.hash = Common::HashValue(macro_code->second);
if (Settings::values.dump_macros) {
Dump(cache_info.hash, macro_code->second);
}
@@ -100,7 +100,7 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) {
code.resize(macro_cached.size() - rebased_method);
std::memcpy(code.data(), macro_cached.data() + rebased_method,
code.size() * sizeof(u32));
- cache_info.hash = boost::hash_value(code);
+ cache_info.hash = Common::HashValue(code);
cache_info.lle_program = Compile(code);
if (Settings::values.dump_macros) {
Dump(cache_info.hash, code);