Card compare: a group of 256 threads per piece (VICTORY_CARD_HASH_WIDE=1) #493
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/493"
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?
Imported from fxceless/victory-fork. Originally posted by NickJBc on 2026-11-25T01:35:00Z.
The 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.Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:41:32Z.
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