Skip to content
Snippets Groups Projects
Commit 442e48ef authored by MerryMage's avatar MerryMage
Browse files

memory_util: boost hashes are size_t

* boost::hash_value returns a size_t
* boost::hash_combine takes a size_t& argument
parent 8ae71545
No related branches found
No related tags found
No related merge requests found
...@@ -66,12 +66,12 @@ ProgramCode GetShaderCode(Tegra::MemoryManager& memory_manager, GPUVAddr gpu_add ...@@ -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, u64 GetUniqueIdentifier(Tegra::Engines::ShaderType shader_type, bool is_a, const ProgramCode& code,
const ProgramCode& code_b) { const ProgramCode& code_b) {
u64 unique_identifier = boost::hash_value(code); size_t unique_identifier = boost::hash_value(code);
if (is_a) { if (is_a) {
// VertexA programs include two programs // VertexA programs include two programs
boost::hash_combine(unique_identifier, boost::hash_value(code_b)); boost::hash_combine(unique_identifier, boost::hash_value(code_b));
} }
return unique_identifier; return static_cast<u64>(unique_identifier);
} }
} // namespace VideoCommon::Shader } // namespace VideoCommon::Shader
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment