Five open shader PRs stack: #150 #112 #203 #25 #134 validate 98.1 % of the retail pack, no regressions #471

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

@⁠JRamos1993 on GitHub · 2026-11-25 01:20 UTC · original

Five open shader PRs stack cleanly on 2119b0e. Together (#150, #112, #203, #25, #134) they validate 25,596 of the retail pack's 26,084 programs (98.1 %, up from 25,370), with no regressions at any step. This is the shader-correctness side; #465 measures the performance PRs together.

Setup:

  • Builds: main 2119b0e with the PRs merged in the order below, all clean merges.
  • Toolchain: release, rustc 1.98.1 x86_64-pc-windows-msvc, on Windows 11 Pro 26200 with an i9-14900KF.
  • Command: victory translate <game>\shaders.rpf --validate --list --jobs 16, with dxil.dll from Windows SDK 10.0.26100.0.
  • I read every diff before building it.
step validated failing what the step fixes
main 2119b0e 25,370 519
+ #150 + #112 25,509 380 72 signature mismatches, 67 of 70 interpolation-packing failures (details in #53)
+ #203 25,555 334 35 pixel "descriptor read only as data", 8 interpolation first halves, 2 16-bit wave sums, 1 descriptor format (details in #279)
+ #25 25,595 294 all 40 "a descriptor chosen by control flow" (37 Ps, 3 Ms)
+ #134 25,596 293 v_permlanex16_b32; its 5 v_cvt_f32_f64 programs stop later, on "a whole-wave section step the simulation does not follow"
  • Regressions: at no step does a program that validates on main fail.
  • #397 does not merge on top of this stack (it is based on 31714de). I did not test it.
  • #81 gives the same 35 pixel fixes as #203; #203 covers 11 more (see #279).

Still failing with all five:

  • 195 Gs "an address in an SGPR that is no root parameter" (the merged ES+GS work, #381 and related);
  • 71 Ms over the 32 KiB output limit (#283 / #397);
  • 10 Ps "a hardware SGPR input";
  • 5 Cs "a descriptor read only as data";
  • 5 Cs the whole-wave step above;
  • 3 Ps "out of bound coord must be undef";
  • 2 Ps interpolation packing;
  • 1 Ps "an opaque lane mask".

In the title (RTX 5090 32 GB, driver 621.24; diagnostics builds; the same save restored before each run; VICTORY_KEYS Enter presses into the prologue; 240 s per run):

  • main logged 12 distinct shaders as "shader does not translate" (6 pixel, 6 compute).
  • The stack logged 4 (compute only), so the pixel ones are gone in the title too.
  • I am not claiming anything from per-frame dropped draws or screenshots. The two runs reached the world 18 s apart, the scripted presses then skipped different parts of the cutscene, and the scenes are not comparable.

Not tested: #397 with this stack; whether the new pixel shaders render correctly (visual check against a reference); AMD or Wine.

AI use: Claude Code with Claude Opus 5.5 reviewed the diffs, ran the builds, the validation and the title runs, and wrote this report.

**@⁠JRamos1993** on GitHub · 2026-11-25 01:20 UTC · [original](https://github.com/fxceless/victory-fork/issues/471) **Five open shader PRs stack cleanly on `2119b0e`. Together (#150, #112, #203, #25, #134) they validate 25,596 of the retail pack's 26,084 programs (98.1 %, up from 25,370), with no regressions at any step.** This is the shader-correctness side; #465 measures the performance PRs together. **Setup:** - Builds: `main` `2119b0e` with the PRs merged in the order below, all clean merges. - Toolchain: release, rustc 1.98.1 `x86_64-pc-windows-msvc`, on Windows 11 Pro 26200 with an i9-14900KF. - Command: `victory translate <game>\shaders.rpf --validate --list --jobs 16`, with `dxil.dll` from Windows SDK 10.0.26100.0. - I read every diff before building it. | step | validated | failing | what the step fixes | |---|---|---|---| | `main` `2119b0e` | 25,370 | 519 | | | + #150 + #112 | 25,509 | 380 | 72 signature mismatches, 67 of 70 interpolation-packing failures (details in #53) | | + #203 | 25,555 | 334 | 35 pixel "descriptor read only as data", 8 interpolation first halves, 2 16-bit wave sums, 1 descriptor format (details in #279) | | + #25 | 25,595 | 294 | all 40 "a descriptor chosen by control flow" (37 Ps, 3 Ms) | | + #134 | 25,596 | 293 | `v_permlanex16_b32`; its 5 `v_cvt_f32_f64` programs stop later, on "a whole-wave section step the simulation does not follow" | - **Regressions:** at no step does a program that validates on `main` fail. - **#397** does not merge on top of this stack (it is based on `31714de`). I did not test it. - **#81** gives the same 35 pixel fixes as #203; #203 covers 11 more (see #279). **Still failing with all five:** - 195 Gs "an address in an SGPR that is no root parameter" (the merged ES+GS work, #381 and related); - 71 Ms over the 32 KiB output limit (#283 / #397); - 10 Ps "a hardware SGPR input"; - 5 Cs "a descriptor read only as data"; - 5 Cs the whole-wave step above; - 3 Ps "out of bound coord must be undef"; - 2 Ps interpolation packing; - 1 Ps "an opaque lane mask". **In the title** (RTX 5090 32 GB, driver 621.24; diagnostics builds; the same save restored before each run; `VICTORY_KEYS` Enter presses into the prologue; 240 s per run): - `main` logged 12 distinct shaders as "shader does not translate" (6 pixel, 6 compute). - The stack logged 4 (compute only), so the pixel ones are gone in the title too. - I am not claiming anything from per-frame dropped draws or screenshots. The two runs reached the world 18 s apart, the scripted presses then skipped different parts of the cutscene, and the scenes are not comparable. **Not tested:** #397 with this stack; whether the new pixel shaders render correctly (visual check against a reference); AMD or Wine. AI use: Claude Code with Claude Opus 5.5 reviewed the diffs, ran the builds, the validation and the title runs, and wrote this report.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:44:05 +00:00
Author
Owner

@⁠JRamos1993 on GitHub · 2026-11-25 01:23 UTC · original

In-title follow-up, same two runs (main vs the five-PR stack): in the traced frames, the stack drops no pixel draws. main drops 11 in one of them. Nearly everything else the traces show as dropped is the ray-tracing structure builder, which is off.

VICTORY_CAPTURE_WORLD traces the frames 28 and 78 after the world starts (the frame-…-ops.txt files). Dropped operations by reason:

frame ray-tracing builder stages ("which is off") pixel draws (shader does not translate) refused compute pipelines untranslated compute
main, +28 2,379 0 4 1
main, +78 1,321 11 4 1
stack, +28 1,311 0 4 0
stack, +78 479 0 4 1

The scenes at those frames are not the same in the two runs (see above), so this shows what kinds of operations are dropped, not a like-for-like count. The camera is the same at the end of both runs, the standing scene after the cutscene. There, averaged over the last 8 per-frame log lines:

  • main: 1.59 fps, 4,970 draws, 382 "dropped without a host pipeline" per frame;
  • the stack: 1.68 fps, 4,935 draws, 349.

The fps difference is within the run-to-run spread #465 reports.

Two notes for anyone comparing "dropped" numbers:

  • In these traces, the dropped operations are almost all ray-tracing builder stages, not missing geometry.
  • The 29 "a pipeline creation method that is not implemented" warnings (device slot 0x218) appear in both runs. Per #113 the title falls back to the normal path for those.

Not claimed: whether the pixel shaders the stack now translates render correctly.

AI use: Claude Code with Claude Opus 5.5 ran the title, read the traces and wrote this.

**@⁠JRamos1993** on GitHub · 2026-11-25 01:23 UTC · [original](https://github.com/fxceless/victory-fork/issues/471#issuecomment-7149496911) **In-title follow-up, same two runs (`main` vs the five-PR stack):** in the traced frames, the stack drops no pixel draws. `main` drops 11 in one of them. Nearly everything else the traces show as dropped is the ray-tracing structure builder, which is off. `VICTORY_CAPTURE_WORLD` traces the frames 28 and 78 after the world starts (the `frame-…-ops.txt` files). Dropped operations by reason: | frame | ray-tracing builder stages ("which is off") | pixel draws (shader does not translate) | refused compute pipelines | untranslated compute | |---|---|---|---|---| | `main`, +28 | 2,379 | 0 | 4 | 1 | | `main`, +78 | 1,321 | **11** | 4 | 1 | | stack, +28 | 1,311 | 0 | 4 | 0 | | stack, +78 | 479 | **0** | 4 | 1 | The scenes at those frames are not the same in the two runs (see above), so this shows what kinds of operations are dropped, not a like-for-like count. The camera is the same at the end of both runs, the standing scene after the cutscene. There, averaged over the last 8 per-frame log lines: - `main`: 1.59 fps, 4,970 draws, 382 "dropped without a host pipeline" per frame; - the stack: 1.68 fps, 4,935 draws, 349. The fps difference is within the run-to-run spread #465 reports. Two notes for anyone comparing "dropped" numbers: - In these traces, the dropped operations are almost all ray-tracing builder stages, not missing geometry. - The 29 "a pipeline creation method that is not implemented" warnings (device slot `0x218`) appear in both runs. Per #113 the title falls back to the normal path for those. **Not claimed:** whether the pixel shaders the stack now translates render correctly. AI use: Claude Code with Claude Opus 5.5 ran the title, read the traces and wrote this.
Author
Owner

@⁠JRamos1993 on GitHub · 2026-11-25 06:15 UTC · original

Update on current main (310c6eb): seven open PRs merge cleanly together and take the retail pack from 25,382 to 25,618 validated programs, with none lost. After them, only 76 programs still fail, plus the 195 geometry programs that #400 translates at pipeline time.

This replaces the stack in the opening post. #150 and #112 there are now covered by #699; #134 conflicts with this set.

Setup: RTX 5090, Windows 11. victory translate --validate --list over the title's full shader pack (26,084 programs). Each PR alone, and then the set, merged onto main. I added a local DXIL hash on each validated line to tell "changed" from "same".

PR what alone: newly validated lost other programs' DXIL changed
#699 signature element order, one interpolation mode per row +142 (= main's 72 signature and 70 interpolation failures) 0 0
#25 immediate samplers chosen by control flow +40 0 0
#203 descriptors read only as data, and more +38 0 0
#215 ordered pixel shading (POPS) as ROVs +10 0 59 (compute)
#702 paired dword mask copies +3 0 2
#260 calculateLOD spatial coordinates only +3 0 0
#400 the merged ES+GS stage (geometry) 0 in the batch tool (see below) 0 0
all seven +236 → 25,618 (98.2 %) 0 61

#400 in this set: merged with the other six (its head 10f4c02), the batch tool still traces the resources and raises the I/O of all 195 geometry programs. My local pair harness (each GS container with the ES containers of its name, through emit::translate_merged_gs) translates all 195 pairs. Their vertex and geometry DXIL is byte-identical to #400 alone, where all 195 validate and make vertex+geometry+pixel host pipelines on this GPU (details on #400). So #699's signature changes don't disturb the geometry path.

What still fails with all seven (of 26,084):

  • 195 geometry programs on their own line: by design, the batch tool cannot pair them with their ES half. They pair at pipeline time (above).
  • 71 mesh programs over the 32 KB vertex-plus-primitive output limit (#283, #397).
  • 5 compute programs with "a descriptor read only as data".

Measured but not in the set:

  • #713 loses 1,289 programs ("a lane mask holding lanes elsewhere read as data"). I posted the details there.
  • #722 is a subset of #699 (its 22 programs are among #699's 142).
  • #653, #657, #658, #677, #678, #712 and #714 change no emitted shader of this title.

AI use: Claude Code with Claude Opus 5.5 ran the builds over the pack and wrote this. Nothing from the title is in it.

**@⁠JRamos1993** on GitHub · 2026-11-25 06:15 UTC · [original](https://github.com/fxceless/victory-fork/issues/471#issuecomment-7154613402) **Update on current `main` (`310c6eb`): seven open PRs merge cleanly together and take the retail pack from 25,382 to 25,618 validated programs, with none lost. After them, only 76 programs still fail, plus the 195 geometry programs that #400 translates at pipeline time.** This replaces the stack in the opening post. #150 and #112 there are now covered by #699; #134 conflicts with this set. **Setup:** RTX 5090, Windows 11. `victory translate --validate --list` over the title's full shader pack (26,084 programs). Each PR alone, and then the set, merged onto `main`. I added a local DXIL hash on each validated line to tell "changed" from "same". | PR | what | alone: newly validated | lost | other programs' DXIL changed | |---|---|---|---|---| | #699 | signature element order, one interpolation mode per row | +142 (= `main`'s 72 signature and 70 interpolation failures) | 0 | 0 | | #25 | immediate samplers chosen by control flow | +40 | 0 | 0 | | #203 | descriptors read only as data, and more | +38 | 0 | 0 | | #215 | ordered pixel shading (POPS) as ROVs | +10 | 0 | 59 (compute) | | #702 | paired dword mask copies | +3 | 0 | 2 | | #260 | `calculateLOD` spatial coordinates only | +3 | 0 | 0 | | #400 | the merged ES+GS stage (geometry) | 0 in the batch tool (see below) | 0 | 0 | | **all seven** | | **+236 → 25,618 (98.2 %)** | **0** | 61 | **#400 in this set:** merged with the other six (its head `10f4c02`), the batch tool still traces the resources and raises the I/O of all 195 geometry programs. My local pair harness (each GS container with the ES containers of its name, through `emit::translate_merged_gs`) translates all 195 pairs. Their vertex and geometry DXIL is byte-identical to #400 alone, where all 195 validate and make vertex+geometry+pixel host pipelines on this GPU (details on #400). So #699's signature changes don't disturb the geometry path. **What still fails with all seven** (of 26,084): - 195 geometry programs on their own line: by design, the batch tool cannot pair them with their ES half. They pair at pipeline time (above). - 71 mesh programs over the 32 KB vertex-plus-primitive output limit (#283, #397). - 5 compute programs with "a descriptor read only as data". **Measured but not in the set:** - #713 loses 1,289 programs ("a lane mask holding lanes elsewhere read as data"). I posted the details there. - #722 is a subset of #699 (its 22 programs are among #699's 142). - #653, #657, #658, #677, #678, #712 and #714 change no emitted shader of this title. AI use: Claude Code with Claude Opus 5.5 ran the builds over the pack and wrote this. Nothing from the title is in it.
Author
Owner

@⁠JRamos1993 on GitHub · 2026-11-25 06:41 UTC · original

In-game check of the seven-PR set above. main 310c6eb against the same tree with #699, #25, #203, #215, #702, #260 and #400 merged, both as diagnostics builds.

Setup: RTX 5090, driver 621.24, Windows 11. One 300 s run each: the same save restored before each run, the same scripted presses into the prologue, captures on. Both runs entered the world 124 s after start.

main the set
shaders logged "does not translate" 6 1
ERROR lines / device removed 0 / 0 0 / 0
last fps line 4.2 fps 4.6 fps
  • Now translating with the set: the 3 pixel programs "a descriptor read only as data" (7d0f14ce44746d7e, 2fd01fca16993001, 6b6db9f1a526daeb, the material programs discussed on #279), and 2 compute programs ("a descriptor's address or format read as data", "a lane mask holding lanes elsewhere read as data").
  • Still failing: f133e35efed2a48a, "a lane mask exchanged where not every lane runs". It only appears with the runtime's 32-lane host waves on this GPU; the batch tool's defaults don't show it.
  • On screen: in the end-of-run window shot, at 110 s and 150 s into the world in both runs, the character's hair and shirt are textured with the set. On main they look washed out and dark. That fits the material programs above. It is two frames from one run each, so it shows what changes, not a measurement. No frames are posted.
  • Not reached: no geometry pipeline was created (as #400 found, this scene does not reach those programs), and neither did the POPS or sampler-phi programs. The 300 s runs end in the same scene as the earlier ones.

AI use: Claude Code with Claude Opus 5.5 built both trees, ran the title and compared the logs and frames on my machine. Nothing from the title is in this comment beyond shader hashes already named on #279.

**@⁠JRamos1993** on GitHub · 2026-11-25 06:41 UTC · [original](https://github.com/fxceless/victory-fork/issues/471#issuecomment-7155065458) **In-game check of the seven-PR set above.** `main` `310c6eb` against the same tree with #699, #25, #203, #215, #702, #260 and #400 merged, both as diagnostics builds. **Setup:** RTX 5090, driver 621.24, Windows 11. One 300 s run each: the same save restored before each run, the same scripted presses into the prologue, captures on. Both runs entered the world 124 s after start. | | `main` | the set | |---|---|---| | shaders logged "does not translate" | 6 | **1** | | `ERROR` lines / device removed | 0 / 0 | 0 / 0 | | last fps line | 4.2 fps | 4.6 fps | - **Now translating with the set:** the 3 pixel programs "a descriptor read only as data" (`7d0f14ce44746d7e`, `2fd01fca16993001`, `6b6db9f1a526daeb`, the material programs discussed on #279), and 2 compute programs ("a descriptor's address or format read as data", "a lane mask holding lanes elsewhere read as data"). - **Still failing:** `f133e35efed2a48a`, "a lane mask exchanged where not every lane runs". It only appears with the runtime's 32-lane host waves on this GPU; the batch tool's defaults don't show it. - **On screen:** in the end-of-run window shot, at 110 s and 150 s into the world in both runs, the character's hair and shirt are textured with the set. On `main` they look washed out and dark. That fits the material programs above. It is two frames from one run each, so it shows what changes, not a measurement. No frames are posted. - **Not reached:** no geometry pipeline was created (as #400 found, this scene does not reach those programs), and neither did the POPS or sampler-phi programs. The 300 s runs end in the same scene as the earlier ones. AI use: Claude Code with Claude Opus 5.5 built both trees, ran the title and compared the logs and frames on my machine. Nothing from the title is in this comment beyond shader hashes already named on #279.
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#471
No description provided.