shader, gpu: port 32-lane BVH builder lowering, structure views, and GPURT node answer #403
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/trustno1-coder--VIctory-NVIDIA!403
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-403"
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?
@Kikoarl on GitHub · 2026-11-27 21:55 UTC · original
Kikoarl:feat/bvh-builder-32lane→main· +542 −66 · 5 files · 1 commits · openSummary
Ports the portable 32-lane BVH builder lowering fixes, placed acceleration-structure
view_address(Location), and GPURT[u32::MAX; 4]node answer fromfxceless/victory-forkcommits17533c5,1170216,1320dfd, and9a9091d(GPL-3.0-or-later), rebased ontomain(df2daaf).VICTORY_BVH_BUILDERremains opt-in (=1, off by default).Changes
crates/victory-shader/src/emit/lower.rs,emit/wave64_tests.rs: EnablesUSER_DISPATCH_THREADS_Xguarding (partial_active,effect_guard) for spilled 1D compute programs on 32-lane waves and programs with barriers instead of returning early; refineslane_uniformdword tracking, uniformds_readchecks, andv_readfirstlane_b32masking when halves match or are guarded.crates/victory-shader/src/bvh.rs,emit/intersect.rs: Returns[u32::MAX; 4](-1per AMD GPURT) for instance and procedural BVH nodes (kinds 6 and 7), and applieseffect_guardto BVH intersection loads.crates/victory-gpu/src/descriptor/host.rs: ExtractsLocation(words 4–5) for placed as well as shader acceleration-structure views inview_address, returningNonewhen zero.main: Omits17533c5(VICTORY_WAVE_PAIRS_SPILLED,paired.rsis absent onmain) and omits9a9091dwritten-page tracking becausemainusesShadow::by_addresssync (preserving PR #88 and PR #58).Verification
Verified on Windows (
x86_64-pc-windows-msvc) againstmain(df2daaf):git diff --check main..HEAD— cleancargo test -p xtask --locked— 6 passed, 0 failed (asset policy: 287 files ok)cargo clippy -p victory-shader -p victory-gpu --all-targets --locked— exit 0, 0 warnings in changed files (mainhas pre-existing clippy warnings in untouched files)cargo test -p victory-shader --locked emit::wave64_tests— 17 passed, 0 failedcargo test -p victory-gpu --locked descriptor::— 62 passed, 0 failed@Castyan on GitHub · 2026-11-27 22:20 UTC · original
i'm on it for testing
@Castyan on GitHub · 2026-11-27 22:30 UTC · original · edited 2026-11-27 23:05 UTC
#388 + #403 merged on
main(df2daaf): no conflict, no new failure. Windows, RTX 5060,cargo test --workspace --no-fail-fast: 1070 passed (main 1064, the +6 are #403's new tests), 2 failed (victory-gpuindirect::tests, the same 2 onmain). The clippy error atvictory-formats/src/texture.rs:1346is onmaintoo. Not tested in game or withtranslate --list.In game (RTX 5060 8 GB, 15 GB RAM, below the README's 32 GB):
CS_CollectTriangles_Meshletstranslates and gets its host pipeline. Series S + 2x frame gen ran 11 min, then device removed (0x887A0007). Series X runs out of memory after 2-3 min (E_OUTOFMEMORY), withmaintoo (driver access violation innvwgf2umx.dll). So the crashes look like this PC's memory, not these PRs. Not a like-for-like comparison.View 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.