Skip to content

Coordination: single upstream pull requests outside the bundles #3

Backlog

Description

@DesertGamer

Status, 2026-11-26

Project state. The title reaches the world scene on a 32-lane NVIDIA GPU without a device removal, at about 1 fps (target 30 fps). #1, #16, #17 and #18 are closed; PR #19 (view addresses for dynamic slots) and PR #20 (v_fma_legacy_f32 model) are merged. Task claims now live in #29; this issue keeps the history of the merge waves in the comments below.

What changed against the list below

What the community can do


The earlier body of this issue follows, unchanged.

Coordination for the single upstream pull requests that are not part of any bundle.

Open tasks

Kept current here, newest state as of 2026-11-25 (main is f5b24437b). Comment below to take one.

  1. dstorage failures differ a lot from run to run (0, 0, 7, 34, 118, 91, 334, 0, 16 over the last builds). The warning now names the first page of the request: in the last run all 16 failures were first=0x0 first_known=false zero_in_list=true, a page list the title had not filled yet when the read started (the race the code waits out for LATE_LIST_TRIES = 8 ms; 5 lists of that run were written late, 16 came within six milliseconds). So freed and reused page numbers (#1445, #1224) are not the cause. Open: why the count moves between runs, and whether a longer wait or a retry of the failed request is worth it. Details: Growing dstorage failures in a run: physical pages could not be written #15.
  2. Three small pull requests that need something we cannot do here: #1938 (it changes an unused image_get_resinfo channel from 1 to 0: needs a measurement on hardware), #1548 (capped host heap, NVIDIA: needs such a host), and #1832 (it drops the unordered-access permission from a format that is not a typed UAV, to stop the device removal of #1754; merged and taken out again because it also takes the permission from the RGB9E5 target of the upscaler, which is castable: a fix has to keep the permission where the format can be cast). The rest of the small ones are merged or checked, see Upstream pull requests not yet merged into main #12.
  3. The shader constant folding and the bundle merges: #1646 and #1716 (both fold constants in the shaders, at two levels: take them one at a time and compare the output of real shaders before and after) and the seven bundle merges #1692, #1418, #1511, #1542, #1426, #1363, #929 (285 to 890 lines each). Each needs a run of the game. The large clean ones #1822, #1837, #1215, #1201, #505 are in main; #1673, #1871, #1408 conflict now and are in #12.
  4. #1741 (AGENTS.md) is not merged: it asks every contributor to name the AI tool and model in the pull request description, which this project does not do. Needs the maintainer's decision.
  5. #14 (draft, the rest of the work to reach the lit world): take the parts main lacks as separate pull requests (copy-back of only the changed byte runs, translator fixes). Its in-memory patches of the title's executable and VICTORY_AUTO_A are not for main.
  6. #13 was merged but its effect is not seen on our side: our run reached the cutscene, not the world. Someone whose run reaches the world: does the albedo cover the screen, and what does the heap usage: line say?
  7. Tests that fail on main (three): modules::kernel::tests::a_title_image_name_is_in_the_ansi_code_page, emit::semantics_tests::arithmetic_matches_the_hardware, and copystat::tests::counter_enum_matches_array_length (only with --all-features). emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros was the fourth and passes since #1887 and #1943.

How to take one

  1. Pick an open pull request of https://github.com/Marvisak/VIctory that is not listed as merged in the integration issue.
  2. Comment here with its number so two people do not take the same one.
  3. Merge its head onto the current V2 main on a branch. If git reports a conflict, or the build or tests break after a clean merge, that is the interesting case: note which pull request it clashes with.
  4. Run cargo test --workspace and cargo clippy --workspace --all-targets --all-features --locked -- -D warnings.
  5. Open a pull request to V2, and list the pull requests it overlaps. One upstream pull request per V2 pull request, please.

Known patterns

  • Two pull requests each add a mod tests (or the same constant) at the end of the same file. Git merges both without a conflict, then the crate does not compile. Merge the two blocks into one.
  • Two pull requests change the same function in different ways. It merges cleanly, a test fails. Keep one and say why in the commit message.
  • A new type for a field in one pull request and a push of the old type in another. Read both before choosing.

Please check before you merge

Read the diff for: binary files, archives, build.rs, git hooks, .cargo/config.toml, CI workflows, scripts, new dependencies, process starts, sockets and HTTP. A change that does more than its description says is not merged. See SECURITY.md.

Report here

Which pull request, what it fixes on your machine, what you ran. Include a clash when you found one.

Activity

  1. added
    tracking
    integration
    on Nov 24, 2026
  2. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    The remaining bundle (#1638) and the four GPU write-watch fixes from #1610 are described in the latest comment on #2. They are the best candidates for single-pull-request work: port one at a time onto the current main, with a test.

  3. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Work in progress: the GPU failure on entering the world (see #1)

    What was done, in order, so it can be checked or repeated:

    1. Built the diagnostics profile (cargo build --profile diag -p victory --features diagnostics) and ran the title with VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1 (NVIDIA RTX 5070, Windows 11).
    2. The device is removed with DXGI_ERROR_DEVICE_HUNG. DRED shows one list stopped at command 224 of 231, every command around it with breadcrumb op 42. By windows 0.62.2 (Win32/Graphics/Direct3D12/mod.rs) 42 is D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH, so the GPU hangs while running mesh shader dispatches. The log does not say which of the 479 mesh pipelines it is.
    3. Second run with VICTORY_SHADER_LOOP_LIMIT=64 (translated loops stop after 64 iterations; a diagnostic knob, not a fix). The hang did not occur in that run. One run only.
    4. That run ended with DXGI_ERROR_INVALID_CALL instead. The debug layer names it: CreateRenderTargetView with format B4G4R4A4_UNORM (0x73), which this GPU cannot render to, on a resource created without RENDER_TARGET. resource.rs already drops that flag when the host refuses the format, but the two places that make a render target view (draw.rs set_targets, list.rs clear_rtv) did not check it.

    Change being tested (not committed yet): host::can_render_to(texture) (built on the existing legal_state, no new unsafe), used in set_targets and clear_rtv to skip a target the host texture cannot render to. A unit test covers the flag logic. cargo test -p victory-gpu (180 tests) and cargo clippy --workspace --all-targets --locked -- -D warnings pass.

    Open on purpose: skipping makes the call legal, but the picture in 4444 targets stays empty; a real fix would substitute a format NVIDIA can render to. A verification run on the game is going now; the result and the commit will be posted here next.

    If you know how the console's 4444 targets should map on NVIDIA, or want to take the mesh shader hang (which mesh pipeline, and why the long loops), say so here first.

  4. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Status. The verification run with the render target change (diag build, VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_DRED=1, VICTORY_SHADER_LOOP_LIMIT=64) is still going and has not failed so far. It is in its slow phase (0.4 to 1.8 fps in the log); the previous run with the same variables also began at 0.5 fps and later reached 30 fps before it failed at frame 1435. The slow phase is expected with these settings (debug layer, DRED, a shader cache that is new for the loop limit). Building a plain release with the same change now, to look at the picture without diagnostics. Next here: the result of the run, then the commit.

  5. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Frame rate in the world: where the time goes, and what is next

    First result of the verification run (diag build, render target change from the previous comment): it did not fail on its own and it draws. A screenshot shows a stylised car illustration on a dark background; the window title reads about 2 fps, 550 ms per frame, 1502 draws per frame. Pictures appear rarely because a frame takes seconds. So the frame rate is the next thing to fix.

    Measured (one machine, NVIDIA RTX 5070, one run, the steady stretch at 2.3 fps; VICTORY_LOG=info lines from victory_gpu::host and victory_gpu::copystat):

    • 433 ms per frame = 287 ms preparing on the CPU (copies of title memory 148 ms for 256 MB, textures 32 ms for 109 MB) + 73 ms on the GPU + 55 ms copying results back. The GPU itself is the smaller part.
    • copystat for a window of 2.1 fps: about 34 submissions and 1438 write-watch queries per frame, 8 GB of title memory checked of which 97% unchanged, 64,662 page faults, 959 fallbacks.

    Reading of it (a hypothesis, not yet shown): the same pages are asked about again and again within one submission. This is the symptom that upstream PR 1610 (commit c326bfa8, "ask the kernel about each page once per submission") describes: 1,500-1,800 askings per frame on another GPU. That is one of the four write-watch fixes from #1610 that were left out of main because watch.rs had been rewritten (see #2).

    Plan:

    1. Port only that fix onto the current watch.rs and host.rs, by hand, not by merge.
    2. Check with the existing tests, add one that fails without the change (a second ask about a page inside one submission must not reach the kernel), then clippy.
    3. Measure the same stretch again; the number to compare is the count of write-watch queries per frame and the "copies" time in the host line, under the same settings.
    4. Only if the numbers drop, commit and post the before and after here. If they do not, say so here and look elsewhere (page faults, texture hashing, the 55 ms copy back).

    Anyone who knows this code (Sweep in watch.rs and its interaction with Batch::title_written) is welcome to comment before it is merged.

  6. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Stopped for now. State of the work, so nobody has to guess:

    • Render target change (host::can_render_to, used in set_targets and clear_rtv): written, cargo test -p victory-gpu (180 tests) and cargo clippy --workspace --all-targets --locked -- -D warnings pass. The verification run on the game did not fail on its own and it draws (a screenshot shows a picture, about 2 fps). Not committed yet.
    • Frame rate: measured (see the previous comment), about 1400 write-watch queries per frame, 97% of the checked memory unchanged. The port of the write-watch "sweep" from #1610 (c326bfa8) onto the current watch.rs and host.rs is written, with four tests (three from that commit, one new for the case where the kernel refuses a later part of a range, so that pages found by an earlier part are not lost). It has not been compiled or tested, and nothing has been measured. Do not rely on it.
    • Next steps when work resumes: compile and test the sweep port, measure the same stretch again (queries per frame and the "copies" time), then commit what is shown to help.
  7. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Committed and pushed: d49f10b8 — GPU: do not make a render target view of a texture the host cannot render to (host::can_render_to, used in set_targets and clear_rtv; one unit test). Checked with cargo test -p victory-gpu (180 tests) and cargo clippy --workspace --all-targets --locked -- -D warnings; on the game with the D3D12 debug layer and DRED the run no longer ended in DXGI_ERROR_INVALID_CALL and drew a picture. Still open: the picture in 4444 targets is empty (needs a substitute format) and the frame rate (see the comment above). The write-watch sweep port is not in this commit; it stays uncommitted in the working tree, uncompiled and untested.

  8. muhammed-aksoy commented on Nov 24, 2026

    @muhammed-aksoy

    Marvisak/VIctory#1290 is now in V2 PR #5. I retained the V2 backend list while adding the device initialization error to skipped-test output. On Windows at cca5de7, 739 workspace tests passed with zero failures and 13 ignored. Clippy and asset policy passed. Synthetic fixtures only. AI-assisted.

  9. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Plan: rebase the V2 work onto the owner's new main (non-destructive, a new branch next).

    What was found: upstream main moved by 28 commits, all pushed at 22:36 on 2026-11-24, about 25,000 lines in 76 files (title memory through a page table, shader pack and pipeline pre-build, world frame cost, FidelityFX, many shader fixes). Merging that into the current V2 main gives about 200 conflicts in 28 files in the GPU and shader core, because the community bundles change the same functions. I am not resolving that by hand.

    What I do instead: start next from upstream main, put the V2 community files and the render target fix (d49f10b8) on it, then take the 100 new pull requests (#1630-#1759) and the bundles that still apply, one by one, with cargo test --workspace after each pack. Every pull request is checked for binaries, scripts, build.rs and dependency changes first. V2 main on Gitea and GitHub stays as it is until next builds and its tests pass; nothing is force-pushed.

  10. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Wave on next started (new pull requests #1630-#1759).

    Done so far on next (a local branch from upstream main 70564ae, nothing pushed yet): the V2 community files and README, the render target fix, and #1751 (capped view heaps keep the full dynamic range on NVIDIA). #1751 matters on its own: before it, two victory-gpu tests failed on an RTX 5070 (dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views, a descriptor heap smaller than the title's table); after it all 79 victory-gpu tests pass.

    Safety scan of the 100 new pull requests: no binary files. Taken out before merging, with the reason: #1652 and #1721 (two GUI launchers: a PowerShell build script, registry access, starting processes), #1655 (CI workflows and a publish script), #1704 and #1715 (DLSS through the Streamline SDK, a large external dependency), #1650 (draft), #1707 and #1741 (AGENTS.md: instructions for AI agents, a decision for the maintainer). The bundles #1632, #1638, #1644 and #1692 are tried last, because they are stacked on code the owner has since changed.

    The rest go in one at a time by size, with cargo test --workspace after every 25. A pull request that conflicts is skipped and listed here.

  11. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    main now sits on the current upstream main (70564ae) plus the open upstream pull requests merged one by one and tested after each batch (40 merged, 45 skipped for conflicts, two constant-folding PRs left out because they break shader tests on some GPUs). The old history is kept as the first parent; the previous main is tagged main-before-v3 (d49f10b), so going back is one command.

    Checked: workspace builds, clippy with -D warnings is clean, tests show no new failures against upstream's own baseline (three shader tests that compare with the hardware fail on this GPU on upstream's main too).

    On an NVIDIA RTX 5070 the title no longer loses the host GPU at start: textures in formats the GPU cannot render to or write (B4G4R4A4, B5G5R5A1) are created without those uses, and typed unordered views are made only in formats the GPU can store to. The start sequence runs smoothly; trouble begins with the first cutscene (stutter, and submissions of about 4 seconds). Details in the README status.

    Not carried over yet: some of the earlier bundles' fixes (the 45 skipped PRs and four bundles) are not on this main; they will be brought back one by one. From here upstream main and its pull requests are merged straight into main.

  12. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Wave on main (new pull requests #1629-#1807): merged and pushed.

    Done so far on a local copy of main (nothing pushed yet): upstream main has no new commits since 70564ae0; 42 pull requests are new. Merged one by one, smallest first, with the original authors kept: 26. 15 conflict and are skipped for now: #1629, #1761, #1763, #1769, #1770, #1775, #1776, #1777, #1779, #1780, #1786, #1788, #1791, #1799, #1801. By their titles several of them (#1763, #1775, #1780, #1801: typed unordered views; #1777, #1779: capped view heaps) are other forms of NVIDIA fixes that main already carries; I go through them by hand next.

    Safety scan of the 42: no binary files. Six were flagged and each was read: #1761, #1786, #1789 and #1793 only add Windows features of crates already in use (windows, windows-sys); #1773 starts the test's own executable; #1807 has a test helper named eval. #1789 is a draft and is left out.

    Two things came up while merging. First, #1787 (textures drop unordered access in formats the host cannot write) clashes with #1793: it takes the use away from every such texture, the RGB9E5 upscaler output included, which #1793 keeps through its FP16 stand-in, and an_rgb9e5_output_takes_its_stand_ins_colour failed. Its merge is reverted: a texture the host refuses at creation already comes without the use (#55), and unordered views in formats the host cannot store are refused when they are made. Second, three tests of the range analysis read an instruction's register reads as a field, which the arena API turned into reads(&p); fixed.

    Checked on this state: clippy with -D warnings is clean, cargo test --workspace passes 558 tests, and the same three shader tests fail that fail on upstream's own main on this GPU (they compare with the hardware): no new failure.

    Run of the title (release build of this state, 150 seconds, NVIDIA RTX 5070): no GPU error and no failed texture creation; the log warning about title slots past the capped view heap appeared 5 times (a run of the previous state logged about 310,000). The start sequence, the intro splash included, ran at 30 fps by the frame counter. Then the cutscene: the counter fell to 1.3 fps, with nine submissions of 260 to 500 ms each (32 to 34 lists) logged around that point, and 942 shaders were translated at first use, none of them from the cache in this run. So the stutter of the cutscene is still there; this wave does not fix it.

    Pushed to both repositories: main is now 1ae2cb61 (the previous main is tagged main-before-wave4, so going back is one command).

    Still to do: the skipped pull requests by hand, GPU fixes first. The list of them moved to its own issue, #12, and is updated there as they are merged.

  13. pinned this issue on Nov 24, 2026
  14. DesertGamer commented on Nov 24, 2026

    @DesertGamer
    OwnerAuthor

    Wave on main started (the rest of the open upstream pull requests).

    Done so far on a local copy of main (nothing pushed yet): upstream has 1048 open pull requests; 254 of them are already in main, 776 are not. The 776 include the 60 listed above that conflicted in the last two waves, 14 drafts and 15 [BUNDLE] pull requests (those carry earlier forms of pull requests that are listed on their own). Most of the older ones, numbers below #1630, were carried in the bundles of the old main and never went through a wave on the current base, so they are the bulk of what is left.

    Safety scan of the 682 never scanned before: no binary files. 103 were flagged, left out, and kept in a list for a look by hand: 22 start a process (std::process), 16 mention PowerShell, 5 touch the registry, 4 call WriteProcessMemory, 5 contain a web address, the rest are build or workflow files and new dependencies. Together with the earlier scans, 158 of the 776 are left out for that reason. No flagged pull request is merged without a look.

    The wave takes the remaining 608 clean ones: one by one, smallest first, the original authors kept; a conflicting one is skipped and listed; the full tests run against the known baseline after every 50, and a new failure stops the wave until the pull request that causes it is found. After that: clippy with -D warnings, a release build and a run of the title. The result goes here, and the push to both repositories only after the run.

    Wave result: pushed. main is f7725ed7 on both repositories (it was 1ae2cb61, kept as the tag main-before-wave5).

    Done: 113 of the 608 clean pull requests were merged, the original authors kept. 4 of them were taken out again: #1009, #1264, #1457 and #1490. With all four in, the title ended in an access violation inside its own code right after the log line dstorage: a page list filled after its request started; with the four taken out, two 110-second runs had no access violation. That is the order of the evidence, not a proven cause: which of the four does it, or whether it is their combination, is not found yet. They stay in the list below.

    Left over: 489 conflict with main, 13 do not build against the current shader code (they were written before its arena API). All 506 not in main are in the list at the top of this thread, numbers without links, for anyone who wants to merge one by hand.

    Changes of my own on top of the merges: the format flags of #1281 are only dropped when the host refuses them (as #55 does), three tests moved to the new read/write form, and the clippy findings the merged code brought in were fixed (collapsible if, div_ceil, a type alias, a test-only helper, one narrow allow for an unsafe block in a test of #263).

    Checks: clippy with -D warnings is clean; 718 tests pass and 5 fail, none of them new: three shader tests that also fail on upstream's main on this machine (RTX 5070), one that compares arithmetic with the hardware after the pull request that follows RDNA2's legacy multiply-add, and one that expects the Windows code page 1252 where this machine has 1251.

    Not checked: the pushed state itself was not run. The same tree minus the clippy fixes was run twice for 110 seconds. In the first run the title stayed up; in the second the host GPU was removed after a submission that took 4.9 seconds (the known cutscene problem). The frame rate in the cutscene is still low, and the log points at shaders translated while the title runs (1282 in a cold run, 217 with a warm cache); a pre-translated cache is the next step.

  15. 11 remaining items

  16. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Pushed: main is now 47c0c5b7 on Gitea and GitHub (fast-forward from 69d34538). The previous main is kept as the tag main-before-medium19.

    What went in. 19 medium clean pull requests from the old repository, one merge commit each, authors kept: #545, #1278, #1895, #1824, #1863, #1466, #1827, #589, #1869, #1445, #1599, #1872, #1884, #663, #1224, #1395, #1907, #1864, #1922. #1798 added nothing: its changes were already in the tree. #1741 was not merged: its AGENTS.md asks contributors to state the AI tool and model in every pull request description, which this project does not follow, so it waits for a decision.

    Three fixes of mine on top. Two of the shader pull requests were written for operand vectors, and here operands live in an arena, so #589 and #1599 did not compile as they were. I changed only how the data is read, not what the pull requests do. The third was found by a test, not by the compiler: #1599 read the literal of a 64-bit compare with zero extension, which contradicts the sign extension of 7d049431 already in the tree, so v_cmp_eq_i64 with a negative literal compared wrong. src64_dwords now sign-extends the literals of signed operands like src64 does. All three are separate commits.

    Checks. Clippy with -D warnings is clean. The workspace tests fail in the same three baseline places and nowhere new.

    Game runs: one of two hung. The first run hit device removed after a 4840 ms submission of 16 lists. 210 of the 214 pipelines in that submission are the same as in the hang on the upstream merge build, and the wave64 shaders #1922 refuses are not among them, so this is the known hang family, not a new one. The second run of the same build reached the cutscene without it (longest submission 350 ms). The pushed main before this one had 0 hangs in 3 runs, so one hang in two does not separate "the batch" from "the background hang"; I pushed knowing that.

    What #1922 changed visibly. Wave64 programs on a 32-lane host are refused up front ("no host pipeline", 3 times) instead of failing at pipeline creation (141 refusals before, 0 now).

    Not checked. No run with a debug layer, no second machine, no hardware other than the AMD host above.

    The list of pull requests that still do not merge was updated for the new main.

  17. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Starting a wave: the 54 smallest pull requests of the old repository that conflict with the current main (c7846f11), up to 60 changed lines each, from #1124 (6 lines) to #679 (60). The list they come from is now its own issue, #12.

    How it goes: a local copy of main, one pull request at a time, smallest first, original authors kept. A conflict is settled by hand, keeping what both sides need. Some of these will turn out to be already in the tree under another pull request's name (the GPU descriptor and format ones look like it: #1780, #1843, #1776, #1548, #1090, #1685); those I do not merge twice, and each such one is named in the summary with the reason. Nothing is pushed before the checks: clippy with all features as CI runs it, the workspace tests, one game run to the cutscene, and a look at the log.

    Two things from before, so they are not lost: the CI of main was red on 69d34538 and 47c0c5b7 (a diagnostics-only build error from #1873, found only by CI because it builds all features); the fix c7846f11 is pushed and its CI is being read now. The summary of this wave will say what that CI showed.

  18. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Pushed: main is now cef4efa5c on Gitea and GitHub (fast-forward from c7846f11). The previous main is kept as the tag main-before-small-wave.

    CI first. The CI of main was red on 69d34538 and 47c0c5b7: #1873 had removed the per-upload read buffer, and a diagnostics-only function still summed it, which only the all-features build sees. The fix c7846f11 is in and its CI is green. Clippy is now run here the way CI runs it, with all features.

    What went in: 23 of the 54 small pull requests that conflicted (up to 60 changed lines), one merge commit each, authors kept: #1825, #1628, #679, #1823, #506, #537, #1889, #1424, #222, #1812, #1668, #580, #1289, #1810, #259, #988, #83, #1886, #1830, #1613, #1776, #1448, #673. Where the tree had moved on, the change was applied by hand in the commit before the merge commit (#1628), and where both sides had only added to a file the two additions are both kept. A merge commit that says so names the files.

    Not merged, with the reason.

    • Already in the tree under another pull request: #1780 and #1843 (typed unordered store, in main as 70452c643), #1702 and #1701 (host gamepad switch and display mode override, merged and then reverted here because they define the same things twice), #1124 (its straddle fix exists in the rewritten shadow.rs).
    • Does not fit the design of main: #1916 (constant buffers are read as raw SRV buffers here, a null CBV in the slot is the wrong type; merged and reverted), #1264 (the scatter map loop it counts was rewritten).
    • Still to do by hand, 24: #1879, #1791, #1770, #1858, #1685, #1709, #1461, #279, #388, #1033, #1703, #1548, #1928, #1941, #1937, #601, #682, #575, #1564, #1565, #1566, #1938, #1090, #1546.

    Fixes of mine. The first pass joined both sides of every conflict in the shader test files, which is wrong where both sides edit the same lines (#1879 and #1791 are two versions of one change); it broke valu_tests.rs, was rolled back, and only true appends (empty common base) are joined now. Four files then had two mod tests each and were joined into one; two reads in lower.rs from #259 use the program's arena like the rest of the file.

    Checks. Clippy with all features is clean. The workspace tests fail in four places: three known ones and copystat::tests::counter_enum_matches_array_length, which also fails on c7846f11 and only runs with all features. Two game runs on this tree reached the cutscene with no device removal (longest submission 333 ms).

    One open question. Both runs show a burst of dstorage failures ("a destination's physical pages could not be written", pages=1): 118 and 91 in one instant each. The series by build is 0, 0, 7, 34, 118, 91. The code it comes from is touched by #1445 and #1224, which went in with the medium wave, so I think the rise started there, not here; I have not checked it by running without them. It did not stop the title.

    Not checked. No run on another GPU, no run with the debug layer, and the nine automatically joined pull requests were read for conflicts but not behaviour.

    The list of what is not merged yet is updated in #12.

  19. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Open task: find out why dstorage failures grow, and fix it. Details and the table of measurements are in #15.

    Short version: in a run to the cutscene the warning "a destination's physical pages could not be written" went from 0 on 549052e1 to 7, 34, 118, 91 and 334 on the later builds of main. It does not stop the title, but the number is rising with the merges, and the cause is not found.

    What is needed, in order:

    1. Reproduce: count the warning in a run on the current main (28c3a6ca2 or later) and note the GPU and driver.
    2. Bisect: run 28c3a6ca2 with f89051f8d (#1445, HLE reuses freed physical page numbers) reverted, then with the #1224 change reverted. If the count drops to 0 or near it, that pull request is the cause; this is a suspicion so far, not checked.
    3. Fix or take out the offender, and say in the pull request what the check showed.

    Until it is solved this stays open here: the other merges of this wave are not blocked by it.

  20. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Starting the next wave from #12, now in parallel. Three branches, each in its own working copy, cut from main (28c3a6ca2), each taking a group of the 24 small pull requests that still need a hand merge, grouped by the files they touch so the branches meet without new conflicts:

    • shader group: #1879, #1791, #1685, #1709, #682, #1090, #1938, #1033
    • GPU host and descriptor group: #1770, #1461, #1703, #1548, #1564, #1565, #1566, #1858, #1941, #1928
    • GPU draw, texture and shadow group: #388, #601, #575, #1546, #279, #1937

    A fourth pass only reads: why the dstorage failures grow (#15), comparing #1445 and #1224 with #1490, which was taken out earlier. It changes nothing.

    Each branch is merged one pull request at a time and checked with clippy (all features) and the tests; a duplicate or an obsolete one is skipped with its reason. Nothing is pushed before the checks, a game run and a go-ahead. The medium and large clean ones (#1673, #1822, #1837, #1215, #1201) come after, each with its own run.

  21. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Wave result, 2026-11-25: main is now 3e45915e1 (fast-forward, Gitea and GitHub; rollback tag main-before-agents = 28c3a6ca2).

    This wave took the small pull requests of the old repository that still did not merge by hand, split over three branches by area (shaders, GPU host and descriptors, GPU draw and textures). Every merge keeps the author's commit in the history.

    In main:

    • GPU draw and textures: 279 (DRED command names and the shader dump switch), 388 (unwatched textures refreshed without a region query, detiled through a shared scratch buffer), 601 (capture read-backs and upload footprints bounded to their buffers), 575 (a released shadow's buffer is retired behind the queue). 388, 601 and 575 were ported by hand onto the rewritten code and recorded as merged.
    • GPU host and descriptors: 1770, 1461, 1564, 1565, 1566 (MakeResident, Evict and SetStablePowerState settled together), 1928.
    • Shaders: 1685 and 682.
    • Ours: the dstorage warning now also names the first page of the request, whether the page table knows that number, and whether the list holds a 0 (see the open task for the burst of those warnings).

    Looked at and not merged, each checked against the code:

    • 1879, 1791: the tree already makes the dot4 test operands at run time (#1782).
    • 1090: the same lowering of constant 64-bit f and t compares is already in (1685).
    • 1709: the cube coordinate inputs are already flushed; the result needs no flush, as it is a pick, a negation or a doubling of flushed inputs.
    • 1033: ir::build already writes the register lists into a scratch and an arena, with no per-instruction allocations.
    • 1938: it changes the value of an unused image_get_resinfo channel from 1 to 0; nothing on hardware backs either value, and its test only checks that the DXIL is not empty.
    • 1548: it changes how a capped host heap (NVIDIA) shares its slots; we have no such host to measure on.
    • 1937 (its test fix is in, its README log is a dated run of one machine), 1546 (dispatch_mesh_x already goes through execute_indirect), 1703, 1858, 1941 (already in).

    Checked before the push:

    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings is clean.
    • The workspace tests fail only in the four known places.
    • One run of the game, to the cutscene: no device removal, no slow submission, no dstorage failure, no panic.

    Not checked: the new VICTORY_SHADER_DUMP switch and the detile path of 388 are not covered by a test; no run on a second GPU.

    What went wrong on the way: two of the three branches' agents stopped without a report and the draw port still carried a doc comment; the comment was removed in 3e45915e1. A few merged commits of the old repository carry an AI trailer in their original message (Co-Authored-By); merging a pull request keeps its commits as they are, so it stays in the history.

    The list of what is still open is in #12, the open tasks are at the top of this issue.

  22. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Wave started, 2026-11-25: the clean medium pull requests of the old repository (against main 3e45915e1).

    A dry merge now finds 41 open pull requests that merge without a conflict (it was 20 an hour ago: the last waves took the code they conflicted with). This wave takes the medium ones, 61 to 300 changed lines, one at a time, each as its own merge commit with the author kept:

    #486, #1778, #1767, #1930, #1875, #1908, #1832, #1621, #1817, #395, #470, #1931 (and #1798, which added nothing the last time: it is in already).

    Held back on purpose:

    • #1741 (AGENTS.md): it asks AI agents to name their tool and model in a pull request description; that decision is the maintainers'.
    • The small clean ones (up to 60 lines, mostly hardware tests of the shaders) and the large ones (over 300 lines, with the merges of whole bundles) come in later waves, each with a run of the game.

    Before a push: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings, the workspace tests, one run of the game to the cutscene. Merges of a main into a branch bring that branch's commits; a count above a handful gets looked at before it is merged.

  23. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Wave result, 2026-11-25: main is now eaa6ad692 (fast-forward, Gitea and GitHub; rollback tag main-before-medium2 = 3e45915e1).

    The clean medium pull requests of the old repository (61 to 300 lines, merging without a conflict), one merge commit each with the author kept: #486, #1778, #1767, #1930, #1875, #1908, #1621, #1817, #395, #470, #1931.

    Taken out again: #1832 (it drops the unordered-access permission from a texture whose format is not a typed UAV). The RGB9E5 colour target of the upscaler is made with castable formats, where D3D12 allows that permission through a cast, and the pull request took it away from that target too: an_rgb9e5_output_takes_its_stand_ins_colour failed on the merge. It is merged and reverted (the history shows both); the device removal it set out to stop (a B5G5R5A1 target with the debug layer on, #1754) stays open, and a fix has to keep the permission where the format can be cast.

    Two fixes of ours on the way: #395 and #470 both carry the same compressed export tests, and #1767 and the merge in #1930 both carry the same validator reason test, so with all of them merged the tests were defined twice and the crates did not compile; the second copy of each block is removed after checking the two are identical. #1908 conflicted only in crates/victory-shader/build.rs: the pull request moves the hash into a source_hash function, the tree added a call to the Agility runtime setup; both are kept.

    Held back on purpose: #1741 (AGENTS.md, the maintainers decide), the small clean ones (up to 60 lines) and the large ones (over 300 lines), which come in later waves.

    Checked before the push:

    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings is clean.
    • The workspace tests fail only in the four known places; the new only_test_module_edits_preserve_the_translator_hash of #1908 passes.
    • One run of the game, to the cutscene: no device removal, no slow submission, no panic.

    What that run showed about the open dstorage task: all 16 failures of the run were the same case, first=0x0 first_known=false zero_in_list=true: the page list of the destination still held a 0, that is, the title had not filled it yet when the read started. That is the race the code already waits out (LATE_LIST_TRIES = 8 milliseconds, 5 lists of the run were filled in time and written late); the 16 came within six milliseconds, as one burst. So the failures are not freed and reused page numbers, and #1445 and #1224 are not the cause. Why the count differs between runs (0, 7, 34, 118, 334, 16) is not known.

    Not checked: a run on a second GPU, and the large pull requests of the old list.

  24. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Wave started, 2026-11-25: the clean small pull requests of the old repository (against main eaa6ad692).

    A dry merge finds nine open pull requests of up to 60 changed lines that merge without a conflict: #1856, #1288, #1944, #1943, #1887, #1866, plus three that the authors extended after we merged them, #486, #1224 and #580 (their new commits are what is merged now). One merge commit each, the author kept.

    The hardware tests of the shaders (#1892, #1878, #1876, #1676, #1046 and their neighbours) merged cleanly an hour ago and now conflict in valu_tests.rs and shader_cache.rs: the last waves touched the same files. They are not lost; they go to the list of pull requests that need a hand merge in #12.

    Before a push: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings, the workspace tests, one run of the game to the cutscene.

  25. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Wave result, 2026-11-25: main is now 4ce973930 (fast-forward, Gitea and GitHub; rollback tag main-before-small2 = eaa6ad692).

    The clean small pull requests of the old repository (up to 60 lines, merging without a conflict), one merge commit each with the author kept: #1856, #1288, #1944, #1943, #1887, #1866, and three that the authors extended after we merged them, #486, #1224, #580 (their new commits are what went in now).

    A known failing test is fixed: a_heap_buffer_read_where_no_buffer_view_is_reads_zeros passes now, with #1887 (structured buffer views of the test host) and #1943 (the null-buffer reads of the heap skip a host that caps its heaps). Three tests still fail on main: modules::kernel::tests::a_title_image_name_is_in_the_ansi_code_page, emit::semantics_tests::arithmetic_matches_the_hardware, and copystat::tests::counter_enum_matches_array_length (only with --all-features).

    What changed in the list of clean pull requests: the hardware tests of the shaders (#1892, #1878, #1876, #1676, #1046 and their neighbours) merged cleanly an hour before and now conflict in valu_tests.rs and shader_cache.rs, because the waves in between touched the same files. In all, 159 open pull requests that were not in the list of #12 conflict with main now: 135 that merged cleanly before and 24 that we merged earlier and whose authors pushed more commits since. They are in #12 now. The text of #12 was at the size limit of an issue, so its list of pull requests closed upstream without a merge moved to the first comment of that issue.

    Checked before the push:

    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings is clean.
    • The workspace tests fail only in the three places above.
    • One run of the game, to the cutscene: no device removal, no slow submission, no panic, no dstorage failure.

    Not checked: a run on a second GPU.

    What is left: the list in #12 (450 pull requests that conflict, most of them over 60 lines), the large clean ones (#1673, #1822, #1837, #1215, #1201, #1646, #1716, #1871, #1408, #505 and the bundle merges), and the open tasks at the top of this issue.

  26. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Wave started, 2026-11-25: the large clean pull requests of the old repository, first part (against main 4ce973930).

    A dry merge of the large ones that were clean an hour ago: seven still merge without a conflict, three do not any more (#1673, #1871, #1408, they go to the list in #12).

    This part takes five, one merge commit each, the author kept, none of them touching the shader lowering:

    • #1822 (the title's narration through the host's SAPI voice; two more features of the windows-sys crate already in the tree)
    • #1837 (the title's screenshots save the last presented frame)
    • #1215 (copy-back with NtWriteVirtualMemory, no VirtualQuery before a copy into the title)
    • #1201 (four bounds and cleanup fixes in the loader's windows.rs, with unit tests)
    • #505 (synthetic Windows runtime conformance tests under Wine: a shell script and a README, no Rust)

    Held for a part of their own, each with a run of the game: #1646 and #1716 (both fold constants in the shaders, at two different levels: together they could change what every shader computes) and the seven merges of whole bundles (#1692, #1418, #1511, #1542, #1426, #1363, #929). #1741 (AGENTS.md) stays with the maintainers.

    Before a push: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings, the workspace tests, one run of the game to the cutscene.

  27. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Large clean pull requests, first part: pushed, 2026-11-25. main is f5b24437b on both servers; the previous main (4ce973930) is the tag main-before-large1. CI of the pushed commit is green.

    Merged (one merge commit each, the author kept): #1822 (the title's narration plays through the host's SAPI voice), #1837 (the title's screenshots save the last presented frame), #1215 (copy-back with NtWriteVirtualMemory, no VirtualQuery before a copy into the title; it brings a sampling profiler), #1201 (four bounds and cleanup fixes in the loader's windows.rs, with unit tests), #505 (synthetic Windows runtime conformance tests under Wine: a shell script and a README).

    What I had to change (one commit on top, nothing else in the pull requests):

    • The unit tests of #1201 were written for an older tree: ImageInfo has since gained size_of_headers, and load_title_dll and load_title_dlls take a list of title folders. The tests now build the image info with the new field and pass &[title.path()].
    • clippy --all-features refused two spots of the profiler of #1215: GetCurrentThreadId stood in an unsafe block of its own, and a tick test was written as a remainder. The call moved into the unsafe block above it, and the test uses is_multiple_of.

    Checked: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings is clean. The workspace tests fail in the same three places as before and in no new one (a_title_image_name_is_in_the_ansi_code_page, arithmetic_matches_the_hardware, counter_enum_matches_array_length). One run of the game on this tree reached the cutscene: no device removal, no error, no panic; the slowest host submission was 341 ms, the same as in the three runs before.

    Not checked: whether the narration, the screenshots and the profiler work. None of them is on in a plain run, so the log shows nothing of them; I only know that they build, pass clippy and do not break the start. dstorage showed 311 failures in this run, all of the kind described in #15 (first=0x0 first_known=false zero_in_list=true, one burst within 0.2 s); none of these five touches that code.

    Held back for a part of its own, each needing a run: #1646 and #1716 (both fold constants in the shaders, at two levels, together they could change what any shader computes) and the seven bundle merges #1692, #1418, #1511, #1542, #1426, #1363, #929. #1741 (AGENTS.md) stays with the maintainers. #1673, #1871 and #1408 were clean an hour ago and now conflict; they are in #12, which is updated.

  28. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Merge of upstream main started, 2026-11-25 (against our main f5b24437b).

    Upstream's main moved by four commits since our last merge of it (4118f33b3). Two of them are already here (42363ab6c, ccfb02996). The other two are by Marvis and are not:

    • cd94d3538: shaders mark the pages they write through unordered buffer views, and a copy-back after a submission compares only the marked pages. The commit message says the old snapshot of every writable range cost 0.45-0.7 s of a 1.5-1.7 s frame of the intro cutscene.
    • 940d32f69: a marked page's copy-back does not save the page for its own copy.

    A dry merge conflicts in six files: shader_cache.rs, shadow.rs, emit/host.rs, emit/memory_tests.rs, emit/mod.rs, emit/shader.rs. I settle them by hand, keeping what both sides need (our shadow.rs was rewritten to segments, and #13 already marks the heap slots that shaders read).

    Why first: most of the 270 new pull requests of the old repository are cut from the new upstream main, so each carries these two commits and shows up as a conflict with our tree. After this merge their own size can be judged; I count 66 small, 108 medium and 95 large ones.

    Before a push: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings, the workspace tests, one run of the game to the cutscene, where I compare the slow host submissions (two of 311-360 ms in each of the last runs).

  29. DesertGamer commented on Nov 25, 2026

    @DesertGamer
    OwnerAuthor

    Task claims and the open task list live in #29.

  30. unpinned this issue on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    integrationtracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions