Tested merge candidate: open PRs added a batch at a time, each batch built, tested and run on the title (replaces #3327) #3409
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!3409
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3409"
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?
@pes7 on GitHub · 2026-11-26 22:51 UTC · original
pes7:merge/tested→main· +2834 −213 · 24 files · 81 commits · openDraft, a tested merge candidate.
mainplus 27 open pull requests, added a few at a time. Each step was checked by building, testing and running the title, so maintainers can see which PRs are known to work together and with the title. It replaces #3327, which is closed (see below for why).Nothing here closes or replaces any of these pull requests: each stays open and is closed only when it lands in
main. If it helps, merging this branch lands them all at once with the checks below already done. Picking single PRs from the list is just as fine.Why a smaller tested set, not everything that is green
In #3327 I merged every open PR that merged cleanly and had a green
check, 375 of them. That set builds and passescargo test, but it does not run the title. Each problem below was found by bisecting that set or by others' reports:0x887A0004) about 70-90 s in, at the first cutscene, on a machine with three adapters. One cause found in the set was #967 (the adapter choice); other combinations still did it after #967 was reverted.xmem/ guard PRs. #2848's guard-reopen commit was one of them, confirmed independently in #2848 by @Jackster and since removed from it.lower.rsgrowing past the 512 KiB asset policy once enough shader PRs are combined.So "mergeable and green" alone is not enough: individually fine PRs break the title in combination. This branch therefore grows only by steps that keep the title running.
How each PR got in
PRs taken, most useful first:
merge-candidateon their current head;They were added in batches of six. A batch stays only if all of these hold:
cargo check --workspace --all-targets --lockedcargo test --workspace --locked: 0 failures (the one known flakyrelaunch_closes_its_duplicated_process_handleis ignored)diagnostics, Series X, a scriptedEnter/ hold schedule through #3392, warm shader cache), judged automatically, with screenshots every 30 s also looked at:device removed;A batch that fails is halved until the PR that fails it is out. That PR is listed with the reason.
The base,
main+ #3392 alone, reaches the prison yard in 300 s with 10 552 draws a frame. #3392 is in the base only because the scripted input needs a held key.In this branch (27)
Batch 1, title OK (max 10132 draws a frame):
Batch 2, title OK (max 11200 draws a frame):
Batch 3, title OK (max 10581 draws a frame):
Batch 4, title OK (max 11409 draws a frame):
Batch 5, title OK (max 10827 draws a frame):
One fix on top (
1e25b23): #2962's diagnostics-only test calledHost::rtv(&texture, ..), and #450 changed that to takeOption<&ID3D12Resource>. It surfaced only in the--all-featuresclippy that CI runs. That build is now part of every step: on this head, clippy-D warningsis clean both ways,cargo test --workspacepasses 908 tests with 0 failures, andvictory-gpuwith--all-featurespasses 278 with 0 failures.Conflict with the set so far (need a rebase onto it, not judged)
#2821, #2542, #2727, #3065
Status
victory-shader(about 140), in the same way, as the machine is free for title runs. This branch is pushed only at points where the title run passed. A failing run is repeated before a PR is left out, since a device removal can come and go.Not checked: other GPUs (all title runs are on one NVIDIA machine) and Series S mode. The tests ran on the same machine's GPU.
🤖 Generated with Claude Code
In the user-data loop, a dword numbered `ROOT_VIEW_OFFSET` (4) was taken for a root view's offset without asking whether the parameter was a root descriptor at all. Root constants with five or more dwords have a real dword 4; it was looked up as a root view, none was found, and the draw or dispatch was refused ("a root view's offset: no root view, or outside title buffers") with no log line. The ray-tracing builder's dispatches were among the casualties. Ask `u.root == RootType::Descriptor` too, through a helper beside `is_root_view`, so a root constant's dword 4 goes to the title's user data as the value it is. The test pins the predicate: descriptor dword 4 is an offset, constants and table dword 4 are not.Title buffer views reached CreateShaderResourceView and CreateUnorderedAccessView with the title's own format. The title's heap holds views the host refuses: made for its own runtime, or old ones in slots it does not use. On WARP with the debug layer: - a raw view of R32_UINT: "When creating a RAW Shader Resource View, the format must be DXGI_FORMAT_R32_TYPELESS", then device removal (DXGI_ERROR_INVALID_CALL) for the shader resource view; - a structured view with a format: "it must be DXGI_FORMAT_UNKNOWN"; - a typed view of a typeless format: "cannot be used when creating a typed View of a Buffer". A raw or structured view reads its bytes whatever its format says, so it is now made in the format the host wants (R32_TYPELESS, UNKNOWN); a raw view with a structure stride, or a typed view of no format or a typeless one, has none and stays null, with a warning once. Structure strides are left as they are (2, 6 and 4096 are taken by the debug layer). Test: buffer_views_take_a_format_the_host_takes. From DexNom/VIctory@570a941e9b (buffer_view_ok in descriptor/host.rs), reworked: views are corrected where their bytes do not depend on the format instead of refused, and the stride limits and the raw 16-byte start, which the debug layer does not ask for or which #123 covers, are left out. Co-authored-by: DexNom <[email protected]>VICTORY_KEYSentries can hold a key, so a scripted run can walk 5723344383`VICTORY_KEYS=<seconds>:<key>` held each key for 200 ms: enough for a menu press, not for walking. An entry now takes an optional third field, the hold in milliseconds: VICTORY_KEYS=10:Enter:300,20:Enter:300,200:W:6000 Without it the hold stays 200 ms, so existing schedules behave as before. Both the keyboard device and the stand-in pad see the keys (`Enter` is the pad's A, `W` the left stick up), with or without window focus. Co-Authored-By: Claude Opus 5.5 <[email protected]>@Jackster on GitHub · 2026-11-26 23:40 UTC · original
Windows 11,
63bcca4+ this PR, the CI job's three commands:cargo clippy --workspace --all-targets --locked -- -D warnings: clean.cargo test --workspace --locked: 908 passed / 0 failed across 30 suites (unpatched63bcca4here: 872;victory-gpualone goes 232 → 261 tests).cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: FAILS:A test call site still passes
&texturewherertvnow takesOption<&ID3D12Resource>— one of the batches rolled up here changed that signature without its caller. So the diagnostics build does not compile; the default build and the whole test suite do.Synthetic only. AI-assisted.
@pes7 on GitHub · 2026-11-27 00:52 UTC · original
@Jackster thanks, that's exactly it. #2962's diagnostics-only test still called
rtv(&texture, ..)after #450 changed it to takeOption<&ID3D12Resource>, and my batch checks did not build--all-features. Fixed in1e25b23on top of the set, and CI is green on that head. On it, locally: clippy-D warningsclean both ways,cargo test --workspace908 / 0, andvictory-gpu --all-features278 / 0. The--all-featurescheck is now part of every batch.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.