From a90de37def5367bd272bfcd1a9b68566473bd33e Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 11:38:37 +1100 Subject: correct the Pso_Key hash function --- video.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/video.cpp b/video.cpp index d7678f3..e5a42dc 100644 --- a/video.cpp +++ b/video.cpp @@ -676,10 +676,11 @@ template<> struct Hash_Function { size_t operator()(const Pso_Key& k) const { + uint64_t rpoh = Hash_Function{}(k.rpo); return fnv1a64_2( k.pso.pipeline_hash, - (uint8_t*)&k.rpo, - sizeof k.rpo + (uint8_t*)&rpoh, + sizeof rpoh ); } }; -- cgit v1.2.3-54-g00ecf