summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2020-06-17 13:22:50 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2020-06-18 16:47:43 +0200
commit442e48ef4c28fb22115bd30e9e988b91ae02ee84 (patch)
tree0e235f1af9e9ca94495be6defaad5282c7bbbed8 /src
parentRename PAGE_SHIFT to PAGE_BITS (diff)
downloadyuzu-442e48ef4c28fb22115bd30e9e988b91ae02ee84.tar
yuzu-442e48ef4c28fb22115bd30e9e988b91ae02ee84.tar.gz
yuzu-442e48ef4c28fb22115bd30e9e988b91ae02ee84.tar.bz2
yuzu-442e48ef4c28fb22115bd30e9e988b91ae02ee84.tar.lz
yuzu-442e48ef4c28fb22115bd30e9e988b91ae02ee84.tar.xz
yuzu-442e48ef4c28fb22115bd30e9e988b91ae02ee84.tar.zst
yuzu-442e48ef4c28fb22115bd30e9e988b91ae02ee84.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/memory_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/memory_util.cpp b/src/video_core/shader/memory_util.cpp
index 074f21691..5071c83ca 100644
--- a/src/video_core/shader/memory_util.cpp
+++ b/src/video_core/shader/memory_util.cpp
@@ -66,12 +66,12 @@ ProgramCode GetShaderCode(Tegra::MemoryManager& memory_manager, GPUVAddr gpu_add
u64 GetUniqueIdentifier(Tegra::Engines::ShaderType shader_type, bool is_a, const ProgramCode& code,
const ProgramCode& code_b) {
- u64 unique_identifier = boost::hash_value(code);
+ size_t unique_identifier = boost::hash_value(code);
if (is_a) {
// VertexA programs include two programs
boost::hash_combine(unique_identifier, boost::hash_value(code_b));
}
- return unique_identifier;
+ return static_cast<u64>(unique_identifier);
}
} // namespace VideoCommon::Shader