diff options
author | quou <quou@disroot.org> | 2024-12-27 11:38:37 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-27 11:38:37 +1100 |
commit | a90de37def5367bd272bfcd1a9b68566473bd33e (patch) | |
tree | 254a137597c8b901a9569b793c8ae59cc211126c /video.cpp | |
parent | 6736966974aea334e119cdb0b6c330066061bf91 (diff) |
correct the Pso_Key hash function
Diffstat (limited to 'video.cpp')
-rw-r--r-- | video.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -676,10 +676,11 @@ template<> struct Hash_Function<Pso_Key> { size_t operator()(const Pso_Key& k) const { + uint64_t rpoh = Hash_Function<Rpo_Key>{}(k.rpo); return fnv1a64_2( k.pso.pipeline_hash, - (uint8_t*)&k.rpo, - sizeof k.rpo + (uint8_t*)&rpoh, + sizeof rpoh ); } }; |