Triage: 13 open PRs already in main, 13 duplicate groups with a suggested pick, and bugs seen in diffs #848

Open
opened 2026-11-26 03:52:29 +00:00 by github-bot · 3 comments
Owner

@⁠KainanP on GitHub · 2026-11-25 10:34 UTC · original

Triage of the open PRs against main 9376fd6 (the "already in" list re-checked on f85101b): which are already in, which duplicate each other, and bugs seen in diffs.

With 600+ open PRs and changes brought in as your own commits, many PRs stay open after their content has landed. This lists, for the PRs it covers, what can be closed and what to pick where several do the same thing. Every claim was checked with git on a local clone (no build or game run): git merge-tree --write-tree origin/main pr/N equal to main's tree means merging changes nothing; git log -S on distinctive added lines finds the commit that brought them; duplicate verdicts come from reading the diffs, not titles. Uncertain points are marked (unverified). Nothing here comes from game files.

Short version:

  • Already in main, can be closed: #9, #82, #747, #186, #670, #255, #23 (merging changes nothing, also on f85101b), #48 (its code is in main; on f85101b it only conflicts where main appended tests after its copy of #48's), and #203, #305, #134, #240, #32 (ported in adapted form; #240 must not be merged as is, see bug 1). #115 is in apart from a diagnostic.
  • Not in main despite looking similar: #129, #91 (and #91 is a small, valid gap: VICTORY_SKIP_PIPELINES is documented but does nothing in release builds).
  • Duplicates: pick #124, #466, #51, #315, #452, #420, #290, #291 in their groups; #536/#521 are exact copies of #498/#466, #697 re-commits #452's code.

1. Already in main

noop means that git merge-tree --write-tree origin/main refs/remotes/pr/N gives exactly
origin/main^{tree} (641ddd7). In other words, merging the PR changes nothing. To find the commit
that brought each change in, I took about 7 distinctive added lines per PR and ran
git log -S over merge-base..origin/main. Every line pointed to the same commit unless the table says
otherwise.

PR Verdict Main commit Evidence
#9 (v_cvt_f32_f64, v_add_f64 wave sums) fully (noop) 3bff182 (asdaasdsaddf's branch) 7/7 lines come from 3bff182. The PR's 3rd commit 61e5f79 (makeDouble.f64 overload, which the maintainer asked for in his 2026-11-24 review) is in main too (lower.rs:2024). Commit message: "the makeDouble overload name and flag". The PR number is not credited.
#82 (depth bounds test) fully (noop) c96b4f2 The commit title says "(#82)" and the body says "#82 by Kaivyyy, as is". 7/7 lines.
#747 (tiles: card_wrote poisoning, SRV clamp, make/floor overflow) fully (noop) a26859f Commit and README both say "the fixes of pull request #747 by AscilCH". 7/7 lines.
#186 (tiled copies in fixed-size chunks) fully (noop) 8dd30ab 7/7 lines come from 8dd30ab. Not credited (it probably came with the myokex/victory-amd merge, unverified).
#48 (idle eviction / library trim under pressure) fully (noop) 3bff182 6/6 lines. The commit body mentions "sooner eviction of idle textures and caches under memory pressure". The PR number is not credited.
#670 (skip write-watch for guarded view memory) fully (noop) 9376fd6 The commit body and README both say "(pull request #670 by Jonirulah)". 7/7 lines.
#255 (copy-back bounds in 32-byte chunks) fully (noop) 8dd30ab 7/7 lines. Not credited.
#23 (gameinput HISTORY 32→256) fully (noop) 8dd30ab It is a one-line change. git log -S'const HISTORY: usize = 256' gives 8dd30ab. Not credited.
#203 (unused descriptors' sizes, f16 interp halves, 16-bit wave sums) fully, adapted a26859f All 196 significant lines are in main (unused_descriptor_kind lower.rs:5925, half_sum_present :2144). It conflicts only at a single line: main returns Err(FIRST_HALF) where the PR has a string literal, because main applies the first-half-writes-0 rule only to a program that was refused for it (a26859f: "with it on for every program 8,551 working pixel programs came out changed"). Nothing in the PR is still missing. The PR number is not credited.
#305 (mirror descriptor heaps copied as bytes) fully, extended a26859f The commit and README credit "pull request #305 by Flyander". The 3 lines not found literally are the 4-byte probe read_into and host.mirror(...). Main reads the whole page instead and mirrors through mirror_copied (a per-slot fingerprint), and it adds VICTORY_HEAP_SYNC=0 and a counter. changed_slots is identical (descriptor.rs:262).
#134 (AMD view-heap clamp; v_cvt_f32_f64; v_permlane16/x16) fully, one part kept unused 31714de (triippywhale's branch) The 12 missing lines are (a) the cache-key line. Main puts view_heap_limit() into translation_fingerprint() instead (emit/mod.rs:211), so the effect is the same. (b) The PR's v_cvt_f32_f64. Main uses #9's IEEE form, and keeps the PR's flush-to-zero f64_bits_to_f32_bits (lower.rs:7835) next to it, unused, with its test ignored (stated in the 31714de message). The PR number is not credited.
#240 (copy-back scratch sized to the changed stretch) fully, superseded 8dd30ab Main has back_piece (shadow.rs:1679) with the PR's doc comment and scratch sizing. The 17 "missing" lines are the signature and tests, which main extended with mask/runs. Semantic difference: in the PR the GPU's byte wins where the title and the GPU both wrote (its test asserts that). Main makes the title's byte win (upstream VIctory #2009 / f39c6c2, which fixed an access violation). Merging the PR as written would bring that bug back. Not credited.
#129 (untyped buffer getDimensions through a raw handle) not ported – The 0.76 ratio is a false positive: the matching lines are generic ((11 | u, 0), test boilerplate). Main lower.rs:5797 still has the idxen && format.is_none() && stride ... branch that gives a structured handle (12 | u, stride). That is exactly the branch the PR removes. Whether victory-gpu really backs these descriptors with raw views, as the PR says, is unverified: main's host.rs does create structured views in some paths (StructureByteStride at :754/:2032). It is still useful if the PR's claim holds, and its GPU test (structured_buffer_record_count_matches_raw_host_view) would show it.
#115 (texture guard sees writes through every view) fully in substance, adapted 8dd30ab The README and 8dd30ab both credit it: "adapts pull request #115 here by Spexivus" (through myokex c6dc4d8). Main has views_between (inplace.rs:339), alias protect/open in watch.rs (:620–:757) and title_memory_written (watch.rs:831, called from xmem.rs:660 and dstorage.rs:1068). Main's signature is (at, len, pages) instead of (section, offset, len) and sits behind VICTORY_PAGE_WRITES. Not carried over: the PR's texture-hash diagnostic unreported_change ("a texture's hash found a change its guard did not report"). It is diagnostics only, so there is little left to port.
#32 (RGBA16F stands in for R9G9B9E5 targets) fully 8dd30ab STAND_INS contains (67, 10), REFUSED is [bool; 3], and the doc comment is identical. The 3 "missing" lines are the same tracing::info! written on one line in main. Cosmetic only. Not credited.
#91 (VICTORY_SKIP_PIPELINES in release builds) not ported – The 0.6 ratio is a false positive: it matched generic #[cfg(windows)] lines. Main pipeline.rs:429 still has #[cfg(all(windows, feature = "diagnostics"))] on skipped_shader/is_skipped. It is still a valid, small change. The cost when the variable is unset is one OnceLock read per draw.
#37, #468, #524 (ratio 1.0, 0 lines) not ported (artifact) – landed.json counts 0 significant lines because these PRs only add scripts (run_game.sh, make-vi.bat). None of the files is in main. #468 and #524 add byte-identical make-vi.bat (blob fa77386). #524 was opened 40 min after #468 by another author.

Summary of section 1: 13 PRs are fully in main. Of these, 8 are no-ops (#9, #82, #747, #186, #48, #670,
#255, #23) and 5 were adapted (#203, #305, #134, #240, #32). #115 is in main apart from one diagnostic.
#129 and #91 are not in main
: their ratios come from generic lines matching. Only #82, #305, #747,
#670 and #115 are credited by number in a commit or the README. #9, #48, #134, #186, #255, #23, #203,
#240 and #32 landed without their number being named.

2. Duplicate groups (all 13 groups with 3 or more members; the 12 largest tie at size 3)

For each group I read the diffs from each PR's merge-base and checked them against main. Merge results
are against 9376fd6. The triage data has no CI status, so no suggestion is based on a green build.

Members Verdict Suggested PR One-line reason
#35, #219, #779, #298, #199 not duplicates (3 clusters) none for #35/#199 (superseded); judge #219, #298, #779 alone #35 and #199 add switches to the shader-cache key. Main already keys on every VICTORY_* switch the translator reads, plus the host wave width (8dd30ab, translation_fingerprint). #219 fixes lane read/write with inactive lanes, #298 wraps lane selectors at the wave width, and #779 is a new per-program wave64 switch.
#122, #124, #110, #112, #189 same change for #124/#110/#112/#189; different approach for #122 #124 #124 is the most complete (sort order, SV names, unallocated-column handling). Its comments show a whole-pack run clearing all 72 signature mismatches and a green RDNA4 test run. #189 covers the same ground. #110 and #112 do less. #122 instead recomputes which inputs are read after dead-code removal. None is in main (container.rs:93 still sorts by (row, col)).
#536, #527, #466, #498, #521 same change, with two exact copies #466 (alternative #498) #536 is identical to #498 and #521 is identical to #466 (same trees, I checked pr/N^{tree}). Both copies were opened by pug205gti6. #466 is first and smallest: it refuses counts below 0 or above 64 and has a test for both. #498 also checks that the list is readable and changes bind. #527 is incomplete (see bugs). Main is unfixed (net.rs:314 builds the slice straight from the title's count).
#51, #715, #82, #501 same change for #51/#715/#501; #82 not a duplicate #51 #82 (depth bounds) is already in main (c96b4f2) and was grouped only through issue #26. #51 is first, ports upstream #806 with its authorship, has 2 tests, and has 5 or more confirmations on different cards that the refused pipeline now builds. Main has no integer-blend fix.
#141, #395, #191, #207 not duplicates (4 separate gaps under issue #89) judge each alone #141: the staging buffer is overwritten while the GPU may still read it. #395: a refused all-zero partial read replaces the stored hash. #191 and #207 each cover different missed cases in blocked_by. They do not overlap but will conflict in that function. None is in main.
#326, #337, #316, #315 same change (half-float conversion rounds ties to even and keeps NaN, #245) #315 (alternative #316) #315 was first (22 s ahead of #316) and is the smallest diff. #316 also keeps NaN payload bits and was checked against GCC's _Float16 on 353,946 inputs. #337 behaves like #316 and #326 like #315. Main is unchanged.
#69, #420, #402 same change (Windows 10 Agility SDK, port of upstream #175 and #362) #420 The Agility files of #69 and #420 are byte-identical: git diff pr/69 pr/420 over apps/victory/build.rs, apps/victory/src/agility.rs, xtask/src/agility.rs and crates/victory-shader/build.rs is empty. #69's xtask/Cargo.toml uses miniz_oxide.workspace = true, which main's workspace no longer has (it uses zlib-rs), so the manifest fails to load. #420 declares miniz itself. #402 has only the victory.exe half. Both conflict (add/add) with main's new crates/victory-shader/build.rs from 8dd30ab.
#697, #452, #195 #697 ⊃ #452, same change; #195 a different approach #452; judge #195 alone #697's commit 50190fb is #452's f80fd26 copied word for word, without the test and with no credit, inside a bundle of other PRs. #195 removes the REUSE pass for compute, which is a different trigger of the same amdxc64 crash. The two fixes work together and merge with each other cleanly. Neither is in main.
#220, #204, #810 not duplicates (all touch indirect draws, #107) judge each alone #220 is a speed change (README: tried, lost the device twice, not in the tree). #204 fixes window and argument bounds, and its bug is still in main at draw.rs:2993. #810 adds diagnostic counters only.
#297, #290, #332 same change (--jobs 0 rejected via NonZeroUsize, #249) #290 First (23:19), minimal, has a parser test. #332 is the same. #297 adds an unrelated translate.rs refactor. Main still has jobs: Option<usize> (main.rs:86). All three conflict with main's new translate::warm(.., jobs) and need .map(NonZeroUsize::get) there.
#295, #291, #331 same change (maxTextLength 0 means 1024, #248) #291 First, smallest, and its test goes through the real async call. #331 adds a helper and a constant, #295 a wparam helper and a changed test stub. All three merge clean with main.
#346, #646, #308 not duplicates judge each alone #346: shaders mark the copies they store to (#284). #308: fault stores only for missing pages. #646: DispatchX USE_THREAD_DIMENSIONS (#16). #346 and #308 change Lower::memory in opposite directions (see bugs).
#602, #489, #701 different approaches (the opening video replays old frames) #602, after one run on current main #489 always hashes linear single-mip R8 textures (a format guess, no test). #602 keeps hashing while the hash keeps changing (unit test, 2 in-game confirmations). #701 does that permanently and adds 3 forced checks. Uncertain: main's view guard (8dd30ab, watch.rs:612–650) targets this exact cause, and the "still loops on main" report was made on 310c6eb, before it. #602 also carries an unrelated GetFrameStatisticsX change (+134 lines).

3. Bugs noticed in diffs

Found by reading the code. None was confirmed by a build or a run unless the item says so.

  1. #240 vs main: the PR's back_piece lets the GPU's byte win where the title and the GPU both wrote. Main fixed that to the title's byte (upstream #2009 / f39c6c2: an access violation). Merging #240 as it stands would undo that fix.
  2. #527: a negative address count is clamped to 0 and the list still goes to Windows without a check. #466 closes this.
  3. #402 xtask/src/agility.rs, test helper fn zip(...) -> Vec<u8>: it uses ? on anyhow results inside a function that returns Vec<u8>, so the xtask tests should not compile. It also adds an unused zlib-rs dependency.
  4. #69 xtask/Cargo.toml: miniz_oxide.workspace = true against a workspace that no longer lists it, so the manifest fails to load on main. I checked this myself.
  5. #195: VICTORY_REUSE_ALL is read as "set means on" (var_os(..).is_none()), so VICTORY_REUSE_ALL=0 also turns REUSE back on.
  6. #346 + #308: if both are ported, #346's mark store has to go inside #308's guarded branch. Otherwise it brings back the per-lane store to one address that #308 removes.
  7. #715: it also turns off logic ops on integer render targets, which is the one case where D3D12 allows them. This only matters if the title uses logic ops (unverified).
  8. #204 (uncertain): an ExecuteIndirect whose stride*max overruns the buffer, or whose offset is not 4-aligned, is now dropped completely. That follows the D3D12 spec but could drop draws where a count buffer limits the real work.
  9. #191 (reported in its comments by Pin0d1, not re-run here): it treats a wait as satisfied after stores of 1 then 0, and it misses writes through another view of the same page.
  10. Main (minor, from #35's area): the cache fingerprint writes NAME= both for an unset variable and for one set to empty. Switches that count as on when merely set could then get a stale cache hit. The code is at emit/mod.rs:202–208; whether any switch actually behaves that way is unverified.
  11. #91: this one is not a bug but a gap. VICTORY_SKIP_PIPELINES is documented in the README's debugging table, but it does nothing in release builds. The PR fixes that, and it is not in main.
  12. Credit hygiene: #697 re-commits #452's code with no credit and without its test. #536 and #521 are tree-identical copies of #498 and #466. #524 adds the same make-vi.bat blob as #468.

AI use: Claude Code (Claude Opus 5.5) ran the git checks, read the diffs and wrote this; reviewed by the user before posting. The scripts that produced the candidates (open-PR snapshot through the GraphQL API, merge-tree against main, overlap/duplicate grouping, already-landed detection) can be shared if useful.

**@⁠KainanP** on GitHub · 2026-11-25 10:34 UTC · [original](https://github.com/fxceless/victory-fork/issues/848) **Triage of the open PRs against `main` `9376fd6` (the "already in" list re-checked on `f85101b`): which are already in, which duplicate each other, and bugs seen in diffs.** With 600+ open PRs and changes brought in as your own commits, many PRs stay open after their content has landed. This lists, for the PRs it covers, what can be closed and what to pick where several do the same thing. Every claim was checked with git on a local clone (no build or game run): `git merge-tree --write-tree origin/main pr/N` equal to `main`'s tree means merging changes nothing; `git log -S` on distinctive added lines finds the commit that brought them; duplicate verdicts come from reading the diffs, not titles. Uncertain points are marked **(unverified)**. Nothing here comes from game files. Short version: - **Already in `main`, can be closed:** #9, #82, #747, #186, #670, #255, #23 (merging changes nothing, also on `f85101b`), #48 (its code is in `main`; on `f85101b` it only conflicts where `main` appended tests after its copy of #48's), and #203, #305, #134, #240, #32 (ported in adapted form; **#240 must not be merged as is**, see bug 1). #115 is in apart from a diagnostic. - **Not in `main` despite looking similar:** #129, #91 (and #91 is a small, valid gap: `VICTORY_SKIP_PIPELINES` is documented but does nothing in release builds). - **Duplicates:** pick #124, #466, #51, #315, #452, #420, #290, #291 in their groups; #536/#521 are exact copies of #498/#466, #697 re-commits #452's code. ## 1. Already in main `noop` means that `git merge-tree --write-tree origin/main refs/remotes/pr/N` gives exactly `origin/main^{tree}` (`641ddd7`). In other words, merging the PR changes nothing. To find the commit that brought each change in, I took about 7 distinctive added lines per PR and ran `git log -S` over `merge-base..origin/main`. Every line pointed to the same commit unless the table says otherwise. | PR | Verdict | Main commit | Evidence | |----|---------|-------------|----------| | #9 (v_cvt_f32_f64, v_add_f64 wave sums) | **fully** (noop) | `3bff182` (asdaasdsaddf's branch) | 7/7 lines come from `3bff182`. The PR's 3rd commit `61e5f79` (`makeDouble.f64` overload, which the maintainer asked for in his 2026-11-24 review) is in main too (`lower.rs:2024`). Commit message: "the makeDouble overload name and flag". The PR number is not credited. | | #82 (depth bounds test) | **fully** (noop) | `c96b4f2` | The commit title says "(#82)" and the body says "#82 by Kaivyyy, as is". 7/7 lines. | | #747 (tiles: card_wrote poisoning, SRV clamp, make/floor overflow) | **fully** (noop) | `a26859f` | Commit and README both say "the fixes of pull request #747 by AscilCH". 7/7 lines. | | #186 (tiled copies in fixed-size chunks) | **fully** (noop) | `8dd30ab` | 7/7 lines come from `8dd30ab`. Not credited (it probably came with the myokex/victory-amd merge, **unverified**). | | #48 (idle eviction / library trim under pressure) | **fully** (noop) | `3bff182` | 6/6 lines. The commit body mentions "sooner eviction of idle textures and caches under memory pressure". The PR number is not credited. | | #670 (skip write-watch for guarded view memory) | **fully** (noop) | `9376fd6` | The commit body and README both say "(pull request #670 by Jonirulah)". 7/7 lines. | | #255 (copy-back bounds in 32-byte chunks) | **fully** (noop) | `8dd30ab` | 7/7 lines. Not credited. | | #23 (gameinput HISTORY 32→256) | **fully** (noop) | `8dd30ab` | It is a one-line change. `git log -S'const HISTORY: usize = 256'` gives `8dd30ab`. Not credited. | | #203 (unused descriptors' sizes, f16 interp halves, 16-bit wave sums) | **fully**, adapted | `a26859f` | All 196 significant lines are in main (`unused_descriptor_kind` lower.rs:5925, `half_sum_present` :2144). It conflicts only at a single line: main returns `Err(FIRST_HALF)` where the PR has a string literal, because main applies the first-half-writes-0 rule only to a program that was refused for it (a26859f: "with it on for every program 8,551 working pixel programs came out changed"). Nothing in the PR is still missing. The PR number is not credited. | | #305 (mirror descriptor heaps copied as bytes) | **fully**, extended | `a26859f` | The commit and README credit "pull request #305 by Flyander". The 3 lines not found literally are the 4-byte probe `read_into` and `host.mirror(...)`. Main reads the whole page instead and mirrors through `mirror_copied` (a per-slot fingerprint), and it adds `VICTORY_HEAP_SYNC=0` and a counter. `changed_slots` is identical (descriptor.rs:262). | | #134 (AMD view-heap clamp; v_cvt_f32_f64; v_permlane16/x16) | **fully**, one part kept unused | `31714de` (triippywhale's branch) | The 12 missing lines are (a) the cache-key line. Main puts `view_heap_limit()` into `translation_fingerprint()` instead (emit/mod.rs:211), so the effect is the same. (b) The PR's `v_cvt_f32_f64`. Main uses #9's IEEE form, and keeps the PR's flush-to-zero `f64_bits_to_f32_bits` (lower.rs:7835) next to it, unused, with its test ignored (stated in the `31714de` message). The PR number is not credited. | | #240 (copy-back scratch sized to the changed stretch) | **fully**, superseded | `8dd30ab` | Main has `back_piece` (shadow.rs:1679) with the PR's doc comment and scratch sizing. The 17 "missing" lines are the signature and tests, which main extended with `mask`/`runs`. **Semantic difference:** in the PR the GPU's byte wins where the title and the GPU both wrote (its test asserts that). Main makes the title's byte win (upstream VIctory #2009 / f39c6c2, which fixed an access violation). Merging the PR as written would bring that bug back. Not credited. | | #129 (untyped buffer getDimensions through a raw handle) | **not ported** | – | The 0.76 ratio is a false positive: the matching lines are generic (`(11 \| u, 0)`, test boilerplate). Main lower.rs:5797 still has the `idxen && format.is_none() && stride ...` branch that gives a structured handle `(12 \| u, stride)`. That is exactly the branch the PR removes. Whether victory-gpu really backs these descriptors with raw views, as the PR says, is **unverified**: main's host.rs does create structured views in some paths (`StructureByteStride` at :754/:2032). It is still useful if the PR's claim holds, and its GPU test (`structured_buffer_record_count_matches_raw_host_view`) would show it. | | #115 (texture guard sees writes through every view) | **fully in substance**, adapted | `8dd30ab` | The README and `8dd30ab` both credit it: "adapts pull request #115 here by Spexivus" (through myokex c6dc4d8). Main has `views_between` (inplace.rs:339), alias protect/open in watch.rs (:620–:757) and `title_memory_written` (watch.rs:831, called from xmem.rs:660 and dstorage.rs:1068). Main's signature is `(at, len, pages)` instead of `(section, offset, len)` and sits behind `VICTORY_PAGE_WRITES`. Not carried over: the PR's texture-hash diagnostic `unreported_change` ("a texture's hash found a change its guard did not report"). It is diagnostics only, so there is little left to port. | | #32 (RGBA16F stands in for R9G9B9E5 targets) | **fully** | `8dd30ab` | `STAND_INS` contains `(67, 10)`, `REFUSED` is `[bool; 3]`, and the doc comment is identical. The 3 "missing" lines are the same `tracing::info!` written on one line in main. Cosmetic only. Not credited. | | #91 (VICTORY_SKIP_PIPELINES in release builds) | **not ported** | – | The 0.6 ratio is a false positive: it matched generic `#[cfg(windows)]` lines. Main pipeline.rs:429 still has `#[cfg(all(windows, feature = "diagnostics"))]` on `skipped_shader`/`is_skipped`. It is still a valid, small change. The cost when the variable is unset is one `OnceLock` read per draw. | | #37, #468, #524 (ratio 1.0, 0 lines) | **not ported** (artifact) | – | `landed.json` counts 0 significant lines because these PRs only add scripts (`run_game.sh`, `make-vi.bat`). None of the files is in main. **#468 and #524 add byte-identical `make-vi.bat`** (blob `fa77386`). #524 was opened 40 min after #468 by another author. | Summary of section 1: **13 PRs are fully in main.** Of these, 8 are no-ops (#9, #82, #747, #186, #48, #670, #255, #23) and 5 were adapted (#203, #305, #134, #240, #32). **#115 is in main apart from one diagnostic. #129 and #91 are not in main**: their ratios come from generic lines matching. Only #82, #305, #747, #670 and #115 are credited by number in a commit or the README. #9, #48, #134, #186, #255, #23, #203, #240 and #32 landed without their number being named. ## 2. Duplicate groups (all 13 groups with 3 or more members; the 12 largest tie at size 3) For each group I read the diffs from each PR's merge-base and checked them against main. Merge results are against `9376fd6`. The triage data has no CI status, so no suggestion is based on a green build. | Members | Verdict | Suggested PR | One-line reason | |---------|---------|--------------|-----------------| | #35, #219, #779, #298, #199 | **not duplicates** (3 clusters) | none for #35/#199 (superseded); judge #219, #298, #779 alone | #35 and #199 add switches to the shader-cache key. Main already keys on every `VICTORY_*` switch the translator reads, plus the host wave width (`8dd30ab`, `translation_fingerprint`). #219 fixes lane read/write with inactive lanes, #298 wraps lane selectors at the wave width, and #779 is a new per-program wave64 switch. | | #122, #124, #110, #112, #189 | **same change** for #124/#110/#112/#189; **different approach** for #122 | **#124** | #124 is the most complete (sort order, SV names, unallocated-column handling). Its comments show a whole-pack run clearing all 72 signature mismatches and a green RDNA4 test run. #189 covers the same ground. #110 and #112 do less. #122 instead recomputes which inputs are read after dead-code removal. None is in main (container.rs:93 still sorts by `(row, col)`). | | #536, #527, #466, #498, #521 | **same change**, with two exact copies | **#466** (alternative #498) | **#536 is identical to #498 and #521 is identical to #466 (same trees, I checked `pr/N^{tree}`).** Both copies were opened by pug205gti6. #466 is first and smallest: it refuses counts below 0 or above 64 and has a test for both. #498 also checks that the list is readable and changes `bind`. #527 is incomplete (see bugs). Main is unfixed (net.rs:314 builds the slice straight from the title's count). | | #51, #715, #82, #501 | **same change** for #51/#715/#501; **#82 not a duplicate** | **#51** | #82 (depth bounds) is already in main (`c96b4f2`) and was grouped only through issue #26. #51 is first, ports upstream #806 with its authorship, has 2 tests, and has 5 or more confirmations on different cards that the refused pipeline now builds. Main has no integer-blend fix. | | #141, #395, #191, #207 | **not duplicates** (4 separate gaps under issue #89) | judge each alone | #141: the staging buffer is overwritten while the GPU may still read it. #395: a refused all-zero partial read replaces the stored hash. #191 and #207 each cover different missed cases in `blocked_by`. They do not overlap but will conflict in that function. None is in main. | | #326, #337, #316, #315 | **same change** (half-float conversion rounds ties to even and keeps NaN, #245) | **#315** (alternative #316) | #315 was first (22 s ahead of #316) and is the smallest diff. #316 also keeps NaN payload bits and was checked against GCC's `_Float16` on 353,946 inputs. #337 behaves like #316 and #326 like #315. Main is unchanged. | | #69, #420, #402 | **same change** (Windows 10 Agility SDK, port of upstream #175 and #362) | **#420** | The Agility files of #69 and #420 are byte-identical: `git diff pr/69 pr/420` over `apps/victory/build.rs`, `apps/victory/src/agility.rs`, `xtask/src/agility.rs` and `crates/victory-shader/build.rs` is empty. #69's `xtask/Cargo.toml` uses `miniz_oxide.workspace = true`, which main's workspace no longer has (it uses zlib-rs), so the manifest fails to load. #420 declares miniz itself. #402 has only the victory.exe half. Both conflict (add/add) with main's new `crates/victory-shader/build.rs` from `8dd30ab`. | | #697, #452, #195 | **#697 ⊃ #452, same change; #195 a different approach** | **#452**; judge #195 alone | #697's commit `50190fb` is #452's `f80fd26` copied word for word, without the test and with no credit, inside a bundle of other PRs. #195 removes the REUSE pass for compute, which is a different trigger of the same `amdxc64` crash. The two fixes work together and merge with each other cleanly. Neither is in main. | | #220, #204, #810 | **not duplicates** (all touch indirect draws, #107) | judge each alone | #220 is a speed change (README: tried, lost the device twice, not in the tree). #204 fixes window and argument bounds, and its bug is still in main at draw.rs:2993. #810 adds diagnostic counters only. | | #297, #290, #332 | **same change** (`--jobs 0` rejected via `NonZeroUsize`, #249) | **#290** | First (23:19), minimal, has a parser test. #332 is the same. #297 adds an unrelated translate.rs refactor. Main still has `jobs: Option<usize>` (main.rs:86). All three conflict with main's new `translate::warm(.., jobs)` and need `.map(NonZeroUsize::get)` there. | | #295, #291, #331 | **same change** (`maxTextLength 0` means 1024, #248) | **#291** | First, smallest, and its test goes through the real async call. #331 adds a helper and a constant, #295 a wparam helper and a changed test stub. All three merge clean with main. | | #346, #646, #308 | **not duplicates** | judge each alone | #346: shaders mark the copies they store to (#284). #308: fault stores only for missing pages. #646: DispatchX `USE_THREAD_DIMENSIONS` (#16). #346 and #308 change `Lower::memory` in opposite directions (see bugs). | | #602, #489, #701 | **different approaches** (the opening video replays old frames) | **#602**, after one run on current main | #489 always hashes linear single-mip R8 textures (a format guess, no test). #602 keeps hashing while the hash keeps changing (unit test, 2 in-game confirmations). #701 does that permanently and adds 3 forced checks. **Uncertain:** main's view guard (`8dd30ab`, watch.rs:612–650) targets this exact cause, and the "still loops on main" report was made on `310c6eb`, before it. #602 also carries an unrelated `GetFrameStatisticsX` change (+134 lines). | ## 3. Bugs noticed in diffs Found by reading the code. None was confirmed by a build or a run unless the item says so. 1. **#240 vs main:** the PR's `back_piece` lets the GPU's byte win where the title and the GPU both wrote. Main fixed that to the title's byte (upstream #2009 / f39c6c2: an access violation). Merging #240 as it stands would undo that fix. 2. **#527:** a negative address count is clamped to 0 and the list still goes to Windows without a check. #466 closes this. 3. **#402** `xtask/src/agility.rs`, test helper `fn zip(...) -> Vec<u8>`: it uses `?` on anyhow results inside a function that returns `Vec<u8>`, so the xtask tests should not compile. It also adds an unused `zlib-rs` dependency. 4. **#69** `xtask/Cargo.toml`: `miniz_oxide.workspace = true` against a workspace that no longer lists it, so the manifest fails to load on main. I checked this myself. 5. **#195:** `VICTORY_REUSE_ALL` is read as "set means on" (`var_os(..).is_none()`), so `VICTORY_REUSE_ALL=0` also turns REUSE back on. 6. **#346 + #308:** if both are ported, #346's mark store has to go inside #308's guarded branch. Otherwise it brings back the per-lane store to one address that #308 removes. 7. **#715:** it also turns off logic ops on integer render targets, which is the one case where D3D12 allows them. This only matters if the title uses logic ops (**unverified**). 8. **#204 (uncertain):** an ExecuteIndirect whose `stride*max` overruns the buffer, or whose offset is not 4-aligned, is now dropped completely. That follows the D3D12 spec but could drop draws where a count buffer limits the real work. 9. **#191** (reported in its comments by Pin0d1, not re-run here): it treats a wait as satisfied after stores of 1 then 0, and it misses writes through another view of the same page. 10. **Main (minor, from #35's area):** the cache fingerprint writes `NAME=` both for an unset variable and for one set to empty. Switches that count as on when merely set could then get a stale cache hit. The code is at emit/mod.rs:202–208; whether any switch actually behaves that way is **unverified**. 11. **#91:** this one is not a bug but a gap. `VICTORY_SKIP_PIPELINES` is documented in the README's debugging table, but it does nothing in release builds. The PR fixes that, and it is not in main. 12. Credit hygiene: #697 re-commits #452's code with no credit and without its test. #536 and #521 are tree-identical copies of #498 and #466. #524 adds the same `make-vi.bat` blob as #468. --- _AI use: Claude Code (Claude Opus 5.5) ran the git checks, read the diffs and wrote this; reviewed by the user before posting. The scripts that produced the candidates (open-PR snapshot through the GraphQL API, `merge-tree` against main, overlap/duplicate grouping, already-landed detection) can be shared if useful._
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:52:30 +00:00
Author
Owner

@⁠domints on GitHub · 2026-11-25 11:27 UTC · original

FYI: I fixed the problems with #402 - Merged in victory-shader changes from simplesmenterafael:gpu/agility-sdk-win10 while fixing merge conflicts, fixed xtasks tests and removed unnecessary dependency.

So #402 stays current, updated, conflictless and has its bugs entry fixed.

**@⁠domints** on GitHub · 2026-11-25 11:27 UTC · [original](https://github.com/fxceless/victory-fork/issues/848#issuecomment-7161072790) FYI: I fixed the problems with #402 - Merged in victory-shader changes from [simplesmenterafael:gpu/agility-sdk-win10](https://github.com/simplesmenterafael/victory-gta6/tree/gpu/agility-sdk-win10) while fixing merge conflicts, fixed xtasks tests and removed unnecessary dependency. So #402 stays current, updated, conflictless and has its bugs entry fixed.
Author
Owner

@⁠KainanP on GitHub · 2026-11-25 21:09 UTC · original

Item 10 of section 3 holds on current main (085ee7c). VICTORY_STRICT_JOINS and VICTORY_MESH_OUTPUT_STRICT count as on when merely set, and both are in the translator's switch list. So a run with either one set to an empty value translates differently, but it gets the same cache key as a run without it. #1132 writes NAME\0 for an unset switch and NAME=value\0 for a set one, with a unit test that fails on the old encoding.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-25 21:09 UTC · [original](https://github.com/fxceless/victory-fork/issues/848#issuecomment-7174680784) Item 10 of section 3 holds on current main (085ee7c). `VICTORY_STRICT_JOINS` and `VICTORY_MESH_OUTPUT_STRICT` count as on when merely set, and both are in the translator's switch list. So a run with either one set to an empty value translates differently, but it gets the same cache key as a run without it. #1132 writes `NAME\0` for an unset switch and `NAME=value\0` for a set one, with a unit test that fails on the old encoding. _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠Gabarsolon on GitHub · 2026-11-25 22:21 UTC · original

Follow-up to this triage: the duplicates it does not list yet, from a pass over all 847 open PRs (snapshot
2026-11-25 ~21:30 UTC). Read-only and no game files. I compared head commit SHAs, changed files and added lines
(whitespace-normalised) from the GitHub API, then read the diffs of each group below. The groups already covered
above (#466, #315, #420, #290, #291, #51, #124, #452) are left out.

1. 37 open PRs with the same head commit as another open PR

This extends the #536/#521/#697 note above. All were opened by pug205gti6 between 01:56 and 02:08 UTC on Nov 25, on
branches named pr/<original>-..., and they carry the original author's description. The head SHA equals the
original's, so either one merges the same commits. Closing the copy loses nothing.

#510 = #456, #513 = #448, #514 = #445, #515 = #447, #516 = #441, #517 = #443, #519 = #463, #520 = #458,
#521 = #466, #522 = #462, #524 = #468, #526 = #473, #528 = #478, #529 = #484, #531 = #486, #532 = #490,
#533 = #499, #534 = #485, #536 = #498, #537 = #480, #539 = #487, #540 = #479, #541 = #481, #545 = #437,
#546 = #435, #547 = #433, #548 = #434, #549 = #430, #551 = #429, #552 = #426, #553 = #436, #554 = #423,
#555 = #438, #556 = #421, #557 = #420, and #542 = #697 (both by the same account).

From the same batch, not identical commits:

  • #523 copies #467 (93% of added lines are the same), and #530 has the same added lines as #491 on a different
    commit. Both originals are still open.
  • #509, #511, #518, #525, #527, #538 reopen #460, #454, #451, #469, #476, #465, which were closed. It may be worth
    knowing why the originals were closed before reviewing the copies.

2. More groups: same fix, different authors

Issue / topic PRs What I saw
WARP budget test, either group order (#1100, #1118) #847, #849, #1098, #1110, #1134 All five make the same assertion: kept draws are [1, 2] or [64, 65]. Each is 10-15 lines in indirect.rs, and all merge clean. #847 was first.
#242 unreadable legacy save blob #322, #327, #338, #341 All change only xgamesave.rs, with 1, 1, 2 and 3 tests. All are mergeable.
#243 XTaskQueueTerminate cancels only its own callbacks #296, #324 Each has 2 tests. #324 is smaller (+68 against +264).
#244 two frame waits on one tick #281, #325 #281 merges clean, #325 conflicts.
#246 raw container source length #288, #328 #288 also adds a PLAN.md.
#247 failure samples across inputs #292, #330 #292 conflicts, #330 is mergeable with 4 tests.
#250 sampler slots by comparison kind #276, #333
#111 v_writelane_b32 outside EXEC #119, #139, #219 Section 2 above judges #219 on its own. #119 and #139 fix only the write, and #219 also covers the read, so pick #219 or one of the other two.
Windows 10 Agility SDK #856 Joins the #69/#402/#420 group. It is the smallest (+44, 3 files, no tests) and touches no xtask.
Integer render targets get no blending #922 Joins the #51 group.

3. Same goal, different code (one approach has to be chosen)

The added lines mostly differ in these, so they are alternatives rather than copies:

  • VICTORY_AMBIENT constant indirect light: #917 (3 tests), #1093 (1 test)
  • Card compare hashes a piece with 64 threads: #518 (one of the copies above, conflicts), #997, #1014
  • Clippy passes again: #491, #642, #982 (largest, 7 files)
  • Pipeline library saves serialised: #164 (5 tests), #566 (1 test)
  • Probe the adapter before warming the shader cache: #813, #815
  • DirectStorage keeps the file reference across queued reads: #403, #621 (same author, both conflict)
  • XMem coalesces split placeholders: #299 (conflicts), #1060 (mergeable)

Closing the copies in section 1 removes 36 PRs without losing code. Picking one per group in sections 2 and 3 removes
about 30 more.

AI-assisted (Claude Code). Read-only analysis; nothing was built or run for it.

**@⁠Gabarsolon** on GitHub · 2026-11-25 22:21 UTC · [original](https://github.com/fxceless/victory-fork/issues/848#issuecomment-7176262252) Follow-up to this triage: the duplicates it does not list yet, from a pass over all 847 open PRs (snapshot 2026-11-25 ~21:30 UTC). Read-only and no game files. I compared head commit SHAs, changed files and added lines (whitespace-normalised) from the GitHub API, then read the diffs of each group below. The groups already covered above (#466, #315, #420, #290, #291, #51, #124, #452) are left out. ## 1. 37 open PRs with the same head commit as another open PR This extends the #536/#521/#697 note above. All were opened by pug205gti6 between 01:56 and 02:08 UTC on Nov 25, on branches named `pr/<original>-...`, and they carry the original author's description. The head SHA equals the original's, so either one merges the same commits. Closing the copy loses nothing. #510 = #456, #513 = #448, #514 = #445, #515 = #447, #516 = #441, #517 = #443, #519 = #463, #520 = #458, #521 = #466, #522 = #462, #524 = #468, #526 = #473, #528 = #478, #529 = #484, #531 = #486, #532 = #490, #533 = #499, #534 = #485, #536 = #498, #537 = #480, #539 = #487, #540 = #479, #541 = #481, #545 = #437, #546 = #435, #547 = #433, #548 = #434, #549 = #430, #551 = #429, #552 = #426, #553 = #436, #554 = #423, #555 = #438, #556 = #421, #557 = #420, and #542 = #697 (both by the same account). From the same batch, not identical commits: - #523 copies #467 (93% of added lines are the same), and #530 has the same added lines as #491 on a different commit. Both originals are still open. - #509, #511, #518, #525, #527, #538 reopen #460, #454, #451, #469, #476, #465, which were closed. It may be worth knowing why the originals were closed before reviewing the copies. ## 2. More groups: same fix, different authors | Issue / topic | PRs | What I saw | |---|---|---| | WARP budget test, either group order (#1100, #1118) | #847, #849, #1098, #1110, #1134 | All five make the same assertion: kept draws are `[1, 2]` or `[64, 65]`. Each is 10-15 lines in `indirect.rs`, and all merge clean. #847 was first. | | #242 unreadable legacy save blob | #322, #327, #338, #341 | All change only `xgamesave.rs`, with 1, 1, 2 and 3 tests. All are mergeable. | | #243 `XTaskQueueTerminate` cancels only its own callbacks | #296, #324 | Each has 2 tests. #324 is smaller (+68 against +264). | | #244 two frame waits on one tick | #281, #325 | #281 merges clean, #325 conflicts. | | #246 raw container source length | #288, #328 | #288 also adds a PLAN.md. | | #247 failure samples across inputs | #292, #330 | #292 conflicts, #330 is mergeable with 4 tests. | | #250 sampler slots by comparison kind | #276, #333 | | | #111 `v_writelane_b32` outside EXEC | #119, #139, #219 | Section 2 above judges #219 on its own. #119 and #139 fix only the write, and #219 also covers the read, so pick #219 or one of the other two. | | Windows 10 Agility SDK | #856 | Joins the #69/#402/#420 group. It is the smallest (+44, 3 files, no tests) and touches no xtask. | | Integer render targets get no blending | #922 | Joins the #51 group. | ## 3. Same goal, different code (one approach has to be chosen) The added lines mostly differ in these, so they are alternatives rather than copies: - `VICTORY_AMBIENT` constant indirect light: #917 (3 tests), #1093 (1 test) - Card compare hashes a piece with 64 threads: #518 (one of the copies above, conflicts), #997, #1014 - Clippy passes again: #491, #642, #982 (largest, 7 files) - Pipeline library saves serialised: #164 (5 tests), #566 (1 test) - Probe the adapter before warming the shader cache: #813, #815 - DirectStorage keeps the file reference across queued reads: #403, #621 (same author, both conflict) - XMem coalesces split placeholders: #299 (conflicts), #1060 (mergeable) Closing the copies in section 1 removes 36 PRs without losing code. Picking one per group in sections 2 and 3 removes about 30 more. _AI-assisted (Claude Code). Read-only analysis; nothing was built or run for it._
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#848
No description provided.