main: 867 vertex programs fail validation ("Flags must match usage") since cd94d35 #1973

Open
opened 2026-11-26 04:50:26 +00:00 by github-bot · 10 comments
Owner

@⁠zed6000 on GitHub · 2026-11-25 02:07 UTC · original

Since cd94d35 ("GPU: shaders mark the pages they write through views; copy-backs compare only those"), 867 vertex programs that validated before now fail DXIL validation with:

validator: error: Flags must match usage.

I measured offline with victory translate --validate --list over shaders.rpf from a retail 1.0.2.1 dump (dxil.dll 1.8.2502) and compared program by program, the same method as #1247:

Build Validated Change
ccfb029 (parent of cd94d35) 24,785
cd94d35 23,918 −867, all vertex programs, 0 gained
main 940d32f 23,918 unchanged since cd94d35

No other program changes outcome. cargo test -p victory-shader --lib still passes (247/0 on an RX 7900 XTX), so the unit tests don't catch it.

Likely cause (a reading of the error, not verified in the code): with this commit, vertex programs write through views, which means UAV writes from the vertex stage. DXIL requires such a module to declare the corresponding shader flag ("UAVs at every shader stage"). The validator recomputes the flags from the module and rejects it when the declared ones don't match. Setting that flag when a non-pixel, non-compute stage writes a UAV may be all it needs.

These are validator rejections. As with the other validator-only failures in #201 / #1247, a driver may still accept the pipelines, but the modules are invalid DXIL. Offline counts only; no program names or data, per the asset policy.

**@⁠zed6000** on GitHub · 2026-11-25 02:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973) Since `cd94d35` ("GPU: shaders mark the pages they write through views; copy-backs compare only those"), **867 vertex programs that validated before now fail DXIL validation** with: ``` validator: error: Flags must match usage. ``` I measured offline with `victory translate --validate --list` over `shaders.rpf` from a retail 1.0.2.1 dump (dxil.dll 1.8.2502) and compared program by program, the same method as #1247: | Build | Validated | Change | |---|---|---| | `ccfb029` (parent of `cd94d35`) | 24,785 | | | `cd94d35` | 23,918 | **−867, all vertex programs, 0 gained** | | main `940d32f` | 23,918 | unchanged since `cd94d35` | No other program changes outcome. `cargo test -p victory-shader --lib` still passes (247/0 on an RX 7900 XTX), so the unit tests don't catch it. **Likely cause (a reading of the error, not verified in the code):** with this commit, vertex programs write through views, which means UAV writes from the vertex stage. DXIL requires such a module to declare the corresponding shader flag ("UAVs at every shader stage"). The validator recomputes the flags from the module and rejects it when the declared ones don't match. Setting that flag when a non-pixel, non-compute stage writes a UAV may be all it needs. These are validator rejections. As with the other validator-only failures in #201 / #1247, a driver may still accept the pipelines, but the modules are invalid DXIL. Offline counts only; no program names or data, per the asset policy.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:50:26 +00:00
Author
Owner

@⁠BastienRodz on GitHub · 2026-11-25 02:11 UTC · original

Taking this. The plan: UAVsAtEveryStage (ShaderFlags bit 16, with its SFI0 feature bit) set when a non-pixel, non-compute stage uses a UAV, as DXC computes it, plus a synthetic vertex-program test. I'll ask you to recheck the 867 with your offline method once the PR is up.

**@⁠BastienRodz** on GitHub · 2026-11-25 02:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7150431576) Taking this. The plan: `UAVsAtEveryStage` (ShaderFlags bit 16, with its SFI0 feature bit) set when a non-pixel, non-compute stage uses a UAV, as DXC computes it, plus a synthetic vertex-program test. I'll ask you to recheck the 867 with your offline method once the PR is up.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-25 02:12 UTC · original

Tested fix. Declaring "UAVs at every stage" when a vertex or geometry program uses a UAV restores all 867. On main 940d32f, with the patch below:

Build Change
940d32f + patch vs 940d32f +867, 0 lost
940d32f + patch vs ccfb029 (before cd94d35) 0 gained, 0 lost (back to 24,785)

cargo test -p victory-shader --lib gives 247 passed and 0 failed on an RX 7900 XTX. Clippy with -D warnings is clean with and without --all-features. The patch sets DXIL shader flag bit 16 (UAVsAtEveryStage) and the matching SFI0 feature bit 0x4 when a program that is not pixel, compute or mesh has root UAVs or one of the new written-pages handles:

diff --git a/crates/victory-shader/src/emit/shader.rs b/crates/victory-shader/src/emit/shader.rs
index e68e2627..d3cf65ce 100644
--- a/crates/victory-shader/src/emit/shader.rs
+++ b/crates/victory-shader/src/emit/shader.rs
@@ -46,6 +46,8 @@ pub(crate) mod flags {
     pub const RAW_BUFFERS: u64 = 1 << 4;
     pub const STENCIL_REF: u64 = 1 << 11;
     pub const TYPED_UAV_LOADS: u64 = 1 << 13;
+    /// UAVs outside the pixel and compute stages (DXIL shader flag 16).
+    pub const UAVS_AT_EVERY_STAGE: u64 = 1 << 16;
     pub const ROVS: u64 = 1 << 18;
     pub const WAVE_OPS: u64 = 1 << 19;
     pub const INT64: u64 = 1 << 20;
@@ -737,6 +739,18 @@ impl Shader {
             self.m.named_md("dx.resources", vec![r]);
         }
 
+        // A vertex or geometry program that reads or writes a UAV (root
+        // UAVs, or the written-pages bitmaps that mark writes) declares
+        // UAVs at every stage, as the validator recomputes it.
+        let vertex_like = !self.pixel && self.threads.is_none() && self.mesh.is_none();
+        if vertex_like
+            && (!self.root_uavs.is_empty()
+                || self.memory_dirty.is_some()
+                || self.view_marks.is_some()
+                || self.view_writes.is_some())
+        {
+            self.flags |= flags::UAVS_AT_EVERY_STAGE;
+        }
         let graphics = self.threads.is_none() || self.mesh.is_some();
         if graphics {
             // shortcut: every output is declared to depend on every input; the
@@ -879,6 +893,9 @@ impl Shader {
         dxil.extend(&bitcode);
 
         let mut features = 0u64;
+        if self.flags & flags::UAVS_AT_EVERY_STAGE != 0 {
+            features |= 0x4;
+        }
         if self.flags & flags::STENCIL_REF != 0 {
             features |= 0x200;
         }

The condition covers the UAVs this converter gives vertex-like stages today: root UAVs and the page and view-mark bitmaps. A typed UAV from the heap in a vertex program would need the same flag, if that ever happens. Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-25 02:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7150434071) **Tested fix.** Declaring "UAVs at every stage" when a vertex or geometry program uses a UAV restores all 867. On main `940d32f`, with the patch below: | Build | Change | |---|---| | `940d32f` + patch vs `940d32f` | **+867, 0 lost** | | `940d32f` + patch vs `ccfb029` (before `cd94d35`) | 0 gained, 0 lost (back to 24,785) | `cargo test -p victory-shader --lib` gives 247 passed and 0 failed on an RX 7900 XTX. Clippy with `-D warnings` is clean with and without `--all-features`. The patch sets DXIL shader flag bit 16 (`UAVsAtEveryStage`) and the matching `SFI0` feature bit `0x4` when a program that is not pixel, compute or mesh has root UAVs or one of the new written-pages handles: ```diff diff --git a/crates/victory-shader/src/emit/shader.rs b/crates/victory-shader/src/emit/shader.rs index e68e2627..d3cf65ce 100644 --- a/crates/victory-shader/src/emit/shader.rs +++ b/crates/victory-shader/src/emit/shader.rs @@ -46,6 +46,8 @@ pub(crate) mod flags { pub const RAW_BUFFERS: u64 = 1 << 4; pub const STENCIL_REF: u64 = 1 << 11; pub const TYPED_UAV_LOADS: u64 = 1 << 13; + /// UAVs outside the pixel and compute stages (DXIL shader flag 16). + pub const UAVS_AT_EVERY_STAGE: u64 = 1 << 16; pub const ROVS: u64 = 1 << 18; pub const WAVE_OPS: u64 = 1 << 19; pub const INT64: u64 = 1 << 20; @@ -737,6 +739,18 @@ impl Shader { self.m.named_md("dx.resources", vec![r]); } + // A vertex or geometry program that reads or writes a UAV (root + // UAVs, or the written-pages bitmaps that mark writes) declares + // UAVs at every stage, as the validator recomputes it. + let vertex_like = !self.pixel && self.threads.is_none() && self.mesh.is_none(); + if vertex_like + && (!self.root_uavs.is_empty() + || self.memory_dirty.is_some() + || self.view_marks.is_some() + || self.view_writes.is_some()) + { + self.flags |= flags::UAVS_AT_EVERY_STAGE; + } let graphics = self.threads.is_none() || self.mesh.is_some(); if graphics { // shortcut: every output is declared to depend on every input; the @@ -879,6 +893,9 @@ impl Shader { dxil.extend(&bitcode); let mut features = 0u64; + if self.flags & flags::UAVS_AT_EVERY_STAGE != 0 { + features |= 0x4; + } if self.flags & flags::STENCIL_REF != 0 { features |= 0x200; } ``` The condition covers the UAVs this converter gives vertex-like stages today: root UAVs and the page and view-mark bitmaps. A typed UAV from the heap in a vertex program would need the same flag, if that ever happens. Offline counts only; no program names or data.
Author
Owner

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

VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

**@⁠DesertGamer** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7150748374) ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Author
Owner

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

PR: #1989 (UAVsAtEveryStage and SFI0 0x4 for non-pixel, non-compute stages with a declared UAV, as DXC collects them below validator 1.8). Could you rerun your offline translate --validate count on its branch, BastienRodz:shader/uavs-at-every-stage, to confirm the 867 come back?

**@⁠BastienRodz** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7150755690) PR: #1989 (`UAVsAtEveryStage` and SFI0 `0x4` for non-pixel, non-compute stages with a declared UAV, as DXC collects them below validator 1.8). Could you rerun your offline `translate --validate` count on its branch, `BastienRodz:shader/uavs-at-every-stage`, to confirm the 867 come back?
Author
Owner

@⁠Dathinel on GitHub · 2026-11-25 02:37 UTC · original

The two candidate fixes agree on the synthetic vertex shader. The mesh shader distinguishes them. I ran the same fixture from #1989 against all three revisions on native Windows, requiring dxil.dll validation for each emitted module.

Synthetic shader main 940d32f #1977 e3cefe5 #1989 0f11320
Vertex, view marks enabled Flags must match usage Pass Pass
Mesh, view marks enabled Flags must match usage Flags must match usage Pass
Vertex and mesh, view marks disabled Both pass Both pass Both pass
Pixel and compute, view marks enabled Both pass Both pass Both pass

On the failing mesh case the validator reported declared flags 0x40000010, expected 0x40010010. The missing bit is 16. The corresponding SFI0 feature bit 0x4 was also clear. As a control on #1977, changing only the stage predicate to !self.pixel && (self.threads.is_none() || self.mesh.is_some()) made all six cases pass.

To reproduce, use emit::tests::vertex_uav_writes_declare_uavs_at_every_stage from #1989 and require the validator load in its translate_stage helper. I also ran the mesh fixture with view_marks: false. All runs used the same Windows SDK 10.0.26100.0 x64 validator (file version 1.8.2502.11, SHA-256 prefix 77e039c905030a64).

AI-assisted. This comparison covers synthetic DXIL validation. The requested 867-program corpus recheck remains with the reporter.

**@⁠Dathinel** on GitHub · 2026-11-25 02:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7150966924) The two candidate fixes agree on the synthetic vertex shader. The mesh shader distinguishes them. I ran the same fixture from #1989 against all three revisions on native Windows, requiring `dxil.dll` validation for each emitted module. | Synthetic shader | main `940d32f` | #1977 `e3cefe5` | #1989 `0f11320` | |---|---|---|---| | Vertex, view marks enabled | Flags must match usage | Pass | Pass | | Mesh, view marks enabled | Flags must match usage | Flags must match usage | Pass | | Vertex and mesh, view marks disabled | Both pass | Both pass | Both pass | | Pixel and compute, view marks enabled | Both pass | Both pass | Both pass | On the failing mesh case the validator reported declared flags `0x40000010`, expected `0x40010010`. The missing bit is 16. The corresponding SFI0 feature bit `0x4` was also clear. As a control on #1977, changing only the stage predicate to `!self.pixel && (self.threads.is_none() || self.mesh.is_some())` made all six cases pass. To reproduce, use `emit::tests::vertex_uav_writes_declare_uavs_at_every_stage` from #1989 and require the validator load in its `translate_stage` helper. I also ran the mesh fixture with `view_marks: false`. All runs used the same Windows SDK 10.0.26100.0 x64 validator (file version 1.8.2502.11, SHA-256 prefix `77e039c905030a64`). AI-assisted. This comparison covers synthetic DXIL validation. The requested 867-program corpus recheck remains with the reporter.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-25 02:41 UTC · original

The real-data recheck is done, on #1989 itself: head 0f11320 on 940d32f gives +867, 0 lost, identical to before cd94d35 (comment).

@⁠Dathinel thanks, that's a correction to my patch above. Like #1977, it left mesh programs out (self.mesh.is_none()), so it misses the mesh case your fixture shows. On this title no mesh program has view marks or root UAVs today, which is why both give the same 867 here. #1989 is the complete fix; mine shouldn't be used.

**@⁠zed6000** on GitHub · 2026-11-25 02:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7151053253) The real-data recheck is done, on #1989 itself: head `0f11320` on `940d32f` gives **+867, 0 lost**, identical to before `cd94d35` ([comment](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1989)). @⁠Dathinel thanks, that's a correction to my patch above. Like #1977, it left mesh programs out (`self.mesh.is_none()`), so it misses the mesh case your fixture shows. On this title no mesh program has view marks or root UAVs today, which is why both give the same 867 here. **#1989 is the complete fix;** mine shouldn't be used.
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 03:32 UTC · original

Corpus recheck on a third vendor/fourth machine, as Dathinel asked: release build of #1989 (0f11320), victory translate … --validate --list over the 1.0.2.1 shaders.rpf on Windows 10 / RX 7800 XT:

  • main 940d32f: 23,918 validated, 868 Flags must match usage lines (867 programs + summary).
  • 0f11320: 24,785 validated, 0.

+867, 0 lost, matching your table and zed6000's. Validator here is the SDK 10.0.26100.0 dxil.dll (1.7), so the PSV0 false failures are present at the same rate in both runs and cancel out.

**@⁠Calvix2k** on GitHub · 2026-11-25 03:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7152011835) Corpus recheck on a third vendor/fourth machine, as Dathinel asked: release build of #1989 (`0f11320`), `victory translate … --validate --list` over the 1.0.2.1 `shaders.rpf` on Windows 10 / RX 7800 XT: - `main 940d32f`: 23,918 validated, 868 `Flags must match usage` lines (867 programs + summary). - `0f11320`: 24,785 validated, 0. +867, 0 lost, matching your table and zed6000's. Validator here is the SDK 10.0.26100.0 `dxil.dll` (1.7), so the PSV0 false failures are present at the same rate in both runs and cancel out.
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-25 04:55 UTC · original

Independent offline re-check of both candidates, same method as the report: victory translate shaders.rpf --validate --list over a retail 1.0.2.1 dump. Both restore the full 867 and they are indistinguishable in outcome.

Build validated vs 940d32f programs lost
940d32f (baseline) 23,918 - -
this PR #2016 (3d6a54f) 24,785 +867 0
PR #1989 (0f11320) 24,785 +867 0

Checks beyond the total:

  • the sets of validated programs from the two PRs are identical (no program differs), so the choice between them is about the code, not the outcome;
  • against the baseline, exactly the 867 return and nothing else changes - comm on the sorted program lists gives +867 and -0;
  • the 867 failures in the baseline are all the same shape (Flags must match usage.), and they disappear in both.

Environment, since it differs from the original report: Linux + Wine 11.22, x86_64-pc-windows-gnu release, dxil.dll 1.9.2609.5 (the report used 1.8.2502), retail shaders.rpf 411,695,600 B / 26,503 containers. So the validator version is newer than yours; the numbers landed on the same 23,918 -> 24,785.

Wall time, for what it is worth: 138.7 s baseline, 169.6 s #2016, 215.8 s #1989 (single runs, not controlled).

I have no stake in either implementation; from here they are equivalent on this dump.

**@⁠YaBulochka** on GitHub · 2026-11-25 04:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7153293254) Independent offline re-check of both candidates, same method as the report: `victory translate shaders.rpf --validate --list` over a retail 1.0.2.1 dump. Both restore the full 867 and they are indistinguishable in outcome. | Build | validated | vs `940d32f` | programs lost | |---|---|---:|---:| | `940d32f` (baseline) | 23,918 | - | - | | this PR #2016 (`3d6a54f`) | **24,785** | +867 | **0** | | PR #1989 (`0f11320`) | **24,785** | +867 | **0** | Checks beyond the total: - the sets of validated programs from the two PRs are **identical** (no program differs), so the choice between them is about the code, not the outcome; - against the baseline, exactly the 867 return and **nothing else changes** - `comm` on the sorted program lists gives +867 and -0; - the 867 failures in the baseline are all the same shape (`Flags must match usage.`), and they disappear in both. Environment, since it differs from the original report: Linux + Wine 11.22, `x86_64-pc-windows-gnu` release, `dxil.dll` 1.9.2609.5 (the report used 1.8.2502), retail `shaders.rpf` 411,695,600 B / 26,503 containers. So the validator version is newer than yours; the numbers landed on the same 23,918 -> 24,785. Wall time, for what it is worth: 138.7 s baseline, 169.6 s #2016, 215.8 s #1989 (single runs, not controlled). I have no stake in either implementation; from here they are equivalent on this dump.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:46 UTC · original · edited 2026-11-25 18:45 UTC

Automated triage for the maintainers.

Fixed in main by a1a2077 ("Shaders: vertex, geometry and mesh programs with UAVs say so in their flags"). In crates/victory-shader/src/emit/shader.rs, flags::UAVS_EVERY_STAGE (bit 16) is now defined. Shader::finish sets it for any program that is neither pixel nor compute (vertex, geometry and mesh) when it declares a UAV range: root UAVs, the memory bitmap or the view-write bitmap. The SFI0 word gets 0x4 with it. This is the same pair of bits #1989 and #2016 add, and mesh programs are covered too. The test is emit::shader::tests::uavs_outside_pixel_and_compute_programs_are_declared.

New since the last triage: a per-program recount on an RTX 4090 (940d32f → 67e8ae1) confirms the fix on real data. All 867 vertex programs that failed with Flags must match usage validate again, and none were lost. Vertex and pixel programs now validate 14,242 of 14,242. The other 61 programs restored in that range come from unrelated translator changes. No mesh program on this title hit the message, so the mesh half is covered only by the synthetic test.

#1989 has been closed. #2016 is still open and is superseded by this commit except for its note: line in translate --validate.

Proposed close as fixed in main (a1a2077), now independently confirmed. #1987 reports the same regression. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7162840853) · edited 2026-11-25 18:45 UTC <!-- victory-issue-triage v1 verdict=proposed-close seen=2026-11-25T18:02:40Z at=2026-11-25T18:58:00Z --> Automated triage for the maintainers. Fixed in `main` by a1a2077 ("Shaders: vertex, geometry and mesh programs with UAVs say so in their flags"). In `crates/victory-shader/src/emit/shader.rs`, `flags::UAVS_EVERY_STAGE` (bit 16) is now defined. `Shader::finish` sets it for any program that is neither pixel nor compute (vertex, geometry and mesh) when it declares a UAV range: root UAVs, the memory bitmap or the view-write bitmap. The `SFI0` word gets `0x4` with it. This is the same pair of bits #1989 and #2016 add, and mesh programs are covered too. The test is `emit::shader::tests::uavs_outside_pixel_and_compute_programs_are_declared`. New since the last triage: a per-program recount on an RTX 4090 (`940d32f` → `67e8ae1`) confirms the fix on real data. All 867 vertex programs that failed with `Flags must match usage` validate again, and none were lost. Vertex and pixel programs now validate 14,242 of 14,242. The other 61 programs restored in that range come from unrelated translator changes. No mesh program on this title hit the message, so the mesh half is covered only by the synthetic test. #1989 has been closed. #2016 is still open and is superseded by this commit except for its `note:` line in `translate --validate`. Proposed close as fixed in `main` (a1a2077), now independently confirmed. #1987 reports the same regression. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-25 18:02 UTC · original

Stage-and-cause breakdown of what the merge burst restored, from per-program before/after on this host (RTX 4090, DXC 1.8.2502 validator, shaders.rpf, 26,084 programs, 940d32f → 67e8ae1). 928 programs newly validate, 0 lost. Every one of the 928 was already present in the earlier listing under a different failure, so this attributes the gain rather than just counting it:

restored previous failure cause
867 vertex validator: Flags must match usage cd94d35 / fixed by a1a2077
34 pixel emit: a descriptor read only as data a translator change in this range
16 compute emit: a register joining a lane mask and data, read as data a translator change in this range
4 compute emit: a lane-mask join of an untracked mask a translator change in this range
1 pixel emit: barycentrics read directly #442's subject, appears resolved here
remaining 6 assorted one-off

So the aggregate "+928 validated" is not one fix: 867 of it is the view-mark flag regression and 61 is unrelated translator work. Two consequences:

  • The mesh half of the class does not exist on this title. All 867 Flags must match usage failures were vertex programs; zero mesh and zero pixel programs carried that message before the fix. That doesn't contradict Dathinel's synthetic mesh fixture — it means this title never reaches the mesh case, so a reviewer cannot settle #1977 versus #1989 on real data here and should rely on the fixture.
  • The requested recount on current main should read 14,242 of 14,242 vertex and pixel programs validated, and the 37 pixel figure above is why a vertex-only expectation of 2,191 will look wrong when checked stage by stage.

Geometry: all 195 Gs programs fail at resources: an address in an SGPR that is no root parameter identically at both revisions and never reach validation, so the "geometry" in a1a2077's title is preventative on this title, not a measured recovery.

**@⁠reboot0000-cmd** on GitHub · 2026-11-25 18:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/1973#issuecomment-7170358774) Stage-and-cause breakdown of what the merge burst restored, from per-program before/after on this host (RTX 4090, DXC 1.8.2502 validator, `shaders.rpf`, 26,084 programs, `940d32f` → `67e8ae1`). **928 programs newly validate, 0 lost.** Every one of the 928 was already present in the earlier listing under a different failure, so this attributes the gain rather than just counting it: | restored | previous failure | cause | |---:|---|---| | **867 vertex** | `validator: Flags must match usage` | `cd94d35` / fixed by `a1a2077` | | **34 pixel** | `emit: a descriptor read only as data` | a translator change in this range | | **16 compute** | `emit: a register joining a lane mask and data, read as data` | a translator change in this range | | 4 compute | `emit: a lane-mask join of an untracked mask` | a translator change in this range | | 1 pixel | `emit: barycentrics read directly` | #442's subject, appears resolved here | | remaining 6 | assorted | one-off | So the aggregate "+928 validated" is **not** one fix: 867 of it is the view-mark flag regression and 61 is unrelated translator work. Two consequences: - **The mesh half of the class does not exist on this title.** All 867 `Flags must match usage` failures were vertex programs; zero mesh and zero pixel programs carried that message before the fix. That doesn't contradict Dathinel's synthetic mesh fixture — it means this title never reaches the mesh case, so a reviewer cannot settle `#1977` versus `#1989` on real data here and should rely on the fixture. - **The requested recount on current `main` should read 14,242 of 14,242** vertex and pixel programs validated, and the `37 pixel` figure above is why a vertex-only expectation of 2,191 will look wrong when checked stage by stage. Geometry: all 195 `Gs` programs fail at `resources: an address in an SGPR that is no root parameter` identically at both revisions and never reach validation, so the "geometry" in `a1a2077`'s title is preventative on this title, not a measured recovery.
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/Marvisak--VIctory#1973
No description provided.