gpu(native): read big whole probes chunk-parallel on the rayon pool #610
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/610"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:29:40Z.
Refs #179
What
A whole probe of a big texture — the periodic whole reads the probe round does of hot textures — copied its bytes chunk by chunk on the calling thread. The chunks are independent, so
probe_readnow reads buffers over 1 MiB withpar_chunks_mut(1 MiB)on the rayon pool and hands the bytes to the hasher in oneseencall. Hashing the whole equals hashing the chunks in order (BLAKE3 is sequential over the input), which a test verifies againstblake3::hashfor buffers straddling the cutoff (1 MiB+1, 3 MiB+7). Smaller buffers keep the existing scratch loop.Adds
rayonas a workspace dependency ofvictory-gpu.Testing
cargo test -p victory-hle -p victory -p victory-gpu -p xtask(host arm64) — all pass, incl.probe_hash_whole_matches_blake3_for_big_bufferscargo test --target x86_64-apple-darwin -p victory-gpu --lib textures::— 19 pass, 0 failcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings— cleancargo xtask policy— 404 files okChecklist
vibe/probe-par-1705acfromupstream/main, pushed to my fork onlyView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.