Card compare: a group of 256 threads per piece (VICTORY_CARD_HASH_WIDE=1) #493
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!493
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/493/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@NickJBc on GitHub · 2026-11-25 01:35 UTC · original
NickJBc:card-hash-wide→main· +344 −20 · 3 files · 1 commits · closed without mergingThe hash pass over copies in the card's memory (
CARD_COMPAREinhost.rs) walks each 64 KiB piece on one thread: 4,096 dependent 16-byte steps, with neighbouring threads 64 KiB apart. A pass over a few pieces therefore takes the time of a whole piece on one lane, and run 102 had 514 such passes a frame (the comment onrehash_runsnotes no timing names them yet).What this adds
crates/victory-gpu/src/card_hash.rs, a wide form of the same shader, behindVICTORY_CARD_HASH_WIDE=1(off by default):ltakes the piece's blocksl, l+256, ...: 16 steps for a whole piece, with each step's loads 4 KiB side by side.cs_5_1.A change confined to one 16-byte block always changes the hash, as before: the lane round is bijective in its state and in the block, and the join is bijective in each side.
host.rs: picks the shader once inmake_card_work; both dispatch sites usecard_hash::groups.Checked
cs_6_0); FXC was not available.Not checked
Not yet run on a card or measured in the game. To compare, run a
diagbuild withVICTORY_GPU_TIMING=1, with and withoutVICTORY_CARD_HASH_WIDE=1. Look forcard compare: a group per piecein the log, and watch for stale or flickering geometry, which would mean missed shader writes.@kaayzouee on GitHub · 2026-11-25 01:41 UTC · original
Is this a duplicate of #253?
Both parallelize CARD_COMPARE hashing across a thread group per 64 KiB piece. The group size and default differ; please clarify whether this is intended as an alternative or a superseding implementation.
This is an automated message. If you believe it is incorrect, please reply with the relevant technical differences.
Pull request closed