diff options
| author | 2023-03-25 23:02:37 -0400 | |
|---|---|---|
| committer | 2023-03-25 23:52:26 -0400 | |
| commit | 49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3 (patch) | |
| tree | d177009cf2eaff0a5632bb2968ecff46042f3dac /src/video_core/macro/macro.cpp | |
| parent | tests: Implement tests for verifying HashValue (diff) | |
| download | yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar.gz yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.tar.xz yuzu-49f6deecb8a29fb1f57bdc56dda5fcfbb3d311e3.zip | |
video_core/macro: Make use of Common::HashValue
Diffstat (limited to 'src/video_core/macro/macro.cpp')
| -rw-r--r-- | src/video_core/macro/macro.cpp | 6 |
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 @@ | |||
| 6 | #include <optional> | 6 | #include <optional> |
| 7 | #include <span> | 7 | #include <span> |
| 8 | 8 | ||
| 9 | #include <boost/container_hash/hash.hpp> | 9 | #include "common/container_hash.h" |
| 10 | 10 | ||
| 11 | #include <fstream> | 11 | #include <fstream> |
| 12 | #include "common/assert.h" | 12 | #include "common/assert.h" |
| @@ -89,7 +89,7 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) { | |||
| 89 | 89 | ||
| 90 | if (!mid_method.has_value()) { | 90 | if (!mid_method.has_value()) { |
| 91 | cache_info.lle_program = Compile(macro_code->second); | 91 | cache_info.lle_program = Compile(macro_code->second); |
| 92 | cache_info.hash = boost::hash_value(macro_code->second); | 92 | cache_info.hash = Common::HashValue(macro_code->second); |
| 93 | if (Settings::values.dump_macros) { | 93 | if (Settings::values.dump_macros) { |
| 94 | Dump(cache_info.hash, macro_code->second); | 94 | Dump(cache_info.hash, macro_code->second); |
| 95 | } | 95 | } |
| @@ -100,7 +100,7 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) { | |||
| 100 | code.resize(macro_cached.size() - rebased_method); | 100 | code.resize(macro_cached.size() - rebased_method); |
| 101 | std::memcpy(code.data(), macro_cached.data() + rebased_method, | 101 | std::memcpy(code.data(), macro_cached.data() + rebased_method, |
| 102 | code.size() * sizeof(u32)); | 102 | code.size() * sizeof(u32)); |
| 103 | cache_info.hash = boost::hash_value(code); | 103 | cache_info.hash = Common::HashValue(code); |
| 104 | cache_info.lle_program = Compile(code); | 104 | cache_info.lle_program = Compile(code); |
| 105 | if (Settings::values.dump_macros) { | 105 | if (Settings::values.dump_macros) { |
| 106 | Dump(cache_info.hash, code); | 106 | Dump(cache_info.hash, code); |