summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-27 11:38:37 +1100
committerquou <quou@disroot.org>2024-12-27 11:38:37 +1100
commita90de37def5367bd272bfcd1a9b68566473bd33e (patch)
tree254a137597c8b901a9569b793c8ae59cc211126c /video.cpp
parent6736966974aea334e119cdb0b6c330066061bf91 (diff)
correct the Pso_Key hash function
Diffstat (limited to 'video.cpp')
-rw-r--r--video.cpp5
1 files 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<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
);
}
};