No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1319
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1319/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?
@MamaLeVrai on GitHub · 2026-11-24 17:23 UTC · original
MamaLeVrai:bundle/lane-masks-scalar-reads→main· +862 −32 · 6 files · 20 commits · closed without mergingOne PR in place of ten. It merges ten open shader PRs onto
main(ffe310e) with every head unchanged, and reports that the result builds and passes together. Two of the merges needed a hand resolution, described below. Nothing else is changed.What is inside
a793ad86a986fa6db9ec337a02548a41fb85c42cbb073s_buffer_loaduses indescriptor_data(#798)417f4e30db8cfe8ce721d1b468210ac6ceacimage_sample_d_clcbc8c33dcimage_get_lodon cube texturesThe first four target "a lane mask read as data", named in the in-game refusal tables on #293 (the latest one there puts "a lane mask read as data" first, at 408 per frame). The next four target "a scalar memory read as data". The last two are the image-sample refusals.
All ten are
MERGEABLEagainstmainon their own. Merged in the order above they conflict in two places, which this PR resolves:emit/lower.rs, the raw view chosen for a scalar buffer load of a descriptor. Resolution: an SRV range reads a raw SRV view, a UAV range a raw UAV view (#1055), a descriptor of no listed kind the heap buffer view (#1015). Both PRs' tests inemit/valu_tests.rsare kept.emit/lower.rs, the cube-sample refusal. #563 lowers gradients, #1004 the level query, so only texel coordinates are still refused.Left out, and why
main.main(resource::tracktakes four arguments, see #801).Verification
Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 342 passed, 6 ignored)Each of the ten also passes the same three checks alone on
main(matrix on #801). The tests that exercise the lowering run on the GPU and on WARP. The title was not run, so this says nothing about in-game effect: a testing run with this branch is the next useful step.Re-verify in one go
To confirm that no component PR moved since this was built, compare each
Headabove withgh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, this branch needs a rebuild: merge the new head in the same order.If this lands
The ten heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. If you prefer to merge them one by one instead, the order above has no conflicts except the two noted.
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code
The console compiler spills scalars, lane-mask pairs among them, with v_writelane_b32 into constant lanes of a VGPR and restores them with v_readlane_b32 of the same lane. The restored pair was an opaque mask, so the selects, EXEC writes and joins that used it refused ("a select on an untracked mask", "an opaque lane mask", "a lane-mask join of an untracked mask"). structure now follows a constant-lane readlane back through a plain chain of writelanes to the scalar written to that lane, and gives the restored pair that scalar pair's mask. A chain with a phi or another write of the VGPR stays opaque (shortcut noted in code). Offline corpus, against fix/mask-phi-ballot (neither branch carries #585): vertex/pixel programs emitted 12250 -> 12269, compute 1443 -> 1452, "a lane-mask join of an untracked mask" 20 -> 0, "an opaque lane mask" 29 -> 8, "a conditional export" 8 -> 0. Synthetic pixel program fails before, lowers after. Stacked on fix/mask-phi-ballot (shares its test helper). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>@DeerSilver on GitHub · 2026-11-24 17:55 UTC · original
The NVIDIA side of the AMD run above. Tested head
643aef6merged ontomainffe310e(clean merge) on NVIDIA GeForce RTX 5060 Laptop GPU (Blackwell), driver 621.24, Windows 11 26300, Rust 1.98.1. Pass. No game files: the test suite only.cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 342 / 6), the same totals as on the RX 6950 XTno SM 6.6skip:scalar_loads_read_a_root_srv_and_a_root_cbv(root_view_tests.rs)v_cndmask_on_an_untracked_mask_tests_this_lanes_bit(valu_tests.rs)scalar_buffer_loads_read_a_uav_through_its_table(valu_tests.rs)scalar_loads_through_a_heap_buffer_that_vector_accesses_use_read_a_buffer_views_buffer_load_descriptor_size_reads_as_datacube_image_get_lod_lowersa_scalar_joining_a_lane_mask_and_a_number_lowers_in_pixel_programsa_lane_mask_spilled_to_a_vgpr_lane_stays_a_maskSo the ten PRs pass together on both AMD and NVIDIA. Like the AMD run, this says nothing about in-game effect.
AI-assisted (Claude Code).
@sinan-cmyk on GitHub · 2026-11-24 18:12 UTC · original
Offline measurement on a retail dump
Result: +285 programs over
main, 0 programs lost.Method: the same as #1247. I ran
victory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared head643aef6withmainffe310eprogram by program, 25,889 programs. Validated: 21,724 onmain, 22,009 with this PR.mainPrograms that still fail but now fail later. Many programs get past their old failure and stop at a later step:
The 247 programs explain why #1402, which stacks #1067 and three more PRs on this one, gains more than those PRs gained one by one. Details are in the measurement on #1402.
These counts show only that programs translate and pass the validator. They do not show that the output is correct. No shader names or data are included, per the asset policy.
AI-assisted (Claude Code).
@MamaLeVrai on GitHub · 2026-11-24 19:51 UTC · original
Thanks to DeerSilver for the RTX 5060 run (350 passed, the same totals as on the RX 6950 XT) and to sinan-cmyk for the offline measurement (+285 programs, 0 lost, and the walls the programs now stop at, which drove #1402 and #1504). The head is unchanged since those runs,
643aef6. AI-assisted (Claude Code); no game data.@Bullet18x on GitHub · 2026-11-24 21:50 UTC · original
NVIDIA RTX 5090 run of this bundle in the title, against
main.Machine: RTX 5090 32 GB, driver 621.40 (32.0.16.2114), Ryzen 9 9950X3D, 64 GB, Windows 11 Pro 10.0.28000.
Builds:
mainffe310eand this bundlebundle/lane-masks-scalar-reads643aef646, bothcargo build --profile diag -p victory --features diagnostics, warm shader and pipeline caches.Run:
VICTORY_KEYS=8:Enter,20:Enter,35:Enter,VICTORY_D3D12_DRED=1,VICTORY_CAPTURE=<dir>,VICTORY_CAPTURE_FRAMES= every second frame 900–990, one run each.mainshader does not translatewarnings in the runDXGI_ERROR_DEVICE_HUNGvictory translate <dump>),main→ this bundle:image_sample_d_cl29 → 0; "a lane-mask join of an untracked mask" 19 → 0The NVIDIA world hang itself is tracked in #1586 (what does not stop it on this machine).
No game data, captured frames or screenshots attached (asset policy). AI use: Claude Code (Claude Opus 5.5) built, ran and measured; I checked the results.
@MamaLeVrai on GitHub · 2026-11-24 23:52 UTC · original
Bullet18x: thank you for the RTX 5090 run and for the offline census; the census (+294 emitted, 771 to 0 for "a scalar memory read as data") is what the bundle is for. One caution about what it measures: it is against
mainatffe310e.mainhas since moved (28 commits of the maintainer's own,ffe310e..70564ae, among them lane masks, bounded root views and 64-bit image atomics), and on thatmainonly 1 of this bundle's 10 PRs merges as it stands (the others conflict in the shader lowering), so this branch is not rebuilt yet and your numbers are for the earlier base.AI-assisted (Claude Code); no game data.
@Marvisak on GitHub · 2026-11-25 00:37 UTC · original
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed