Corpus census: 185 emitted DXIL modules fail dxil.dll validation #201

Open
opened 2026-11-24 01:23:11 +00:00 by Proudnoob4 · 34 comments
Proudnoob4 commented 2026-11-24 01:23:11 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by Proudnoob4 on 2026-11-24T01:23:11Z.


Summary

I ran victory translate --validate --pipelines --list over the 26,503 DXBC containers extracted from my own 1.0.2.1 copy, on main 97c78d1 + the Agility exports from #84 (RTX 4080, driver 621.01). AI-assisted (Claude); I ran the translation and grouped the results myself.

All 26,084 programs translate. DXIL is emitted for 12,272 / 14,001 VS/PS, 1,685 / 2,581 compute and 8,191 / 8,506 mesh. 185 of the emitted modules fail validation with dxil.dll 1.8.2502 (from Windows SDK 10.0.26100):

Stage Validator failures
Pixel 68
Mesh 62
Vertex 32
Compute 23

Grouped by reason:

  • 53 — vertex plus primitive output size is greater than 32768 (mesh)
  • 49 — interpolation modes disagree between elements packed into the same signature row
  • 46 — Container part 'Program Input/Output Signature' does not match expected for module (25 output, 21 input)
  • 23 — Entry function performs some operation that is incompatible with the shader stage (compute)
  • 14 — PS input position interpolation must be linear_noperspective_centroid / sample when writing oDepthGE / oDepthLE

Notably, the D3D12 runtime still created host pipelines for all of the VS/PS and mesh modules: 12,272/12,272 VS/PS and 8,191/8,191 mesh. So these are validator rejections, not driver rejections, and the game may still be fine with them. I haven't checked whether any of the 185 are among the shaders actually bound in my runs. The full per-shader output is too large to post, but I can extract any specific group.

For contrast, the driver's refusals are a separate matter: 321 compute pipelines with E_INVALIDARG, cross-tabulated in my #71 comment.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6572456565 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-24T01:23:11Z. --- ### Summary I ran `victory translate --validate --pipelines --list` over the 26,503 DXBC containers extracted from my own 1.0.2.1 copy, on main `97c78d1` + the Agility exports from #84 (RTX 4080, driver 621.01). AI-assisted (Claude); I ran the translation and grouped the results myself. All 26,084 programs translate. DXIL is emitted for 12,272 / 14,001 VS/PS, 1,685 / 2,581 compute and 8,191 / 8,506 mesh. **185 of the emitted modules fail validation** with `dxil.dll` 1.8.2502 (from Windows SDK 10.0.26100): | Stage | Validator failures | |---|---:| | Pixel | 68 | | Mesh | 62 | | Vertex | 32 | | Compute | 23 | Grouped by reason: - 53 — `vertex plus primitive output size is greater than 32768` (mesh) - 49 — interpolation modes disagree between elements packed into the same signature row - 46 — `Container part 'Program Input/Output Signature' does not match expected for module` (25 output, 21 input) - 23 — `Entry function performs some operation that is incompatible with the shader stage` (compute) - 14 — PS input position interpolation must be `linear_noperspective_centroid` / `sample` when writing `oDepthGE` / `oDepthLE` Notably, the D3D12 runtime still created host pipelines for **all** of the VS/PS and mesh modules: 12,272/12,272 VS/PS and 8,191/8,191 mesh. So these are validator rejections, not driver rejections, and the game may still be fine with them. I haven't checked whether any of the 185 are among the shaders actually bound in my runs. The full per-shader output is too large to post, but I can extract any specific group. For contrast, the driver's refusals are a separate matter: 321 compute pipelines with `E_INVALIDARG`, cross-tabulated in [my #71 comment](https://github.com/Marvisak/VIctory/issues/71#issuecomment-7119040508).
DaviTostes commented 2026-11-24 06:55:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T02:03:40Z.


Ran the synthetic shader suite against a real validator to see which groups reproduce on current main (d2a4bae):

  • Environment: Windows build under Wine 11.22, VICTORY_DXIL pointing at dxil.dll 1.8.2502, cargo test -p victory-shader with --test-threads=1.
  • Result: 68 passed, 1 failed. The failure is emit::tests::stub_pipeline_is_created, and only because vkd3d-proton accepts a zeroed container digest (the digest-rejection check); it is not a translator/validator failure.
  • emit::tests::constant_color_validates passes, so the validator is actually loaded and validating (no "no dxil.dll; skipped" message).

One code observation on the groups:

  • The 14 PS input position interpolation must be linear_noperspective_centroid / sample failures: emit/mod.rs already sets every pixel-shader position input (kind == 3) to interpolation mode 4 ((3, _) => 4, present since the initial import, before the census commit). So either those modules' position is not kind == 3, or the failure comes from a row that mixes modes (the same shape as the 49 "interpolation modes disagree" group).
  • The 49 and 46 groups look like the packed-row/signature area #176 is working on, so I would not duplicate that.

To reproduce the remaining unowned groups synthetically (53 mesh output size, 23 compute stage-incompatible ops, and the 14 if they persist), could you share the signature layout of one failing module — semantic names, kinds, rows/cols, component types, interpolation — rather than the shader bytes? That is enough to build the same container layout in a test and validate it. With victory translate --validate --list you can also tell whether the 14/46/49 groups still occur on d2a4bae; the census was on 97c78d1.

No game data used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7119715204 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7119715204). Originally posted by [DaviTostes](https://github.com/DaviTostes) on 2026-11-24T02:03:40Z. --- Ran the synthetic shader suite against a real validator to see which groups reproduce on current `main` (`d2a4bae`): - Environment: Windows build under Wine 11.22, `VICTORY_DXIL` pointing at **dxil.dll 1.8.2502**, `cargo test -p victory-shader` with `--test-threads=1`. - Result: **68 passed, 1 failed**. The failure is `emit::tests::stub_pipeline_is_created`, and only because vkd3d-proton accepts a zeroed container digest (the digest-rejection check); it is not a translator/validator failure. - `emit::tests::constant_color_validates` **passes**, so the validator is actually loaded and validating (no "no dxil.dll; skipped" message). One code observation on the groups: - The 14 `PS input position interpolation must be linear_noperspective_centroid / sample` failures: `emit/mod.rs` already sets every pixel-shader position input (`kind == 3`) to interpolation mode **4** (`(3, _) => 4`, present since the initial import, before the census commit). So either those modules' position is not `kind == 3`, or the failure comes from a **row** that mixes modes (the same shape as the 49 "interpolation modes disagree" group). - The 49 and 46 groups look like the packed-row/signature area **#176** is working on, so I would not duplicate that. To reproduce the remaining unowned groups synthetically (53 mesh output size, 23 compute stage-incompatible ops, and the 14 if they persist), could you share the **signature layout of one failing module** — semantic names, kinds, rows/cols, component types, interpolation — rather than the shader bytes? That is enough to build the same container layout in a test and validate it. With `victory translate --validate --list` you can also tell whether the 14/46/49 groups still occur on `d2a4bae`; the census was on `97c78d1`. No game data used.
AnoHunted commented 2026-11-24 06:55:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by AnoHunted on 2026-11-24T03:44:45Z.


#459 addresses the 53 mesh modules in the "vertex plus primitive output size is greater than 32768" group. It measures the outputs the way dxil.dll does, and lowers the declared maxima to the lane count when they don't fit. Each lane writes only its own vertex and primitive, so nothing the shader writes is lost. A module that still doesn't fit at the lane count is emitted as before, so no draw is dropped. Its synthetic tests pass dxil.dll (DXC 1.9.2609) validation.

If you rerun the census with #459 on top, I'd be glad to know how the 53 split between "now valid" and "still over at the lane count". I can't measure that without the corpus.

AI-assisted (Claude Code). No game files.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7121380045 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7121380045). Originally posted by [AnoHunted](https://github.com/AnoHunted) on 2026-11-24T03:44:45Z. --- #459 addresses the 53 mesh modules in the "vertex plus primitive output size is greater than 32768" group. It measures the outputs the way `dxil.dll` does, and lowers the declared maxima to the lane count when they don't fit. Each lane writes only its own vertex and primitive, so nothing the shader writes is lost. A module that still doesn't fit at the lane count is emitted as before, so no draw is dropped. Its synthetic tests pass `dxil.dll` (DXC 1.9.2609) validation. If you rerun the census with #459 on top, I'd be glad to know how the 53 split between "now valid" and "still over at the lane count". I can't measure that without the corpus. AI-assisted (Claude Code). No game files.
r4tedx commented 2026-11-24 06:55:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by r4tedx on 2026-11-24T04:29:40Z.


The compute group of this census (23 modules, Entry function performs some operation that is incompatible with the shader stage) now has a cause and an open fix.

  • Common factor. A whole-title translate --validate run on the #233 stack found 43 compute modules with this message, and all 43 call sample. (More than 23 because that stack lets more compute programs translate; main has 23, as in this census.)
  • Cause, reproduced with a hand-assembled compute program: a compute program's image_sample is emitted as dx.op.sample, the modules declare validator version 1.6, and under 1.6 / 1.7 rules that operation is not allowed outside pixel shaders. It fails in every thread-group shape and with every wave size. The validator's second line, which translate does not print, is Function uses features incompatible with the shader stage (cs) of the entry function.
  • Fix. #180 replaces these samples with sampleGrad from quad gradients. #306's description lists a compute implicit-derivative fix too; I have not compared the two.
  • Why it may matter in the title. One of these modules (c4183d3cbee28e8e) is the one compute pipeline an older NVIDIA driver refused, right after a first-chance exception in its shader compiler, in this run. That the invalid module is the reason is the simplest reading, not proven.

If you rerun the census, two things would close this group:

  1. With #180 on top: does the compute group go to 0, and does any module that validated before stop validating?
  2. #439's head (e49302a) makes translate --validate add to each validator failure what the emitted module declares and calls (thread-group size, wave size, its dx.op operations; nothing of the console program). That line is what found the common factor above in one run, and it may sort the other groups the same way.

No game data used on my side. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7122070152 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7122070152). Originally posted by [r4tedx](https://github.com/r4tedx) on 2026-11-24T04:29:40Z. --- The compute group of this census (23 modules, `Entry function performs some operation that is incompatible with the shader stage`) now has a cause and an open fix. - **Common factor.** A whole-title `translate --validate` run on the #233 stack found 43 compute modules with this message, and [all 43 call `sample`](https://github.com/Marvisak/VIctory/pull/233#issuecomment-7121728480). (More than 23 because that stack lets more compute programs translate; `main` has 23, as in this census.) - **Cause**, [reproduced with a hand-assembled compute program](https://github.com/Marvisak/VIctory/pull/233#issuecomment-7121852191): a compute program's `image_sample` is emitted as `dx.op.sample`, the modules declare validator version 1.6, and under 1.6 / 1.7 rules that operation is not allowed outside pixel shaders. It fails in every thread-group shape and with every wave size. The validator's second line, which `translate` does not print, is `Function uses features incompatible with the shader stage (cs) of the entry function.` - **Fix.** #180 replaces these samples with `sampleGrad` from quad gradients. #306's description lists a compute implicit-derivative fix too; I have not compared the two. - **Why it may matter in the title.** One of these modules (`c4183d3cbee28e8e`) is the one compute pipeline an older NVIDIA driver refused, right after a first-chance exception in its shader compiler, in [this run](https://github.com/Marvisak/VIctory/pull/233#issuecomment-7121243100). That the invalid module is the reason is the simplest reading, not proven. If you rerun the census, two things would close this group: 1. With #180 on top: does the compute group go to 0, and does any module that validated before stop validating? 2. #439's head (`e49302a`) makes `translate --validate` add to each validator failure what the emitted module declares and calls (thread-group size, wave size, its `dx.op` operations; nothing of the console program). That line is what found the common factor above in one run, and it may sort the other groups the same way. No game data used on my side. AI-assisted.
Proudnoob4 commented 2026-11-24 06:55:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Proudnoob4 on 2026-11-24T04:59:52Z.


I reran the census you both asked about, on the full 26,503-container corpus, as a clean A/B. Both builds are main d2a4bae + our Agility exports (Win10 SM 6.6), release, translate --validate --list, 10 parallel chunks, all exit 0:

base + #180 + #459
programs with a validation result 22,156 22,616
validation failures 185 173
mesh output > 32768 53 53
compute stage op 23 0
signature mismatch 46 56
interpolation packing 49 49
conservative depth 14 15

Answer to r4tedx's question 1 (#180): yes, cleanly. The 23 Entry function performs some operation that is incompatible with the shader stage failures all clear (23 → 0), none of those 23 fail for a different reason, and zero programs that validated on base fail on the fix build. So #180 removes that whole group with no regressions in this census.

Answer to AnoHunted's question 2 (#459): 0 now valid, 53 still over. All 53 still fail with the identical message; none switched to another reason. I checked one of them in detail ((MS_VS_PedTransformFire_52f61330_Wrapped~3.dxbc, emitted DXIL):

  • NumThreads=(128,1,1), setMeshOutputCounts(…, 128, 128), 79 vertex outputs, 0 primitive outputs.
  • By mesh_output_bytes's formula that is 4 × (79 × roundup(128, 32) + 0) = 40,448 B, above the 32 KiB cap as the validator says.
  • The PR reduces the maxima to the lane count — but the lane count here is already 128, so the maxima do not change. The emitted DXIL is byte-for-byte identical between base and fix (same 27,368 B, same hash). That explains all 53: the programs that hit this group are the ones where the lane count is already at or near the maximum, so lowering to it cannot help.

So #459 as posted does not clear any of the 53 in this corpus. A fix would need to lower the maxima below the lane count (with the prologue culling lanes whose indices exceed the new maximum), or reduce the declared output rows. I have the emitted DXIL for that example and the per-program failure list if useful.

Note on the other groups: signature mismatches rose 46 → 56 and conservative depth 14 → 15, while 460 more programs got a validation result. Those extra programs come from #180 letting 23 more compute programs translate, several of which now emit DXIL that fails for a different reason; the net failure count still drops 185 → 173. I have not attributed each of the 10 extra signature failures individually.

Counts and build identities only; no game data beyond shader hashes. AI-assisted (Claude Code). I ran the translation on Windows 10, RTX 4080; corpus tooling and the A/B script are mine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7122527604 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7122527604). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-24T04:59:52Z. --- I reran the census you both asked about, on the full 26,503-container corpus, as a clean A/B. Both builds are `main d2a4bae` + our Agility exports (Win10 SM 6.6), release, `translate --validate --list`, 10 parallel chunks, all exit 0: | | base | + #180 + #459 | |---|---|---| | programs with a validation result | 22,156 | 22,616 | | validation failures | **185** | **173** | | mesh output > 32768 | 53 | 53 | | compute stage op | 23 | **0** | | signature mismatch | 46 | 56 | | interpolation packing | 49 | 49 | | conservative depth | 14 | 15 | **Answer to r4tedx's question 1 (#180): yes, cleanly.** The 23 `Entry function performs some operation that is incompatible with the shader stage` failures all clear (23 → 0), none of those 23 fail for a different reason, and **zero programs that validated on base fail on the fix build**. So `#180` removes that whole group with no regressions in this census. **Answer to AnoHunted's question 2 (#459): 0 now valid, 53 still over.** All 53 still fail with the identical message; none switched to another reason. I checked one of them in detail (`(MS_VS_PedTransformFire_52f61330_Wrapped~3.dxbc`, emitted DXIL): - `NumThreads=(128,1,1)`, `setMeshOutputCounts(…, 128, 128)`, 79 vertex outputs, 0 primitive outputs. - By `mesh_output_bytes`'s formula that is 4 × (79 × roundup(128, 32) + 0) = **40,448 B**, above the 32 KiB cap as the validator says. - The PR reduces the maxima to the lane count — but the lane count here is **already 128**, so the maxima do not change. The emitted DXIL is byte-for-byte identical between base and fix (same 27,368 B, same hash). That explains all 53: the programs that hit this group are the ones where the lane count is already at or near the maximum, so lowering to it cannot help. So #459 as posted does not clear any of the 53 in this corpus. A fix would need to lower the maxima below the lane count (with the prologue culling lanes whose indices exceed the new maximum), or reduce the declared output rows. I have the emitted DXIL for that example and the per-program failure list if useful. **Note on the other groups:** signature mismatches rose 46 → 56 and conservative depth 14 → 15, while 460 more programs got a validation result. Those extra programs come from #180 letting 23 more compute programs translate, several of which now emit DXIL that fails for a different reason; the net failure count still drops 185 → 173. I have not attributed each of the 10 extra signature failures individually. Counts and build identities only; no game data beyond shader hashes. AI-assisted (Claude Code). I ran the translation on Windows 10, RTX 4080; corpus tooling and the A/B script are mine.
r4tedx commented 2026-11-24 06:56:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by r4tedx on 2026-11-24T05:51:12Z.


@Proudnoob4 thank you, that settles question 1: with #180 the 23 compute modules of this group go to 0, and nothing that validated on main fails.

One correction to my comment above. I wrote that the 43 modules were found "on the #233 stack". They were counted on #439's head 9745f35, the top of that stack (that run). The same tester's per-head table gives:

Head Compute modules that fail validation New against main
main 23 –
#233 22 0
#320 (a5ba4a4) 42 20
#439 (9745f35) 43 not stated

So the extra ones come in with #320, which lets 21 more compute programs translate, 20 of them with this message. All 43 call sample, so they are the class #180 fixes.

Question 2 (the summary line translate --validate prints on #439's head) is not needed for this group any more. It may still help sort the other groups, for example the signature mismatches that went from 46 to 56 in your rerun.

I ran nothing myself for this comment; the numbers are the linked testers'. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123336223 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7123336223). Originally posted by [r4tedx](https://github.com/r4tedx) on 2026-11-24T05:51:12Z. --- @Proudnoob4 thank you, that settles question 1: with #180 the 23 compute modules of this group go to 0, and nothing that validated on `main` fails. One correction to my comment above. I wrote that the 43 modules were found "on the #233 stack". They were counted on #439's head `9745f35`, the top of that stack ([that run](https://github.com/Marvisak/VIctory/pull/233#issuecomment-7121728480)). The same tester's [per-head table](https://github.com/Marvisak/VIctory/pull/233#issuecomment-7120941410) gives: | Head | Compute modules that fail validation | New against `main` | |---|---|---| | `main` | 23 | – | | #233 | 22 | 0 | | #320 (`a5ba4a4`) | 42 | 20 | | #439 (`9745f35`) | 43 | not stated | So the extra ones come in with #320, which lets 21 more compute programs translate, 20 of them with this message. All 43 call `sample`, so they are the class #180 fixes. Question 2 (the summary line `translate --validate` prints on #439's head) is not needed for this group any more. It may still help sort the other groups, for example the signature mismatches that went from 46 to 56 in your rerun. I ran nothing myself for this comment; the numbers are the linked testers'. AI-assisted.
iurysf commented 2026-11-24 06:56:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by iurysf on 2026-11-24T06:04:12Z.


Update on the 53 mesh modules (vertex plus primitive output size is greater than 32768), measured on main d2a4bae with dxil.dll 1.9.2602.17.

  • The other 132 validator failures go away with #306. Main + #306 leaves exactly these 53 (details on #306). #459 does not change them (details on #459).
  • Why they exceed the limit. I looked at three of them. Each is a 128-thread mesh program with MaxVertices = 128, MaxPrimitives = 128, no per-primitive outputs, and 19 packed vertex output rows: 128 × 19 × 16 B = 38,912 B.
  • Packing can't fix it. They use 65–67 components per vertex, and 128 × 67 × 4 B = 34,304 B is still over 32,768. Packing only takes it to that floor, so any fix has to lower the vertex count or the outputs.
  • #459 doesn't help here. It caps the maxima at the lane count, but here the lane count is already 128.

Options I can see:

  1. Declare fewer vertices when the GS_ALLOC_REQ count is a known constant ≤ 107 (19 rows) — related to #586, which decodes the request but keeps the declared maxima.
  2. Drop vertex outputs the paired pixel shader does not read, when the pipeline is made. Several of these programs feed prepass-type pixel shaders that likely read few attributes. This would also shrink the 19 rows in general.

Not verified: whether NVIDIA or AMD drivers misbehave on these at runtime. Your census says the runtime still created all mesh pipelines.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123548842 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7123548842). Originally posted by [iurysf](https://github.com/iurysf) on 2026-11-24T06:04:12Z. --- Update on the 53 mesh modules (`vertex plus primitive output size is greater than 32768`), measured on main `d2a4bae` with dxil.dll 1.9.2602.17. - **The other 132 validator failures go away with #306.** Main + #306 leaves exactly these 53 (details on #306). #459 does not change them (details on #459). - **Why they exceed the limit.** I looked at three of them. Each is a 128-thread mesh program with `MaxVertices = 128`, `MaxPrimitives = 128`, no per-primitive outputs, and **19 packed vertex output rows**: 128 × 19 × 16 B = 38,912 B. - **Packing can't fix it.** They use 65–67 components per vertex, and 128 × 67 × 4 B = 34,304 B is still over 32,768. Packing only takes it to that floor, so any fix has to lower the vertex count or the outputs. - **#459 doesn't help here.** It caps the maxima at the lane count, but here the lane count is already 128. Options I can see: 1. Declare fewer vertices when the `GS_ALLOC_REQ` count is a known constant ≤ 107 (19 rows) — related to #586, which decodes the request but keeps the declared maxima. 2. Drop vertex outputs the paired pixel shader does not read, when the pipeline is made. Several of these programs feed prepass-type pixel shaders that likely read few attributes. This would also shrink the 19 rows in general. Not verified: whether NVIDIA or AMD drivers misbehave on these at runtime. Your census says the runtime still created all mesh pipelines.
iurysf commented 2026-11-24 06:56:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by iurysf on 2026-11-24T06:29:47Z.


Measured offline with victory translate --list --validate over the title's shaders.rpf + executable (26,096 programs), dxil.dll 1.9.2602.17, against main d2a4bae: 3,733 translation failures, 185 modules rejected.

Best stack that merges cleanly as-is: seven PRs, in this order: #306, #592, #309, #571, #573, #576, #585.

  • Translation failures: 3,733 -> 3,356 (-377).
  • Rejected modules: 185 -> 53. Only the mesh "vertex plus primitive output size" class is left (analysis above); every vertex/pixel and compute module that emits validates.
  • Nothing regresses: no program that validated on main fails now, and every program a member PR fixed on its own stays fixed in the stack.

Conflicts as-is (these need a rebase, or a pick between overlapping pairs):

  • #569, #563, #599 and #565 collide with #306/#309's versions of the same fixes.
  • #307/#566 collide with #309/#585's lane-mask work.
  • #585 and #385 collide with each other. An alternate stack with #385 instead of #585/#573 reaches 3,359 with the same 53 rejects, and it also clears "lane-mask join of an untracked mask".

Per-PR numbers are in comments on each PR. This is CPU-side translation and validation only; in-game runs on an RTX 4070 are in progress.

AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123992849 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7123992849). Originally posted by [iurysf](https://github.com/iurysf) on 2026-11-24T06:29:47Z. --- Measured offline with `victory translate --list --validate` over the title's `shaders.rpf` + executable (26,096 programs), dxil.dll 1.9.2602.17, against main `d2a4bae`: 3,733 translation failures, 185 modules rejected. **Best stack that merges cleanly as-is:** seven PRs, in this order: #306, #592, #309, #571, #573, #576, #585. - Translation failures: 3,733 -> **3,356** (-377). - Rejected modules: 185 -> **53**. Only the mesh "vertex plus primitive output size" class is left (analysis above); every vertex/pixel and compute module that emits validates. - Nothing regresses: no program that validated on main fails now, and every program a member PR fixed on its own stays fixed in the stack. **Conflicts as-is** (these need a rebase, or a pick between overlapping pairs): - #569, #563, #599 and #565 collide with #306/#309's versions of the same fixes. - #307/#566 collide with #309/#585's lane-mask work. - #585 and #385 collide with each other. An alternate stack with #385 instead of #585/#573 reaches 3,359 with the same 53 rejects, and it also clears "lane-mask join of an untracked mask". Per-PR numbers are in comments on each PR. This is CPU-side translation and validation only; in-game runs on an RTX 4070 are in progress. AI-assisted.
fuzeofficlal commented 2026-11-24 06:56:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T03:25:04Z.


I checked the DXIL writer on d2a4bae with signatures from an SDK-compiled synthetic mesh shader. Both output maxima were 256. The case with 27 vertex scalars and 5 primitive scalars passed dxil.dll 1.8.2502 at exactly 32,768 bytes. Adding one primitive scalar reproduced the reported output-size error at 33,792 bytes. The passing case includes partially filled signature rows, so row padding did not inflate its declared scalar count.

For one of the failing modules, could you share just the declared maximum vertex and primitive counts and the total scalar count of each output signature, before and after translation? Four integers per side are enough to see whether the emitted declaration grew or the source already exceeds the DXIL limit.

Follow-up on the proposed declaration cap. I compiled two original 128-thread mesh shaders with 19 vertex signature elements, containing 67 and 76 float components respectively and no per-primitive attributes. Both always call SetMeshOutputCounts(3, 1). Windows SDK DXIL 1.8.2502.11 accepts declared MaxVertices=96 for both and rejects 97 and 107 with the same 32 KiB error.

The declared maximum is rounded up to a multiple of 32, so 97 through 107 all budget 128 vertices. For these two output widths the declaration needs to be at most 96. This synthetic check establishes the cap threshold. Applying it to a recovered program still requires proving its allocation and export indices fit. D3D12 output-size rule

<!-- greyfinch-sync:Marvisak/VIctory:comment:7121068944 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7121068944). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-24T03:25:04Z. --- I checked the DXIL writer on `d2a4bae` with signatures from an SDK-compiled synthetic mesh shader. Both output maxima were 256. The case with 27 vertex scalars and 5 primitive scalars passed `dxil.dll` 1.8.2502 at exactly 32,768 bytes. Adding one primitive scalar reproduced the reported output-size error at 33,792 bytes. The passing case includes partially filled signature rows, so row padding did not inflate its declared scalar count. For one of the failing modules, could you share just the declared maximum vertex and primitive counts and the total scalar count of each output signature, before and after translation? Four integers per side are enough to see whether the emitted declaration grew or the source already exceeds the DXIL limit. Follow-up on the proposed declaration cap. I compiled two original 128-thread mesh shaders with 19 vertex signature elements, containing 67 and 76 float components respectively and no per-primitive attributes. Both always call `SetMeshOutputCounts(3, 1)`. Windows SDK DXIL 1.8.2502.11 accepts declared `MaxVertices=96` for both and rejects `97` and `107` with the same 32 KiB error. The declared maximum is rounded up to a multiple of 32, so 97 through 107 all budget 128 vertices. For these two output widths the declaration needs to be at most 96. This synthetic check establishes the cap threshold. Applying it to a recovered program still requires proving its allocation and export indices fit. [D3D12 output-size rule](https://microsoft.github.io/DirectX-Specs/d3d/MeshShader.html#mesh-shader-output-size-limits)
Catskan commented 2026-11-24 08:02:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Catskan on 2026-11-24T07:37:22Z.


RX 9070 XT (RDNA4): the driver creates every emitted pipeline, compute included (0 refused)

Setup: RX 9070 XT 16 GB, driver 32.0.32029.2010, Windows 11 Pro 26200 (SM 6.6 without the Agility exports), main d2a4bae, release build, dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100). This is an offline run; I did not run the title. I used the same 26,503 DXBC containers from my own 1.0.2.1 copy, passed as 54 files of 500 containers, with victory translate --validate --pipelines --jobs 8.

The 9070 XT is not DXGI adapter 0 in every session on this machine, so I reran one of the 54 files in the same session type and watched the process's GPU memory counters. It allocates only on the 9070 XT's LUID.

Stage Emitted Host pipelines created Refused
VS/PS 12,272 12,272 0
Compute 1,693 1,693 0
Mesh 8,191 8,191 0

Emitted counts are the deduplicated totals of one whole-corpus --validate run. None of the 54 per-file runs has a pipeline: failure line, and all 54 exit with 0, without a crash or a timeout.

dxil.dll rejects 185 modules (12,172 + 1,670 + 8,129 validated), the same count as iurysf's run with the same 1.9 dll. The driver still creates pipelines for the 23 compute modules among them.

On NVIDIA, the opening post counts 321 of 1,685 compute pipelines refused with E_INVALIDARG (RTX 4080, 97c78d1, dll 1.8.2502), and the RTX 4070 Ti count in #71 is the same on 35b054e. The commits and validators differ, but 0 refusals here fits RDNA's 64-lane waves, so the 321 refusals look specific to 32-lane hosts (#468, #578, the #223/#233 stack). I only checked pipeline creation, not whether those wave64 programs compute correctly on RDNA.

AI-assisted (Claude). I ran the translation and checked the counts myself.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7125190059 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7125190059). Originally posted by [Catskan](https://github.com/Catskan) on 2026-11-24T07:37:22Z. --- **RX 9070 XT (RDNA4): the driver creates every emitted pipeline, compute included (0 refused)** Setup: RX 9070 XT 16 GB, driver 32.0.32029.2010, Windows 11 Pro 26200 (SM 6.6 without the Agility exports), `main` `d2a4bae`, release build, `dxil.dll` 1.9.2602.17 (Windows SDK 10.0.26100). This is an offline run; I did not run the title. I used the same 26,503 DXBC containers from my own 1.0.2.1 copy, passed as 54 files of 500 containers, with `victory translate --validate --pipelines --jobs 8`. The 9070 XT is not DXGI adapter 0 in every session on this machine, so I reran one of the 54 files in the same session type and watched the process's GPU memory counters. It allocates only on the 9070 XT's LUID. | Stage | Emitted | Host pipelines created | Refused | |---|---:|---:|---:| | VS/PS | 12,272 | 12,272 | 0 | | Compute | 1,693 | 1,693 | 0 | | Mesh | 8,191 | 8,191 | 0 | Emitted counts are the deduplicated totals of one whole-corpus `--validate` run. None of the 54 per-file runs has a `pipeline:` failure line, and all 54 exit with 0, without a crash or a timeout. `dxil.dll` rejects 185 modules (12,172 + 1,670 + 8,129 validated), the same count as iurysf's run with the same 1.9 dll. The driver still creates pipelines for the 23 compute modules among them. On NVIDIA, the opening post counts 321 of 1,685 compute pipelines refused with `E_INVALIDARG` (RTX 4080, `97c78d1`, dll 1.8.2502), and the RTX 4070 Ti count in #71 is the same on `35b054e`. The commits and validators differ, but 0 refusals here fits RDNA's 64-lane waves, so the 321 refusals look specific to 32-lane hosts (#468, #578, the #223/#233 stack). I only checked pipeline creation, not whether those wave64 programs compute correctly on RDNA. AI-assisted (Claude). I ran the translation and checked the counts myself.
iurysf commented 2026-11-24 08:02:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by iurysf on 2026-11-24T07:48:34Z.


Driver-side check of the seven-PR stack above (#306, #592, #309, #571, #573, #576, #585), since passing the validator doesn't guarantee the driver accepts a module. I ran victory translate --list --pipelines on an RTX 4070 (driver 32.0.16.2101, 32-lane waves) over all 26,096 programs:

host pipelines created refused by the driver
main d2a4bae 21,847 322
main + stack 22,203 (+356) 343
  • All 27 newly refused programs are WaveSize(64) compute that the stack now translates. They are refused for the same reason as main's 322, a host without 64-lane waves (see #233 and #578). Another 6 of main's refusals are no longer refused.
  • Apart from that, the driver accepts everything the stack newly emits.

AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7125395390 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7125395390). Originally posted by [iurysf](https://github.com/iurysf) on 2026-11-24T07:48:34Z. --- Driver-side check of the seven-PR stack above (#306, #592, #309, #571, #573, #576, #585), since passing the validator doesn't guarantee the driver accepts a module. I ran `victory translate --list --pipelines` on an RTX 4070 (driver 32.0.16.2101, 32-lane waves) over all 26,096 programs: | | host pipelines created | refused by the driver | |---|---:|---:| | main `d2a4bae` | 21,847 | 322 | | main + stack | **22,203 (+356)** | 343 | - All 27 newly refused programs are `WaveSize(64)` compute that the stack now translates. They are refused for the same reason as main's 322, a host without 64-lane waves (see #233 and #578). Another 6 of main's refusals are no longer refused. - Apart from that, the driver accepts everything the stack newly emits. AI-assisted.
YouKnowWh commented 2026-11-24 09:06:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YouKnowWh on 2026-11-24T08:59:46Z.


RTX 5070 Ti follow-up for three compute containers used in the 1.0.2.1 world-loading path. I checked DXIL validation and actual D3D12 compute PSO creation separately. The hardware reports a 32–32 lane range.

Local build / emission path DXIL validator Compute PSOs created
Previous diagnostic integration (main d2a4bae with #322, #643, #193/#704), original emitter 0/3 0/3
Same integration with the #306 compute-derivative validator/PSV changes 3/3 0/3
#439 ef14bf3, hardware wave target, legacy validator metadata 0/3 3/3
Same #439 test executable and hardware target, #306 compute-derivative metadata enabled 3/3 3/3

The last two rows use a local diagnostic switch on the same executable. The old integration emitted WaveSize=64 for all three. I used the Windows DXIL validator and the hardware adapter for the PSO tests. The #439 line is a different code base from the first two rows, so the cross-branch comparison does not isolate a single wave-lowering commit.

In a separate story-mode run of #439 plus the #306 compute-derivative changes, all three host PSOs were created and first-bound. Instrumentation immediately after the host command-list calls recorded:

  • cabb87599722e59a (particle light atlas): 204 ExecuteIndirect calls, maximum one command per call.
  • 5b2ce592c3a5dd09 (density shadow map mip generation): 21 direct Dispatch calls.
  • c4183d3cbee28e8e (projected decal resolve): 20 ExecuteIndirect calls, maximum one command per call.

These are totals across the run, stopped after 16 world-stage presents. Recording ExecuteIndirect does not establish a nonzero GPU argument count. Output correctness of these three passes and complete scene rendering remain unverified. This is independent hardware confirmation for #201, #306 and #439.

AI disclosure: Codex integrated the public changes, ran the local tests on my machine, analyzed the logs, and wrote this report at my request.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7126822605 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7126822605). Originally posted by [YouKnowWh](https://github.com/YouKnowWh) on 2026-11-24T08:59:46Z. --- RTX 5070 Ti follow-up for three compute containers used in the 1.0.2.1 world-loading path. I checked DXIL validation and actual D3D12 compute PSO creation separately. The hardware reports a 32–32 lane range. | Local build / emission path | DXIL validator | Compute PSOs created | | --- | ---: | ---: | | Previous diagnostic integration (main d2a4bae with #322, #643, #193/#704), original emitter | 0/3 | 0/3 | | Same integration with the #306 compute-derivative validator/PSV changes | 3/3 | 0/3 | | #439 ef14bf3, hardware wave target, legacy validator metadata | 0/3 | 3/3 | | Same #439 test executable and hardware target, #306 compute-derivative metadata enabled | 3/3 | 3/3 | The last two rows use a local diagnostic switch on the same executable. The old integration emitted WaveSize=64 for all three. I used the Windows DXIL validator and the hardware adapter for the PSO tests. The #439 line is a different code base from the first two rows, so the cross-branch comparison does not isolate a single wave-lowering commit. In a separate story-mode run of #439 plus the #306 compute-derivative changes, all three host PSOs were created and first-bound. Instrumentation immediately after the host command-list calls recorded: - cabb87599722e59a (particle light atlas): 204 ExecuteIndirect calls, maximum one command per call. - 5b2ce592c3a5dd09 (density shadow map mip generation): 21 direct Dispatch calls. - c4183d3cbee28e8e (projected decal resolve): 20 ExecuteIndirect calls, maximum one command per call. These are totals across the run, stopped after 16 world-stage presents. Recording ExecuteIndirect does not establish a nonzero GPU argument count. Output correctness of these three passes and complete scene rendering remain unverified. This is independent hardware confirmation for #201, #306 and #439. AI disclosure: Codex integrated the public changes, ran the local tests on my machine, analyzed the logs, and wrote this report at my request.
BaggyALPHA commented 2026-11-24 17:04:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T16:05:48Z.


I checked the shaders selected by the title in a Series S WARP startup and early story-load run on the #211 head af9a911, with #197 for startup input. A local diagnostic matched title first-bind events to the emitted DXIL in VIctory's cache. I validated those cached modules after exit with Windows SDK dxil.dll 1.8.2502.11.

  • 17 distinct title shaders matched 16 distinct emitted DXIL modules. All 16 passed validation. The 17 title shaders were 7 vertex, 7 pixel, and 3 compute.
  • Four were first bound after the story archive opened, all vertex or pixel. All 17 appeared in at least one host pipeline that WARP accepted.
  • The commit guard stopped the run during loading. There were no observed mesh shader binds or confirmed world frames, so this does not cover the mesh failure group or the first cutscene.

Offline mesh follow-up. I checked the one-shader explanation above across the full output-size failure group at the closed #459 revision dc838d6. The local mesh-only probe logged the existing budget calculation before and after the clamp and paired it with the Windows SDK 1.8.2502.11 validator result. The probe preserved the emitted DXIL.

Of 8,191 emitted mesh modules, 8,129 validated, 53 failed the 32 KiB output-size rule, and 9 failed other rules. All 53 of 53 output-size failures had 128 threads and declared maxima of 128 vertices and 128 primitives both before and after the clamp. Their translated signatures had 65–71 vertex scalars and no per-primitive scalars, giving calculated budgets of 33,280–36,352 bytes. The clamp ran in all 53 cases.

With those signatures and rounding to multiples of 32, 96 is the greatest declared vertex maximum that fits. The probe did not establish whether lowering the maximum preserves the shaders' outputs. This offline run did not test runtime rendering.

AI-assisted test execution and write-up (OpenAI Codex).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137110808 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7137110808). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-24T16:05:48Z. --- I checked the shaders selected by the title in a Series S WARP startup and early story-load run on the #211 head `af9a911`, with #197 for startup input. A local diagnostic matched title first-bind events to the emitted DXIL in VIctory's cache. I validated those cached modules after exit with Windows SDK `dxil.dll` 1.8.2502.11. - 17 distinct title shaders matched 16 distinct emitted DXIL modules. All 16 passed validation. The 17 title shaders were 7 vertex, 7 pixel, and 3 compute. - Four were first bound after the story archive opened, all vertex or pixel. All 17 appeared in at least one host pipeline that WARP accepted. - The commit guard stopped the run during loading. There were no observed mesh shader binds or confirmed world frames, so this does not cover the mesh failure group or the first cutscene. **Offline mesh follow-up.** I checked the one-shader explanation above across the full output-size failure group at the closed #459 revision `dc838d6`. The local mesh-only probe logged the existing budget calculation before and after the clamp and paired it with the Windows SDK 1.8.2502.11 validator result. The probe preserved the emitted DXIL. Of 8,191 emitted mesh modules, 8,129 validated, 53 failed the 32 KiB output-size rule, and 9 failed other rules. All **53 of 53** output-size failures had 128 threads and declared maxima of 128 vertices and 128 primitives both before and after the clamp. Their translated signatures had 65–71 vertex scalars and no per-primitive scalars, giving calculated budgets of 33,280–36,352 bytes. The clamp ran in all 53 cases. With those signatures and rounding to multiples of 32, 96 is the greatest declared vertex maximum that fits. The probe did not establish whether lowering the maximum preserves the shaders' outputs. This offline run did not test runtime rendering. AI-assisted test execution and write-up (OpenAI Codex).
Marvisak commented 2026-11-25 02:06:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:49:39Z.


Automated triage for the maintainers.

Thanks for the rerun on 940d32f. Where each group stands now:

  • Conservative depth (14): all validate.
  • Mixed interpolation (49) and signature mismatch (46): 79 validate. The other 16 now fail first with "Flags must match usage".
  • Mesh output size (53) and compute stage (23): unchanged. For the mesh class, the comments here show the vertex count and per-vertex output size come from the title's own stage data (ms_io in native.rs reads both), so the product exceeds the host's 32,768-byte limit without anything of ours to trim: it needs an emulation choice (split dispatch, or the compute fallback discussed in #1612 and PR #961), which is for the maintainers. The open PRs are #1385 for mesh and #1948 / #1065 for compute.

The "Flags must match usage" failures (867 vertex programs across the pack) are a regression from cd94d35, and main confirms it. In crates/victory-shader/src/emit/shader.rs, Shader::finish declares the view-writes UAV (used by mark_view_write in emit/lower.rs) in vertex programs. The flags module has no UAVsAtEveryStage bit (1 << 16), and SFI0 does not set its feature bit either. At least one affected vertex program is selected in real runs (latest comment), so this is not only a census finding. This regression is tracked in #1973 (oldest) and #1987. Open PRs #2016 and #1989 already carry the same change as the diff here, so review can continue there; no new PR is needed for it.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7150002447 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7150002447). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:49:39Z. --- <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-25T05:02:23Z at=2026-11-25T06:55:21Z --> Automated triage for the maintainers. Thanks for the rerun on `940d32f`. Where each group stands now: - **Conservative depth (14):** all validate. - **Mixed interpolation (49) and signature mismatch (46):** 79 validate. The other 16 now fail first with "Flags must match usage". - **Mesh output size (53) and compute stage (23):** unchanged. For the mesh class, the comments here show the vertex count and per-vertex output size come from the title's own stage data (`ms_io` in `native.rs` reads both), so the product exceeds the host's 32,768-byte limit without anything of ours to trim: it needs an emulation choice (split dispatch, or the compute fallback discussed in #1612 and PR #961), which is for the maintainers. The open PRs are #1385 for mesh and #1948 / #1065 for compute. The "Flags must match usage" failures (867 vertex programs across the pack) are a regression from cd94d35, and `main` confirms it. In `crates/victory-shader/src/emit/shader.rs`, `Shader::finish` declares the view-writes UAV (used by `mark_view_write` in `emit/lower.rs`) in vertex programs. The `flags` module has no `UAVsAtEveryStage` bit (`1 << 16`), and SFI0 does not set its feature bit either. At least one affected vertex program is selected in real runs (latest comment), so this is not only a census finding. This regression is tracked in #1973 (oldest) and #1987. Open PRs #2016 and #1989 already carry the same change as the diff here, so review can continue there; no new PR is needed for it. --- _Generated by [Claude Code](https://claude.ai/code)_
YouKnowWh commented 2026-11-25 03:03:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YouKnowWh on 2026-11-25T02:41:52Z.


I reran the census on the same local 1.0.2.1 shader pack at both 97c78d1 and 940d32f69b22265690a0b5a15d6ded572ba33baf using victory translate shaders.rpf --validate --list --jobs 8, validator DLL file version 1.8.2502.11. Both scanned 26,503 containers (614 duplicates skipped) and reported 26,084 programs translated. The old revision reproduced all five original counts exactly.

Original first validator error Old count Outcomes for those programs on 940d32f
Conservative-depth PS input position 14 14 validated
Mixed interpolation modes in one signature row 49 39 validated; 10 now report “Flags must match usage.”
Container signature mismatch 46 40 validated; 6 now report “Flags must match usage.”
Mesh output exceeds 32,768 bytes 53 53 still report mesh output size
Compute stage incompatibility 23 23 still report stage incompatibility

The three groups you asked about therefore have 93/109 fully validating and 16/109 with a different first error. None of the 185 historical cases was unmatched. The CLI lists the first validator diagnostic per module; the changed diagnostic alone does not prove every underlying signature problem is gone.

Across the whole pack on 940d32f, 25,591 modules emitted DXIL and 23,918 validated. The 1,673 first-error outcomes were 867 flags/usage, 735 compute stage, and 71 mesh output size. The old build emitted 22,148 modules. This is a different emitted population; the difference in total failed validations is not by itself a regression count. This run did not create host pipelines, launch the game, or measure in-game usage.

Cause and verified fix for the remaining 16

All 16 are vertex shaders. Their full validator reports all show exactly one missing module flag: actual minus declared is bit 16 (0x10000, DXIL UAVsAtEveryStage), with no surplus bits. Tracing resource emission on each shader gave the same result: no root UAV slots, no title-memory dirty bitmap, and a declared buffer-view writes bitmap. This is the translator-generated raw UAV used by mark_view_write.

With the emitted validator version 1.6, a declared UAV outside the pixel and compute stages requires that module flag. My candidate sets it when emitting that UAV resource list, and mirrors it in SFI0 as ShaderFeatureInfo_UAVsAtEveryStage (0x4). No signature packing, resource binding, or shader instructions were changed.

The 16/16 now pass full DXIL validation. This resolves the old signature question for these exact modules. Across the full pack all 867 former flags failures (all VS) now validate: 23,918 → 24,785 of the same 25,591 emitted modules. A comparison by original DXIL-part identity and shader stage showed no other validation outcome changes. The remaining 735 stage-incompatible and 71 mesh-size failures are unchanged. The synthetic resource/feature regression test also passes. These results are offline and do not measure runtime output or PSO creation.

AI-assisted offline rerun and comparison. No game files attached.

Candidate patch and synthetic regression test (against 940d32f)
diff --git a/crates/victory-shader/src/emit/shader.rs b/crates/victory-shader/src/emit/shader.rs
index e68e262..8957389 100644
--- a/crates/victory-shader/src/emit/shader.rs
+++ b/crates/victory-shader/src/emit/shader.rs
@@ -44,6 +44,7 @@ pub const VIEW_WRITE_BITS: u32 = 1 << 22;
 /// `ShaderFlags` bits (metadata) and their `SFI0` feature bits.
 pub(crate) mod flags {
     pub const RAW_BUFFERS: u64 = 1 << 4;
+    pub const UAVS_AT_EVERY_STAGE: u64 = 1 << 16;
     pub const STENCIL_REF: u64 = 1 << 11;
     pub const TYPED_UAV_LOADS: u64 = 1 << 13;
     pub const ROVS: u64 = 1 << 18;
@@ -657,6 +658,10 @@ impl Shader {
             }
             let mut uavs = None;
             if !self.root_uavs.is_empty() || self.memory_dirty.is_some() || self.view_writes.is_some() {
+                // With dx.valver 1.6, declared UAVs require this flag outside PS and CS.
+                if !self.pixel && (self.threads.is_none() || self.mesh.is_some()) {
+                    self.flags |= flags::UAVS_AT_EVERY_STAGE;
+                }
                 let ty = self
                     .m
                     .named_struct("struct.RWByteAddressBuffer", vec![self.t.i32]);
@@ -879,6 +884,9 @@ impl Shader {
         dxil.extend(&bitcode);
 
         let mut features = 0u64;
+        if self.flags & flags::UAVS_AT_EVERY_STAGE != 0 {
+            features |= 0x0004;
+        }
         if self.flags & flags::STENCIL_REF != 0 {
             features |= 0x200;
         }
@@ -986,3 +994,32 @@ impl Shader {
         Some(self.m.md_node(list))
     }
 }
+
+#[cfg(test)]
+mod uav_stage_tests {
+    use super::Shader;
+    use crate::emit::bitcode::Term;
+    use crate::{Container, FourCC};
+
+    #[test]
+    fn emitted_uav_stage_feature_matches_the_declared_resources() {
+        for (pixel, threads, with_uav, expected) in [
+            (false, None, false, false),
+            (false, None, true, true),
+            (true, None, true, false),
+            (false, Some([1, 1, 1]), true, false),
+        ] {
+            let mut shader = Shader::new(pixel);
+            shader.threads = threads;
+            if with_uav {
+                shader.view_writes_handle();
+            }
+            shader.m.terminate(shader.entry, Term::Ret);
+            let bytes = shader.finish();
+            let container = Container::parse(&bytes).unwrap();
+            let sfi = container.part(FourCC::SFI0).unwrap().data;
+            let features = u64::from_le_bytes(sfi.try_into().unwrap());
+            assert_eq!(features & 4 != 0, expected);
+        }
+    }
+}
<!-- greyfinch-sync:Marvisak/VIctory:comment:7151059505 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7151059505). Originally posted by [YouKnowWh](https://github.com/YouKnowWh) on 2026-11-25T02:41:52Z. --- I reran the census on the same local 1.0.2.1 shader pack at both `97c78d1` and `940d32f69b22265690a0b5a15d6ded572ba33baf` using `victory translate shaders.rpf --validate --list --jobs 8`, validator DLL file version 1.8.2502.11. Both scanned 26,503 containers (614 duplicates skipped) and reported 26,084 programs translated. The old revision reproduced all five original counts exactly. | Original first validator error | Old count | Outcomes for those programs on 940d32f | |---|---:|---| | Conservative-depth PS input position | 14 | 14 validated | | Mixed interpolation modes in one signature row | 49 | 39 validated; 10 now report “Flags must match usage.” | | Container signature mismatch | 46 | 40 validated; 6 now report “Flags must match usage.” | | Mesh output exceeds 32,768 bytes | 53 | 53 still report mesh output size | | Compute stage incompatibility | 23 | 23 still report stage incompatibility | The three groups you asked about therefore have 93/109 fully validating and 16/109 with a different first error. None of the 185 historical cases was unmatched. The CLI lists the first validator diagnostic per module; the changed diagnostic alone does not prove every underlying signature problem is gone. Across the whole pack on `940d32f`, 25,591 modules emitted DXIL and 23,918 validated. The 1,673 first-error outcomes were 867 flags/usage, 735 compute stage, and 71 mesh output size. The old build emitted 22,148 modules. This is a different emitted population; the difference in total failed validations is not by itself a regression count. This run did not create host pipelines, launch the game, or measure in-game usage. ### Cause and verified fix for the remaining 16 All 16 are vertex shaders. Their full validator reports all show exactly one missing module flag: actual minus declared is bit 16 (`0x10000`, DXIL `UAVsAtEveryStage`), with no surplus bits. Tracing resource emission on each shader gave the same result: no root UAV slots, no title-memory dirty bitmap, and a declared buffer-view writes bitmap. This is the translator-generated raw UAV used by `mark_view_write`. With the emitted validator version 1.6, a declared UAV outside the pixel and compute stages requires that module flag. My candidate sets it when emitting that UAV resource list, and mirrors it in SFI0 as `ShaderFeatureInfo_UAVsAtEveryStage` (0x4). No signature packing, resource binding, or shader instructions were changed. The 16/16 now pass full DXIL validation. This resolves the old signature question for these exact modules. Across the full pack all 867 former flags failures (all VS) now validate: 23,918 → 24,785 of the same 25,591 emitted modules. A comparison by original DXIL-part identity and shader stage showed no other validation outcome changes. The remaining 735 stage-incompatible and 71 mesh-size failures are unchanged. The synthetic resource/feature regression test also passes. These results are offline and do not measure runtime output or PSO creation. AI-assisted offline rerun and comparison. No game files attached. <details><summary>Candidate patch and synthetic regression test (against 940d32f)</summary> ````diff diff --git a/crates/victory-shader/src/emit/shader.rs b/crates/victory-shader/src/emit/shader.rs index e68e262..8957389 100644 --- a/crates/victory-shader/src/emit/shader.rs +++ b/crates/victory-shader/src/emit/shader.rs @@ -44,6 +44,7 @@ pub const VIEW_WRITE_BITS: u32 = 1 << 22; /// `ShaderFlags` bits (metadata) and their `SFI0` feature bits. pub(crate) mod flags { pub const RAW_BUFFERS: u64 = 1 << 4; + pub const UAVS_AT_EVERY_STAGE: u64 = 1 << 16; pub const STENCIL_REF: u64 = 1 << 11; pub const TYPED_UAV_LOADS: u64 = 1 << 13; pub const ROVS: u64 = 1 << 18; @@ -657,6 +658,10 @@ impl Shader { } let mut uavs = None; if !self.root_uavs.is_empty() || self.memory_dirty.is_some() || self.view_writes.is_some() { + // With dx.valver 1.6, declared UAVs require this flag outside PS and CS. + if !self.pixel && (self.threads.is_none() || self.mesh.is_some()) { + self.flags |= flags::UAVS_AT_EVERY_STAGE; + } let ty = self .m .named_struct("struct.RWByteAddressBuffer", vec![self.t.i32]); @@ -879,6 +884,9 @@ impl Shader { dxil.extend(&bitcode); let mut features = 0u64; + if self.flags & flags::UAVS_AT_EVERY_STAGE != 0 { + features |= 0x0004; + } if self.flags & flags::STENCIL_REF != 0 { features |= 0x200; } @@ -986,3 +994,32 @@ impl Shader { Some(self.m.md_node(list)) } } + +#[cfg(test)] +mod uav_stage_tests { + use super::Shader; + use crate::emit::bitcode::Term; + use crate::{Container, FourCC}; + + #[test] + fn emitted_uav_stage_feature_matches_the_declared_resources() { + for (pixel, threads, with_uav, expected) in [ + (false, None, false, false), + (false, None, true, true), + (true, None, true, false), + (false, Some([1, 1, 1]), true, false), + ] { + let mut shader = Shader::new(pixel); + shader.threads = threads; + if with_uav { + shader.view_writes_handle(); + } + shader.m.terminate(shader.entry, Term::Ret); + let bytes = shader.finish(); + let container = Container::parse(&bytes).unwrap(); + let sfi = container.part(FourCC::SFI0).unwrap().data; + let features = u64::from_le_bytes(sfi.try_into().unwrap()); + assert_eq!(features & 4 != 0, expected); + } + } +} ```` </details>
fiestorra commented 2026-11-25 04:07:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-25T03:43:26Z.


The mesh refusal is arithmetic, not a flag: 128 vertices × 264 bytes = 33,792, and DXIL's mesh output budget is 32,768

I spent this round on the third class in the census (For shader 'main', vertex plus primitive output size is greater than 32768, 71 programs, every one a mesh shader), and the answer is that it cannot be fixed the way the last two were. The numbers, from one of the 71 dumped with VICTORY_EMIT_DUMP and read with dxc -dumpbin:

MSNC_VS_PedTransformSkinTransmissionFire_6c7ff3fe_Wrapped   Ms
  threads (128,1,1), max vertices 128, max primitives 128, topology triangles (2)
  output signature: 20 elements, 66 components = 264 bytes per vertex
  !58 = !{!59, i32 128, i32 128, i32 2, i32 0}

The validator's budget is on the product, not on the signature:

128 vertices × 264 bytes = 33,792 bytes   >   32,768

Three per cent over. The same signature fits with 124 vertices or fewer, and 128 vertices fit with 125 bytes or fewer per vertex (31 components). So the title asks its console mesh shaders for a combination that the host's mesh pipeline does not allow, and no shader flag changes that.

What that means for whoever picks this up — I would not want to start any of these without a decision, which is why I stopped at the measurement:

  1. the signature is ours to trim only if it carries something we added. 66 components for a vertex shader's interpolants is a lot; if any of those elements are ours (rather than the title's), dropping them answers the class for free. I have not established that — it needs the console's own signature next to ours, which the dumper can give and I have not done;
  2. split the dispatch: a mesh shader that wants 128 vertices could be run as two with 64 each. That changes how the title's draws bind (the draw count per dispatch), so it is a scheduler change, not a translator one;
  3. reduce max_vertices to 124 and let the extra four vertices be emitted by a second dispatch — same problem as 2, smaller number;
  4. translate these to compute + draws, which is what the title's own console path may be doing anyway; the largest of the options and the one that needs the most measurement first.

Of the four, only the first is a candidate for a small change, and it depends on a fact nobody has written down yet: whether our emitted signature for these mesh shaders has elements the console's does not. That is the next measurement, and it is cheap — the same dump, compared against the title's signature bytes.

For the record, the other classes I looked at this round and did not touch: 195 programs refused for "an address in an SGPR that is no root parameter" (address resolution for computed bases, a feature), 40 for "a register joining a lane mask and data, read as data" and 36 for "a descriptor read only as data" (corners of the structurisation). None is a one-line answer either, and I would rather leave four honest measurements than four half-fixes.

No game data is involved: signature element counts, thread-group sizes and byte arithmetic.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152182378 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7152182378). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-25T03:43:26Z. --- **The mesh refusal is arithmetic, not a flag: 128 vertices × 264 bytes = 33,792, and DXIL's mesh output budget is 32,768** I spent this round on the third class in the census (`For shader 'main', vertex plus primitive output size is greater than 32768`, 71 programs, every one a mesh shader), and the answer is that it cannot be fixed the way the last two were. The numbers, from one of the 71 dumped with `VICTORY_EMIT_DUMP` and read with `dxc -dumpbin`: ``` MSNC_VS_PedTransformSkinTransmissionFire_6c7ff3fe_Wrapped Ms threads (128,1,1), max vertices 128, max primitives 128, topology triangles (2) output signature: 20 elements, 66 components = 264 bytes per vertex !58 = !{!59, i32 128, i32 128, i32 2, i32 0} ``` The validator's budget is on the product, not on the signature: ``` 128 vertices × 264 bytes = 33,792 bytes > 32,768 ``` Three per cent over. The same signature fits with **124 vertices or fewer**, and 128 vertices fit with **125 bytes or fewer per vertex** (31 components). So the title asks its console mesh shaders for a combination that the host's mesh pipeline does not allow, and no shader flag changes that. What that means for whoever picks this up — I would not want to start any of these without a decision, which is why I stopped at the measurement: 1. **the signature is ours to trim only if it carries something we added.** 66 components for a vertex shader's interpolants is a lot; if any of those elements are ours (rather than the title's), dropping them answers the class for free. I have not established that — it needs the console's own signature next to ours, which the dumper can give and I have not done; 2. **split the dispatch**: a mesh shader that wants 128 vertices could be run as two with 64 each. That changes how the title's draws bind (the draw count per dispatch), so it is a scheduler change, not a translator one; 3. **reduce `max_vertices` to 124 and let the extra four vertices be emitted by a second dispatch** — same problem as 2, smaller number; 4. **translate these to compute + draws**, which is what the title's own console path may be doing anyway; the largest of the options and the one that needs the most measurement first. Of the four, only the first is a candidate for a small change, and it depends on a fact nobody has written down yet: whether our emitted signature for these mesh shaders has elements the console's does not. That is the next measurement, and it is cheap — the same dump, compared against the title's signature bytes. For the record, the other classes I looked at this round and did not touch: 195 programs refused for "an address in an SGPR that is no root parameter" (address resolution for computed bases, a feature), 40 for "a register joining a lane mask and data, read as data" and 36 for "a descriptor read only as data" (corners of the structurisation). None is a one-line answer either, and I would rather leave four honest measurements than four half-fixes. No game data is involved: signature element counts, thread-group sizes and byte arithmetic. Written with an AI assistant.
fiestorra commented 2026-11-25 04:07:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-25T03:44:30Z.


Correction to what I said one comment ago: the 264 bytes per vertex are the title's own signature, so there is nothing of ours to trim

I proposed that the first thing to check was whether our emitted signature carries elements the console's does not. It does not, and here is the measurement rather than the assumption:

  • native.rs::ms_io builds the mesh stage from the console's own stage data, and the outputs come from vs_outputs(data) — the same list the emitter writes out. MS_INFO+2 and MS_INFO+4 are max_vertices and max_primitives, read straight from the title's blob: the 128, 128 in the module is what the title declares, not a default of ours.
  • so 264 bytes per vertex and 128 vertices are both the title's numbers, and their product is 33,792 against the host's 32,768.

Which makes this a capability gap between the console's mesh shader and D3D12's, not a bug in the translation: the title asks for an output budget 3% larger than the host allows, and no flag, signature trim or max_vertices adjustment is faithful — every one of those changes what the shader may produce.

The honest options are therefore the emulation ones, and they are the maintainer's call, not a pull request I should open unilaterally:

  1. run the mesh shader as two dispatches of 64 vertices — the shader itself does not change, but whatever binds the draws has to know that one dispatch became two, so it is a scheduler change with a real failure mode (duplicate primitives at the seam);
  2. translate these to compute + draws, which is what the console's own fallback path may already do for hardware without mesh shaders — worth looking at before writing anything, and #1612 is where that ground is being discussed;
  3. accept the 71 as programs the host cannot run as mesh, and say so where the census reports them, so nobody spends another round on arithmetic that cannot come out.

What I would not do is quietly lower max_vertices to 124 or drop signature elements to fit: that passes the validator and changes what the shader outputs, which is the kind of green check this repository has been careful to avoid.

For the record, of the four classes I have measured this week, this is the only one that is not a defect at all — the other three (195 SGPR addresses, 40 lane-mask-as-data, 36 descriptor-as-data) are features we have not written yet.

No game data is involved: counts, offsets and the byte arithmetic.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152198525 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7152198525). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-25T03:44:30Z. --- **Correction to what I said one comment ago: the 264 bytes per vertex are the title's own signature, so there is nothing of ours to trim** I proposed that the first thing to check was whether our emitted signature carries elements the console's does not. It does not, and here is the measurement rather than the assumption: - `native.rs::ms_io` builds the mesh stage from the console's own stage data, and the outputs come from `vs_outputs(data)` — the same list the emitter writes out. `MS_INFO+2` and `MS_INFO+4` are `max_vertices` and `max_primitives`, read straight from the title's blob: the `128, 128` in the module is what the title declares, not a default of ours. - so 264 bytes per vertex and 128 vertices are both the title's numbers, and their product is 33,792 against the host's 32,768. Which makes this a **capability gap between the console's mesh shader and D3D12's**, not a bug in the translation: the title asks for an output budget 3% larger than the host allows, and no flag, signature trim or `max_vertices` adjustment is faithful — every one of those changes what the shader may produce. The honest options are therefore the emulation ones, and they are the maintainer's call, not a pull request I should open unilaterally: 1. **run the mesh shader as two dispatches of 64 vertices** — the shader itself does not change, but whatever binds the draws has to know that one dispatch became two, so it is a scheduler change with a real failure mode (duplicate primitives at the seam); 2. **translate these to compute + draws**, which is what the console's own fallback path may already do for hardware without mesh shaders — worth looking at before writing anything, and #1612 is where that ground is being discussed; 3. **accept the 71** as programs the host cannot run as mesh, and say so where the census reports them, so nobody spends another round on arithmetic that cannot come out. What I would not do is quietly lower `max_vertices` to 124 or drop signature elements to fit: that passes the validator and changes what the shader outputs, which is the kind of green check this repository has been careful to avoid. For the record, of the four classes I have measured this week, this is the only one that is not a defect at all — the other three (195 SGPR addresses, 40 lane-mask-as-data, 36 descriptor-as-data) are features we have not written yet. No game data is involved: counts, offsets and the byte arithmetic. Written with an AI assistant.
YouKnowWh commented 2026-11-25 05:06:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YouKnowWh on 2026-11-25T05:02:23Z.


Follow-up on whether any of the 867 VS flag failures are selected during a real run. Matching the full input containers to the census and their BLAKE3 prefixes to our archived Windows RTX 5070 Ti logs gives at least 9 distinct first-bound VS hashes in the union. The fxceless runs at 31714deb and 7b0f736 matched 8 and 9 respectively; an older local integration matched 6. These are runtime selections on those builds, not a patched-versus-unpatched game A/B on 940d32f.

One stable pair for capture filtering: VS 2634f1e308bc9ae1 (VS_TransformPreSkin_VfxVBuffer_c6448ed4_Wrapped) + PS 3dc5a8831849e058 (PS_VfxVBuffer_c6448ed4_Wrapped). The two first-bind records have the same title pipeline address and frame within each of the three runs (frames 1615, 1566 and 1645 respectively); all three also log successful host creation of that shader pair.

Offline on 940d32f and with the candidate flags fix, the VS changes from validation failure to pass. DXC dumpbin shows identical function bodies; only the entry flags and corresponding SFI0 feature differ. The PS blobs are byte-identical. Using the two exact saved VS blobs and that same PS in one WARP graphics-PSO harness, both PSOs created. Consequently this is a concrete runtime-selected validation case, not evidence that the metadata fix restores pixels or unblocks a draw. We have no matching draw-completion readback for this pair. No new game run and no game assets attached.

AI-assisted analysis.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7153392665 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7153392665). Originally posted by [YouKnowWh](https://github.com/YouKnowWh) on 2026-11-25T05:02:23Z. --- Follow-up on whether any of the 867 VS flag failures are selected during a real run. Matching the full input containers to the census and their BLAKE3 prefixes to our archived Windows RTX 5070 Ti logs gives **at least 9 distinct first-bound VS hashes** in the union. The fxceless runs at 31714deb and 7b0f736 matched 8 and 9 respectively; an older local integration matched 6. These are runtime selections on those builds, not a patched-versus-unpatched game A/B on 940d32f. One stable pair for capture filtering: VS `2634f1e308bc9ae1` (VS_TransformPreSkin_VfxVBuffer_c6448ed4_Wrapped) + PS `3dc5a8831849e058` (PS_VfxVBuffer_c6448ed4_Wrapped). The two first-bind records have the same title pipeline address and frame within each of the three runs (frames 1615, 1566 and 1645 respectively); all three also log successful host creation of that shader pair. Offline on 940d32f and with the candidate flags fix, the VS changes from validation failure to pass. DXC dumpbin shows identical function bodies; only the entry flags and corresponding SFI0 feature differ. The PS blobs are byte-identical. Using the two exact saved VS blobs and that same PS in one WARP graphics-PSO harness, both PSOs created. Consequently this is a concrete runtime-selected validation case, **not evidence that the metadata fix restores pixels or unblocks a draw**. We have no matching draw-completion readback for this pair. No new game run and no game assets attached. AI-assisted analysis.
Venom2054 commented 2026-11-26 09:06:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Venom2054 on 2026-11-26T09:03:21Z.


Retested the compute implicit-derivative case on 63bcca43 with Windows SDK dxil.dll 1.9.2602.17 and an RTX 5070 Ti. All five CS_TraceShadowRays variants emitted DXIL and failed validation on that revision. I ported just the compute metadata change from wbkepler’s #306 (dx.valver 1.8 and PSVRuntimeInfo3) for this test.

Variant SDK validation after D3D12 compute PSO after
Eighth, Quarter, Half, FullAdaptive 4/4 pass 4/4 created
Full (07c93bfb77fecebb) pass refused because it requires 64 lanes and the adapter maximum is 32

I adapted the public synthetic example from #306 to store the sampled value to a raw UAV. With the store, implicit samples at [4,8,1] and [8,8,1] fail validation before the metadata change and pass validation and PSO creation after it. Without the store both examples already passed validation on unmodified 63bcca43. A [3,3,1] implicit sample with the store still fails after the change for the expected thread-group shape. An explicit level-zero control emitted byte-identical DXIL before and after.

These are offline validation and PSO-creation results. The five shadow variants were not dispatched in this test.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7187356019 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7187356019). Originally posted by [Venom2054](https://github.com/Venom2054) on 2026-11-26T09:03:21Z. --- Retested the compute implicit-derivative case on `63bcca43` with Windows SDK `dxil.dll` 1.9.2602.17 and an RTX 5070 Ti. All five `CS_TraceShadowRays` variants emitted DXIL and failed validation on that revision. I ported just the compute metadata change from wbkepler’s #306 (`dx.valver` 1.8 and `PSVRuntimeInfo3`) for this test. | Variant | SDK validation after | D3D12 compute PSO after | | --- | --- | --- | | Eighth, Quarter, Half, FullAdaptive | 4/4 pass | 4/4 created | | Full (`07c93bfb77fecebb`) | pass | refused because it requires 64 lanes and the adapter maximum is 32 | I adapted the public synthetic example from #306 to **store the sampled value to a raw UAV**. With the store, implicit samples at `[4,8,1]` and `[8,8,1]` fail validation before the metadata change and pass validation and PSO creation after it. Without the store both examples already passed validation on unmodified `63bcca43`. A `[3,3,1]` implicit sample with the store still fails after the change for the expected thread-group shape. An explicit level-zero control emitted byte-identical DXIL before and after. These are offline validation and PSO-creation results. The five shadow variants were not dispatched in this test.
Venom2054 commented 2026-11-26 18:44:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Venom2054 on 2026-11-26T18:44:15Z.


Follow-up to my RTX 5070 Ti result. The Full shadow variant previously passed DXIL validation but the driver refused its 64-lane compute pipeline. On the same GPU, the renderer now creates all five shadow pipelines, including Full. For Full I used the two cooperating 32-lane halves from #439, the derivative metadata from #306, and adapted the descriptor and guest-memory bindings to the local renderer. A separate synthetic dispatch checked the cross-half exchange and ray/node results against a CPU reference: all 2,048 output words matched across 512 cases.

For context, the local integrated profile had 17 missing entries. I regenerated the final 10 character-material pixel shaders, 5 shadow compute shaders and 2 water compute shaders from the local archive. All 17 passed SDK validation and pipeline creation on the physical card, including the ten pixel shaders paired with their actual mesh stages. A subsequent translate --warm all found 25,889 unique entries, all 25,889 already cached, zero translation failures.

The archive count describes this warmed local integration. Full still needs a scene that demonstrably dispatches it before I can report its effect on lighting.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200795278 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7200795278). Originally posted by [Venom2054](https://github.com/Venom2054) on 2026-11-26T18:44:15Z. --- Follow-up to my [RTX 5070 Ti result](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7187356019). The Full shadow variant previously passed DXIL validation but the driver refused its 64-lane compute pipeline. On the same GPU, the renderer now creates **all five shadow pipelines, including Full**. For Full I used the two cooperating 32-lane halves from #439, the derivative metadata from #306, and adapted the descriptor and guest-memory bindings to the local renderer. A separate synthetic dispatch checked the cross-half exchange and ray/node results against a CPU reference: all 2,048 output words matched across 512 cases. For context, the local integrated profile had 17 missing entries. I regenerated the final 10 character-material pixel shaders, 5 shadow compute shaders and 2 water compute shaders from the local archive. All 17 passed SDK validation and pipeline creation on the physical card, including the ten pixel shaders paired with their actual mesh stages. A subsequent `translate --warm all` found **25,889 unique entries, all 25,889 already cached, zero translation failures**. The archive count describes this warmed local integration. Full still needs a scene that demonstrably dispatches it before I can report its effect on lighting.
kilolimaVI commented 2026-11-28 22:03:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-28T22:03:21Z.


@fiestorra @YouKnowWh @iurysf would one of you rerun the census on current main 63bcca4 (ideally also with #1924 on top), with the translation refusals counted per reason like fiestorra's earlier "195 SGPR address / 40 lane mask read as data / 36 descriptor read only as data"? Main's lane-mask handling has changed since those counts, so I don't know which of the 40 remain.

I'd take the lane-mask and wave reasons on a Radeon 780M (wave32 + wave64): #3556 already removes "a 16-bit wave reduction outside compute" and fixes three wave32-on-64-lane-host defects, and #1924 now passes CI with the file-size split on kilolimaVI/VIctory shader/1924-geometry-split. A per-reason count would show which refusals are worth taking next.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7246464160 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7246464160). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-28T22:03:21Z. --- @fiestorra @YouKnowWh @iurysf would one of you rerun the census on current main `63bcca4` (ideally also with #1924 on top), with the translation refusals counted per reason like fiestorra's earlier "195 SGPR address / 40 lane mask read as data / 36 descriptor read only as data"? Main's lane-mask handling has changed since those counts, so I don't know which of the 40 remain. I'd take the lane-mask and wave reasons on a Radeon 780M (wave32 + wave64): #3556 already removes "a 16-bit wave reduction outside compute" and fixes three wave32-on-64-lane-host defects, and #1924 now passes CI with the file-size split on `kilolimaVI/VIctory` `shader/1924-geometry-split`. A per-reason count would show which refusals are worth taking next. AI-assisted (Claude).
fiestorra commented 2026-11-28 23:01:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-28T23:01:34Z.


Rerun on main 63bcca43, and with #1924 on top: the refusal counts, per reason

Command, both runs identical except the binary:

victory translate <shaders.rpf> --validate --list --jobs 10 > censo.txt

and the count comes from the per-program lines, which are the ones that carry a reason:

<path>@0x<offset> <NAME> <stage> at 0x<addr>  <stage2>: <reason>

26,503 containers, 26,084 programs translated, 25,898 per-program lines.

main 63bcca43 — 220 refusal lines

stage reason count
resources an address in an SGPR that is no root parameter 195
emit a lane-mask join of an untracked mask 13
emit v_cvt_f32_f64 5
emit a lane mask read as data 4
emit v_permlanex16_b32 1
emit barycentrics read directly 1
emit a descriptor read only as data 1

main + #1924 (35ea67b0) — 25 refusal lines

stage reason count
emit a lane-mask join of an untracked mask 13
emit v_cvt_f32_f64 5
emit a lane mask read as data 4
emit v_permlanex16_b32 1
emit barycentrics read directly 1
emit a descriptor read only as data 1

The 195 SGPR ones are gone with #1924, and the reason is in the header rather than in a guess: resources tracked goes from 25889 of 26084 to 26084 of 26084, and the geometry and export stages appear at all (195 + 195 programs, all emitted and validated) — they were the ones the address tracker did not cover.

So to your question, of the 40 "lane mask read as data" there are 4 left, and of the 36 "descriptor read only as data" there is 1. What grew is a different lane-mask reason: "a lane-mask join of an untracked mask", 13, which was not in those earlier counts at all. That one, v_cvt_f32_f64 (5) and the 4 remaining lane-mask reads are the whole of what is left after #1924 — 24 of the 25 are compute programs (2658 emitted of 2682), the 25th is a pixel program.

Two numbers that are not translation refusals, so they do not go in the table above, and I would not want them read as such: 748 modules are emitted and then fail dxil.dll (Entry function performs some operation that is incompatible with the shader stage…), and 71 more fail with vertex plus primitive output size is greater than 32768. Those are validation failures over programs that translate, and they are unchanged between the two runs.

What I did not do: your Radeon 780M wave32/wave64 data set, and #3556. My numbers are the corpus census only, on a machine with no title run involved.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7247146840 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7247146840). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-28T23:01:34Z. --- **Rerun on `main` `63bcca43`, and with #1924 on top: the refusal counts, per reason** Command, both runs identical except the binary: ``` victory translate <shaders.rpf> --validate --list --jobs 10 > censo.txt ``` and the count comes from the per-program lines, which are the ones that carry a reason: ``` <path>@0x<offset> <NAME> <stage> at 0x<addr> <stage2>: <reason> ``` 26,503 containers, 26,084 programs translated, 25,898 per-program lines. ### `main` `63bcca43` — 220 refusal lines | stage | reason | count | |---|---|---| | resources | an address in an SGPR that is no root parameter | **195** | | emit | a lane-mask join of an untracked mask | **13** | | emit | `v_cvt_f32_f64` | **5** | | emit | **a lane mask read as data** | **4** | | emit | `v_permlanex16_b32` | **1** | | emit | barycentrics read directly | **1** | | emit | **a descriptor read only as data** | **1** | ### `main` + #1924 (`35ea67b0`) — 25 refusal lines | stage | reason | count | |---|---|---| | emit | a lane-mask join of an untracked mask | **13** | | emit | `v_cvt_f32_f64` | **5** | | emit | a lane mask read as data | **4** | | emit | `v_permlanex16_b32` | **1** | | emit | barycentrics read directly | **1** | | emit | a descriptor read only as data | **1** | **The 195 SGPR ones are gone with #1924**, and the reason is in the header rather than in a guess: resources tracked goes from `25889 of 26084` to `26084 of 26084`, and the geometry and export stages appear at all (195 + 195 programs, all emitted and validated) — they were the ones the address tracker did not cover. So to your question, **of the 40 "lane mask read as data" there are 4 left**, and of the 36 "descriptor read only as data" there is **1**. What grew is a different lane-mask reason: **"a lane-mask join of an untracked mask", 13**, which was not in those earlier counts at all. That one, `v_cvt_f32_f64` (5) and the 4 remaining lane-mask reads are the whole of what is left after #1924 — 24 of the 25 are compute programs (`2658 emitted of 2682`), the 25th is a pixel program. Two numbers that are **not** translation refusals, so they do not go in the table above, and I would not want them read as such: 748 modules are emitted and then fail `dxil.dll` (`Entry function performs some operation that is incompatible with the shader stage…`), and 71 more fail with `vertex plus primitive output size is greater than 32768`. Those are validation failures over programs that translate, and they are unchanged between the two runs. What I did not do: your Radeon 780M wave32/wave64 data set, and #3556. My numbers are the corpus census only, on a machine with no title run involved. Written with an AI assistant.
kilolimaVI commented 2026-11-29 10:59:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T10:59:44Z.


@fiestorra thank you, that's exactly the per-reason view I was after.

Since "a lane-mask join of an untracked mask" (13) is now the largest refusal after geometry, and ten open PRs touch that path, would you rerun the same census on three of them so we know which one actually clears those 13? Candidates, each on its own head: #385 (track every incoming edge of a lane-mask phi, merge candidate), #1407 + #1420 (stacked), and #2978. A count of the 13 per branch is enough. Whichever clears them, I'll run its tests on the Radeon 780M at wave32 and wave64 and help get it onto current main.

For #1315 vs #1924: #1315 is now on current main with the triage's file-size fix at kilolimaVI/VIctory shader/1315-on-main, if you want to confirm it also gives 25.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7254806965 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7254806965). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-29T10:59:44Z. --- @fiestorra thank you, that's exactly the per-reason view I was after. Since "a lane-mask join of an untracked mask" (13) is now the largest refusal after geometry, and ten open PRs touch that path, would you rerun the same census on three of them so we know which one actually clears those 13? Candidates, each on its own head: #385 (track every incoming edge of a lane-mask phi, merge candidate), #1407 + #1420 (stacked), and #2978. A count of the 13 per branch is enough. Whichever clears them, I'll run its tests on the Radeon 780M at wave32 and wave64 and help get it onto current main. For #1315 vs #1924: #1315 is now on current main with the triage's file-size fix at `kilolimaVI/VIctory` `shader/1315-on-main`, if you want to confirm it also gives 25. AI-assisted (Claude).
fiestorra commented 2026-11-29 11:22:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-29T11:22:47Z.


Reran on all three, and the 13 go to zero on one of them only

Same command each time (victory translate <shaders.rpf> --validate --list --jobs 10), same count rule (the per-program lines that carry at 0x<addr> <stage>: <reason>), release builds, own head each.

branch head base refusal lines "a lane-mask join of an untracked mask"
main 63bcca43 — 220 13
#385 90997428 current main 207 0
#2978 e854af8d current main 219 17
#1407 + #1420 (stacked) f9fb9aaa 940d32f6 (160 behind) 298 6
that base alone 940d32f6 — 298 6
#1315 on main (kilolimaVI shader/1315-on-main) 67fdc55a current main 25 13

#385 clears all 13. Every other reason is untouched and identical to main (v_cvt_f32_f64 5, a lane mask read as data 4, v_permlanex16_b32 1, barycentrics 1, a descriptor read only as data 1), and the 195 SGPR ones stay because it does not carry the geometry work. Its whole delta on the corpus is 207 = 220 − 13.

#2978 does not clear them; it adds four. 13 → 17, with the same everything else. Whatever it changes about the incoming edges, on this corpus it produces more untracked joins, not fewer.

#1407 + #1420 changes nothing measurable. On its own base the census is 298 refusals, and with the pair applied it is 298 with an identical distribution — I diffed the two tables reason by reason and there is no line that differs. So it is not a competitor for the 13; on this corpus it is not visible at all. (Measured as it stands: main merged into its head conflicts in crates/victory-shader/src/emit/lower.rs, and I did not resolve someone else's conflict to measure it, so the comparison that is fair is the one against its own base.)

#1315 on main confirms 25, as you expected: 195 SGPR gone with geometry, and the 13 joins still there. So #1315 and #385 are orthogonal — #1315 clears the SGPR class, #385 clears the joins.

For the record on where #385 stands elsewhere: it is one commit on current main (0 behind), so it is a clean rebase already, and it is the only one of the three that both sits on main and moves the number you asked about.

The 780M wave32/wave64 run is yours, as you said; nothing here measures a device.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7255071331 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7255071331). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-29T11:22:47Z. --- **Reran on all three, and the 13 go to zero on one of them only** Same command each time (`victory translate <shaders.rpf> --validate --list --jobs 10`), same count rule (the per-program lines that carry ` at 0x<addr> <stage>: <reason>`), release builds, own head each. | branch | head | base | refusal lines | "a lane-mask join of an untracked mask" | |---|---|---|---|---| | `main` | `63bcca43` | — | 220 | **13** | | **#385** | `90997428` | current `main` | **207** | **0** | | #2978 | `e854af8d` | current `main` | 219 | **17** | | #1407 + #1420 (stacked) | `f9fb9aaa` | `940d32f6` (160 behind) | 298 | 6 | | that base alone | `940d32f6` | — | 298 | 6 | | #1315 on main (`kilolimaVI` `shader/1315-on-main`) | `67fdc55a` | current `main` | **25** | 13 | **#385 clears all 13.** Every other reason is untouched and identical to `main` (`v_cvt_f32_f64` 5, a lane mask read as data 4, `v_permlanex16_b32` 1, barycentrics 1, a descriptor read only as data 1), and the 195 SGPR ones stay because it does not carry the geometry work. Its whole delta on the corpus is `207 = 220 − 13`. **#2978 does not clear them; it adds four.** 13 → 17, with the same everything else. Whatever it changes about the incoming edges, on this corpus it produces more untracked joins, not fewer. **#1407 + #1420 changes nothing measurable.** On its own base the census is 298 refusals, and with the pair applied it is **298 with an identical distribution** — I diffed the two tables reason by reason and there is no line that differs. So it is not a competitor for the 13; on this corpus it is not visible at all. (Measured as it stands: `main` merged into its head conflicts in `crates/victory-shader/src/emit/lower.rs`, and I did not resolve someone else's conflict to measure it, so the comparison that is fair is the one against its own base.) **#1315 on main confirms 25**, as you expected: 195 SGPR gone with geometry, and the 13 joins still there. So #1315 and #385 are orthogonal — #1315 clears the SGPR class, #385 clears the joins. For the record on where #385 stands elsewhere: it is one commit on current `main` (0 behind), so it is a clean rebase already, and it is the only one of the three that both sits on `main` and moves the number you asked about. The 780M wave32/wave64 run is yours, as you said; nothing here measures a device. Written with an AI assistant.
kilolimaVI commented 2026-11-29 12:45:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T12:45:54Z.


@fiestorra thank you, that settled it: #385 is the one, and it now runs on hardware here (both its tests pass on the Radeon 780M; WARP skips them).

If you have one more run in you: kilolimaVI/VIctory integration/shader-8 (c5ce446) is main plus all eight pending shader PRs that move these numbers (#3097, #2999, #3617, #3717, #1315, #3716, #2398, #385), each tested on the 780M. By your counts it should land at 12 refusals (v_cvt_f32_f64 5, lane mask read as data 4, and three singles), and the validator failures should drop by the #2999 class (735) and the 71 mesh programs. A census of that one branch would confirm the whole package in one number for the maintainers.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7256047172 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7256047172). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-29T12:45:54Z. --- @fiestorra thank you, that settled it: #385 is the one, and it now runs on hardware here (both its tests pass on the Radeon 780M; WARP skips them). If you have one more run in you: `kilolimaVI/VIctory` `integration/shader-8` (`c5ce446`) is main plus all eight pending shader PRs that move these numbers (#3097, #2999, #3617, #3717, #1315, #3716, #2398, #385), each tested on the 780M. By your counts it should land at 12 refusals (v_cvt_f32_f64 5, lane mask read as data 4, and three singles), and the validator failures should drop by the #2999 class (735) and the 71 mesh programs. A census of that one branch would confirm the whole package in one number for the maintainers. AI-assisted (Claude).
kilolimaVI commented 2026-11-29 13:35:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T13:35:21Z.


@fiestorra small update to my request above: the newest tree is kilolimaVI/VIctory integration/shader-10 (9dd3e7c), which adds #1262 (v_cvt_f32_f64, the 5) and #3401 (lane-mask SCC read as data, possibly the 4) to the earlier eight, all tested on the 780M. If you census one branch, that one shows the most. Expected: 3 to 7 refusals left.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7256651658 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7256651658). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-29T13:35:21Z. --- @fiestorra small update to my request above: the newest tree is `kilolimaVI/VIctory` `integration/shader-10` (`9dd3e7c`), which adds #1262 (`v_cvt_f32_f64`, the 5) and #3401 (lane-mask SCC read as data, possibly the 4) to the earlier eight, all tested on the 780M. If you census one branch, that one shows the most. Expected: 3 to 7 refusals left. AI-assisted (Claude).
fiestorra commented 2026-11-29 14:12:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-29T14:12:09Z.


integration/shader-10 (9dd3e7c3): 12 refusals, not 3–7 — and here is exactly where the four and the five come from

Same command and same counting rule as before, release build of that head.

main 63bcca43 integration/shader-10 9dd3e7c3
refusal lines 220 12
an address in an SGPR that is no root parameter 195 0
a lane-mask join of an untracked mask 13 0
v_cvt_f32_f64 5 0
a lane mask read as data 4 4
a whole-wave section step the simulation does not follow — 5
v_permlanex16_b32 1 1
barycentrics read directly 1 1
a descriptor read only as data 1 1

The 4 are the same four programs as on main, so #3401 does not reach them — they are the bvh_skinning compute family, all four addressed below:

0xbe5c0f9 bvh_skinning:CSComputeSkinningPedBlendShapes_1c34db0a_Wrapped
0xbe646f6 bvh_skinning:CSComputeSkinningPedBlendShapesSecMotion_1c34db0a_Wrapped
0xbe8bb1f bvh_skinning:CSComputeSkinningPedBlendShapesVelocity_1c34db0a_Wrapped
0xbe95c7b bvh_skinning:CSComputeSkinningPedBlendShapesSecMotionVelocity_1c34db0a_Wrapped

Same offsets, same reason, on both trees. Whatever "lane-mask SCC read as data" fixes, this shape is a different one — it is the mask itself being consumed as data, not the SCC.

The 5 are not new refusals, they are the same programs stopping one step later. These five refused on main at v_cvt_f32_f64; with #1262 in the tree the conversion translates and the same record now stops at the next thing:

0xf6c0e2e water_shading:CS_TransmissionVolumetrics_bd25dcd5_Wrapped            at 0x7e0
0xf6c8f7f water_shading:CS_TransmissionVolumetrics_Tiled_ff333313_Wrapped      at 0x7e8
0xf6cc867 water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights_ff333313  at 0x7e8
0xf6d2c02 water_shading:CS_TransmissionVolumetricsSubmerged_bbfb2953           ...
0xf6da6ad water_shading:CS_TransmissionVolumetrics_VolumePortalsOnly_bd25dcd5  ...

That is the v_cvt_f32_f64 fix showing up as progress rather than as a cleared refusal, and it is worth knowing before the next refusal is picked: those five move from "conversion" to "whole-wave section step".

So the honest count for the tree is 12, and the work left in it is one new reason (5, all water_shading), the 4 bvh_skinning masks, and the three singletons. If #3401 is expected to clear the 4, that expectation does not hold on this corpus and the four are a distinct shape.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7257119828 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7257119828). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-29T14:12:09Z. --- **`integration/shader-10` (`9dd3e7c3`): 12 refusals, not 3–7 — and here is exactly where the four and the five come from** Same command and same counting rule as before, release build of that head. | | `main` `63bcca43` | `integration/shader-10` `9dd3e7c3` | |---|---|---| | refusal lines | 220 | **12** | | an address in an SGPR that is no root parameter | 195 | 0 | | a lane-mask join of an untracked mask | 13 | 0 | | `v_cvt_f32_f64` | 5 | **0** | | a lane mask read as data | 4 | **4** | | a whole-wave section step the simulation does not follow | — | **5** | | `v_permlanex16_b32` | 1 | 1 | | barycentrics read directly | 1 | 1 | | a descriptor read only as data | 1 | 1 | **The 4 are the same four programs as on `main`**, so #3401 does not reach them — they are the `bvh_skinning` compute family, all four addressed below: ``` 0xbe5c0f9 bvh_skinning:CSComputeSkinningPedBlendShapes_1c34db0a_Wrapped 0xbe646f6 bvh_skinning:CSComputeSkinningPedBlendShapesSecMotion_1c34db0a_Wrapped 0xbe8bb1f bvh_skinning:CSComputeSkinningPedBlendShapesVelocity_1c34db0a_Wrapped 0xbe95c7b bvh_skinning:CSComputeSkinningPedBlendShapesSecMotionVelocity_1c34db0a_Wrapped ``` Same offsets, same reason, on both trees. Whatever "lane-mask SCC read as data" fixes, this shape is a different one — it is the mask itself being consumed as data, not the SCC. **The 5 are not new refusals, they are the same programs stopping one step later.** These five refused on `main` at `v_cvt_f32_f64`; with #1262 in the tree the conversion translates and the same record now stops at the next thing: ``` 0xf6c0e2e water_shading:CS_TransmissionVolumetrics_bd25dcd5_Wrapped at 0x7e0 0xf6c8f7f water_shading:CS_TransmissionVolumetrics_Tiled_ff333313_Wrapped at 0x7e8 0xf6cc867 water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights_ff333313 at 0x7e8 0xf6d2c02 water_shading:CS_TransmissionVolumetricsSubmerged_bbfb2953 ... 0xf6da6ad water_shading:CS_TransmissionVolumetrics_VolumePortalsOnly_bd25dcd5 ... ``` That is the `v_cvt_f32_f64` fix showing up as progress rather than as a cleared refusal, and it is worth knowing before the next refusal is picked: those five move from "conversion" to "whole-wave section step". So the honest count for the tree is **12**, and the work left in it is one new reason (5, all `water_shading`), the 4 `bvh_skinning` masks, and the three singletons. If #3401 is expected to clear the 4, that expectation does not hold on this corpus and the four are a distinct shape. Written with an AI assistant.
kilolimaVI commented 2026-11-29 14:39:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T14:39:19Z.


@fiestorra thanks, that settles #3401 vs the four. Since no open PR covers the bvh_skinning shape, I'd like to take it: a fix plus a hardware test on the 780M (wave32 and wave64), with a synthetic program of the same shape, so no title code needs to be shared.

What I'd need is the shape, not the bytes, for one of the four (say CSComputeSkinningPedBlendShapes_1c34db0a):

  • the refusal line with its at 0x… offset,
  • the instruction at that offset (mnemonic and operands as registers, e.g. v_cndmask_b32 v3, 0, 1, s[10:11] or s_bcnt1_i32_b64 s4, s[10:11]),
  • where that mask register was written (the v_cmp* / s_and* / s_*saveexec* that made it), and whether anything between them is a branch, a loop back edge or an EXEC change,
  • the wave size the program declares (wave32 or wave64).

If the four differ in shape, one line each on how is enough.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7257471899 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7257471899). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-29T14:39:19Z. --- @fiestorra thanks, that settles #3401 vs the four. Since no open PR covers the `bvh_skinning` shape, I'd like to take it: a fix plus a hardware test on the 780M (wave32 and wave64), with a synthetic program of the same shape, so no title code needs to be shared. What I'd need is the shape, not the bytes, for one of the four (say `CSComputeSkinningPedBlendShapes_1c34db0a`): - the refusal line with its `at 0x…` offset, - the instruction at that offset (mnemonic and operands as registers, e.g. `v_cndmask_b32 v3, 0, 1, s[10:11]` or `s_bcnt1_i32_b64 s4, s[10:11]`), - where that mask register was written (the `v_cmp*` / `s_and*` / `s_*saveexec*` that made it), and whether anything between them is a branch, a loop back edge or an EXEC change, - the wave size the program declares (wave32 or wave64). If the four differ in shape, one line each on how is enough. AI-assisted (Claude).
kilolimaVI commented 2026-11-29 14:51:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T14:51:54Z.


@fiestorra one more branch when you have time: kilolimaVI/VIctory integration/shader-11 (fa02e0e) = shader-10 + #2978 (whole-wave binary64 sums), with v_cvt_f32_f64 from #1262 (#2978's own version failed #1262's modifier tests on the 780M). The question is whether the five water_shading programs that now stop at "a whole-wave section step the simulation does not follow" clear, and whether #2978's +4 lane-mask joins you saw on main stay at 0 with #385 in the tree. Expected 7 if both hold.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7257636056 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7257636056). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-29T14:51:54Z. --- @fiestorra one more branch when you have time: `kilolimaVI/VIctory` `integration/shader-11` (`fa02e0e`) = shader-10 + #2978 (whole-wave binary64 sums), with `v_cvt_f32_f64` from #1262 (#2978's own version failed #1262's modifier tests on the 780M). The question is whether the five `water_shading` programs that now stop at "a whole-wave section step the simulation does not follow" clear, and whether #2978's +4 lane-mask joins you saw on main stay at 0 with #385 in the tree. Expected 7 if both hold. AI-assisted (Claude).
fiestorra commented 2026-11-29 14:57:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-29T14:57:57Z.


integration/shader-11 (fa02e0e6): 7 refusals, and both of your questions answer yes

Same command and counting rule.

main 63bcca43 shader-10 9dd3e7c3 shader-11 fa02e0e6
refusal lines 220 12 7
a lane mask read as data 4 4 4
a whole-wave section step the simulation does not follow — 5 0
a lane-mask join of an untracked mask 13 0 0
v_cvt_f32_f64 5 0 0
a descriptor read only as data 1 1 1
barycentrics read directly 1 1 1
v_permlanex16_b32 1 1 1

The five water_shading ones clear: all five CS_TransmissionVolumetrics* now print validated, so #2978 does take them past "a whole-wave section step the simulation does not follow" with #1262's v_cvt_f32_f64 underneath it, exactly as you said it should.

The lane-mask joins stay at 0: the +4 you and I saw with #2978 alone on main do not come back with #385 in the tree. So #385 covers what #2978 reintroduces, at least on this corpus — 13 → 0 with both, and no refusal anywhere in the run that mentions a join.

What is left is the four bvh_skinning programs and the three singletons (a descriptor read only as data, barycentrics, v_permlanex16_b32), which is the 7 you predicted.

Offsets for the four, unchanged from main, so whoever takes them has the same starting point:

0xbe5c0f9 CSComputeSkinningPedBlendShapes_1c34db0a                at 0xd94
0xbe646f6 CSComputeSkinningPedBlendShapesSecMotion_1c34db0a       at 0xdbc
0xbe8bb1f CSComputeSkinningPedBlendShapesVelocity_1c34db0a        at 0x14dc
0xbe95c7b CSComputeSkinningPedBlendShapesSecMotionVelocity_1c34db0a at 0x150c

I am working on the shape you asked for in your other message (instruction at 0xd94, where its mask comes from, control flow between, declared wave size) and will post it separately — it needs a disassembly pass, not a census.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7257713299 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7257713299). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-29T14:57:57Z. --- **`integration/shader-11` (`fa02e0e6`): 7 refusals, and both of your questions answer yes** Same command and counting rule. | | `main` `63bcca43` | `shader-10` `9dd3e7c3` | `shader-11` `fa02e0e6` | |---|---|---|---| | refusal lines | 220 | 12 | **7** | | a lane mask read as data | 4 | 4 | **4** | | a whole-wave section step the simulation does not follow | — | 5 | **0** | | a lane-mask join of an untracked mask | 13 | 0 | **0** | | `v_cvt_f32_f64` | 5 | 0 | 0 | | a descriptor read only as data | 1 | 1 | 1 | | barycentrics read directly | 1 | 1 | 1 | | `v_permlanex16_b32` | 1 | 1 | 1 | **The five `water_shading` ones clear**: all five `CS_TransmissionVolumetrics*` now print `validated`, so #2978 does take them past "a whole-wave section step the simulation does not follow" with #1262's `v_cvt_f32_f64` underneath it, exactly as you said it should. **The lane-mask joins stay at 0**: the +4 you and I saw with #2978 alone on `main` do not come back with #385 in the tree. So #385 covers what #2978 reintroduces, at least on this corpus — 13 → 0 with both, and no refusal anywhere in the run that mentions a join. What is left is the four `bvh_skinning` programs and the three singletons (`a descriptor read only as data`, barycentrics, `v_permlanex16_b32`), which is the 7 you predicted. Offsets for the four, unchanged from `main`, so whoever takes them has the same starting point: ``` 0xbe5c0f9 CSComputeSkinningPedBlendShapes_1c34db0a at 0xd94 0xbe646f6 CSComputeSkinningPedBlendShapesSecMotion_1c34db0a at 0xdbc 0xbe8bb1f CSComputeSkinningPedBlendShapesVelocity_1c34db0a at 0x14dc 0xbe95c7b CSComputeSkinningPedBlendShapesSecMotionVelocity_1c34db0a at 0x150c ``` I am working on the shape you asked for in your other message (instruction at `0xd94`, where its mask comes from, control flow between, declared wave size) and will post it separately — it needs a disassembly pass, not a census. Written with an AI assistant.
kilolimaVI commented 2026-11-29 15:00:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T15:00:05Z.


Thank you, fiestorra. For the maintainers, the result in one place:

kilolimaVI/VIctory integration/shader-11 (fa02e0e) takes the title's translation refusals from 220 to 7 of 26,084 programs (fiestorra's census above), and every PR in it is tested on a Radeon 780M (victory-shader lib 361 passed / 0 failed, victory-gpu 246 passed, both clippy configurations and the asset policy pass). It is main 63bcca4 + #3097 (must go first: moves the lowerer tests out of lower.rs, so the rest fits the size limit), #2999, #3617, #3717, #1315 (via shader/1315-on-main, with the triage's file split), #3716, #2398, #385, #1262, #3401, #2978. The conflicts between them are small and resolved in that branch; the one semantic choice is v_cvt_f32_f64 from #1262 rather than #2978 (details on #2978).

I'll take the four bvh_skinning programs once their shape is in.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7257740595 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7257740595). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-29T15:00:05Z. --- Thank you, fiestorra. For the maintainers, the result in one place: `kilolimaVI/VIctory` `integration/shader-11` (`fa02e0e`) takes the title's translation refusals from 220 to 7 of 26,084 programs (fiestorra's census above), and every PR in it is tested on a Radeon 780M (victory-shader lib 361 passed / 0 failed, victory-gpu 246 passed, both clippy configurations and the asset policy pass). It is main `63bcca4` + #3097 (must go first: moves the lowerer tests out of `lower.rs`, so the rest fits the size limit), #2999, #3617, #3717, #1315 (via `shader/1315-on-main`, with the triage's file split), #3716, #2398, #385, #1262, #3401, #2978. The conflicts between them are small and resolved in that branch; the one semantic choice is `v_cvt_f32_f64` from #1262 rather than #2978 (details on #2978). I'll take the four `bvh_skinning` programs once their shape is in. AI-assisted (Claude).
fiestorra commented 2026-11-29 15:05:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-29T15:05:23Z.


The shape of the four, as instructions and registers — no bytes, no code

How I got it: a temporary probe in the emitter that prints the instructions around the failing site when the refusal is this reason, then the whole corpus through it. Four programs print; the four are the bvh_skinning ones you listed, and they are the same shape — only the register numbers and the offsets differ.

Declared wave size: wave64=false on all four (the stage I/O also says threads: [32, 1, 1]).

The refusal line, with its offset, e.g. the first:

0xbe5c0f9 CSComputeSkinningPedBlendShapes_1c34db0a  at 0xd94  emit: a lane mask read as data

The instruction at that offset is a conditional branch on the mask:

000d8c: v_cmpx_gt_u32 exec_lo, lit(0x0000ffff), v8
000d94: s_cbranch_execz label_1598          <- the site the refusal names

Where the mask comes from, in the same window (0xd14–0xd98), which is the part that matters:

000d14: s_mov_b32 s2, exec_lo                 ; the incoming mask saved
000d20: v_cmpx_ne_u32 exec_lo, 0, v7          ; mask = lanes with a nonzero v7
000d24: s_cbranch_execz label_15AC            ; early out
000d30: s_mov_b32 s28, exec_lo                ; accumulator seeded FROM EXEC
000d38: v_readfirstlane_b32 s29, v7
000d3c: v_cmpx_eq_u32 exec_lo, s29, v7        ; mask = lanes equal to the first lane's v7
000d40: s_andn2_wrexec_b32 s28, s28           ; s28 &= ~EXEC   <-- the mask CONSUMED as data
000d44: s_cbranch_execnz label_0D38           ; loop back edge, exit driven by the mask
000d48: s_mov_b32 exec_lo, s3                 ; restore
...
000d6c: s_cselect_b32 s3, exec_lo, 0          ; <-- EXEC consumed as data again
000d88: s_mov_b32 s3, exec_lo

So the mask is not merely branched on: s_andn2_wrexec_b32 (lane compaction: sP &= ~EXEC per iteration) and s_cselect_b32 s3, exec_lo, 0 (selecting on whether any lane survived) both write EXEC into scalar registers, and those values cross a loop back edge (s_cbranch_execnz at 0xd44) before the block that ends at 0xd94. Between the writes and the site there are four v_cmpx_* EXEC changes and two branches, one of them the loop.

How the four differ: they do not. Each is the same sequence with its own registers and offsets:

program site save compaction loop select on EXEC
...PedBlendShapes_1c34db0a 0xd94 s2 s28, s_andn2_wrexec_b32 s28, s28 at 0xd40 s_cselect_b32 s3, exec_lo, 0
...PedBlendShapesSecMotion_1c34db0a 0xdbc s2 s6, same instruction at 0xd68 same, at 0xd94
...PedBlendShapesVelocity_1c34db0a 0x14dc s2 s28 at 0x1488 s3 at 0x14b4
...PedBlendShapesSecMotionVelocity_1c34db0a 0x150c s2 s6 at 0x14b8 s3 at 0x14e4

One caveat about what this is: it is the shape (mnemonics, register classes, offsets, control flow), which is what the corpus census already reports, and no shader bytes, data or full listing leave here. If you want the exact operand of one instruction to write the test, say which and I will describe that one rather than paste a listing.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7257810875 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7257810875). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-29T15:05:23Z. --- **The shape of the four, as instructions and registers — no bytes, no code** How I got it: a temporary probe in the emitter that prints the instructions around the failing site when the refusal is this reason, then the whole corpus through it. Four programs print; the four are the `bvh_skinning` ones you listed, and **they are the same shape** — only the register numbers and the offsets differ. **Declared wave size: `wave64=false` on all four** (the stage I/O also says `threads: [32, 1, 1]`). **The refusal line, with its offset**, e.g. the first: ``` 0xbe5c0f9 CSComputeSkinningPedBlendShapes_1c34db0a at 0xd94 emit: a lane mask read as data ``` **The instruction at that offset** is a conditional branch on the mask: ``` 000d8c: v_cmpx_gt_u32 exec_lo, lit(0x0000ffff), v8 000d94: s_cbranch_execz label_1598 <- the site the refusal names ``` **Where the mask comes from**, in the same window (`0xd14`–`0xd98`), which is the part that matters: ``` 000d14: s_mov_b32 s2, exec_lo ; the incoming mask saved 000d20: v_cmpx_ne_u32 exec_lo, 0, v7 ; mask = lanes with a nonzero v7 000d24: s_cbranch_execz label_15AC ; early out 000d30: s_mov_b32 s28, exec_lo ; accumulator seeded FROM EXEC 000d38: v_readfirstlane_b32 s29, v7 000d3c: v_cmpx_eq_u32 exec_lo, s29, v7 ; mask = lanes equal to the first lane's v7 000d40: s_andn2_wrexec_b32 s28, s28 ; s28 &= ~EXEC <-- the mask CONSUMED as data 000d44: s_cbranch_execnz label_0D38 ; loop back edge, exit driven by the mask 000d48: s_mov_b32 exec_lo, s3 ; restore ... 000d6c: s_cselect_b32 s3, exec_lo, 0 ; <-- EXEC consumed as data again 000d88: s_mov_b32 s3, exec_lo ``` So the mask is **not** merely branched on: `s_andn2_wrexec_b32` (lane compaction: `sP &= ~EXEC` per iteration) and `s_cselect_b32 s3, exec_lo, 0` (selecting on whether any lane survived) both write EXEC into scalar registers, and those values cross a **loop back edge** (`s_cbranch_execnz` at `0xd44`) before the block that ends at `0xd94`. Between the writes and the site there are four `v_cmpx_*` EXEC changes and two branches, one of them the loop. **How the four differ: they do not.** Each is the same sequence with its own registers and offsets: | program | site | save | compaction loop | select on EXEC | |---|---|---|---|---| | `...PedBlendShapes_1c34db0a` | `0xd94` | `s2` | `s28`, `s_andn2_wrexec_b32 s28, s28` at `0xd40` | `s_cselect_b32 s3, exec_lo, 0` | | `...PedBlendShapesSecMotion_1c34db0a` | `0xdbc` | `s2` | `s6`, same instruction at `0xd68` | same, at `0xd94` | | `...PedBlendShapesVelocity_1c34db0a` | `0x14dc` | `s2` | `s28` at `0x1488` | `s3` at `0x14b4` | | `...PedBlendShapesSecMotionVelocity_1c34db0a` | `0x150c` | `s2` | `s6` at `0x14b8` | `s3` at `0x14e4` | One caveat about what this is: it is the *shape* (mnemonics, register classes, offsets, control flow), which is what the corpus census already reports, and no shader bytes, data or full listing leave here. If you want the exact operand of one instruction to write the test, say which and I will describe that one rather than paste a listing. Written with an AI assistant.
kilolimaVI commented 2026-11-29 15:19:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T15:19:07Z.


@fiestorra thank you for the shape, it matched an existing PR exactly: #3016 handles that waterfall loop (keyed v_readfirstlane / v_cmpx_eq / s_andn2_wrexec / s_cbranch_execnz, SCC false after it). Both its tests pass on the 780M. kilolimaVI/VIctory integration/shader-12 (e912e4c) = shader-11 + #3016. If the s_cselect_b32 s3, exec_lo, 0 is the only thing those four were stopping on, this should take them to 3 refusals; if they move one step later instead, the next reason would show where.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7257993795 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7257993795). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-29T15:19:07Z. --- @fiestorra thank you for the shape, it matched an existing PR exactly: #3016 handles that waterfall loop (keyed `v_readfirstlane` / `v_cmpx_eq` / `s_andn2_wrexec` / `s_cbranch_execnz`, SCC false after it). Both its tests pass on the 780M. `kilolimaVI/VIctory` `integration/shader-12` (`e912e4c`) = shader-11 + #3016. If the `s_cselect_b32 s3, exec_lo, 0` is the only thing those four were stopping on, this should take them to 3 refusals; if they move one step later instead, the next reason would show where. AI-assisted (Claude).
YouKnowWh commented 2026-12-01 09:42:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YouKnowWh on 2026-12-01T09:42:23Z.


I independently reproduced the four wave32 compute cases on integration/shader-11 (fa02e0e6) and reran them on integration/shader-12 (e912e4ca). Both Windows binaries were built from pinned source in separate Cargo target directories. On shader-11 all four stopped at the previously reported offsets (0xd94, 0xdbc, 0x14dc, 0x150c) with “a lane mask read as data”. On shader-12 all four emitted DXIL and all four passed Windows dxil.dll validation.

The full shader-12 run found 26,503 containers, skipped 614 duplicates and processed 26,084 programs. Exactly three emission refusals remain: one direct barycentric read, one descriptor read only as data, and one v_permlanex16_b32. There are separately 71 emitted mesh modules that fail the validator's 32,768-byte vertex-plus-primitive output limit (8,694 of 8,765 emitted mesh modules validated). This was offline translation and validation only; no PSOs were created or executed. No title assets attached.

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7307086618 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7307086618). Originally posted by [YouKnowWh](https://github.com/YouKnowWh) on 2026-12-01T09:42:23Z. --- I independently reproduced the four wave32 compute cases on integration/shader-11 (fa02e0e6) and reran them on integration/shader-12 (e912e4ca). Both Windows binaries were built from pinned source in separate Cargo target directories. On shader-11 all four stopped at the previously reported offsets (0xd94, 0xdbc, 0x14dc, 0x150c) with “a lane mask read as data”. On shader-12 all four emitted DXIL and all four passed Windows dxil.dll validation. The full shader-12 run found 26,503 containers, skipped 614 duplicates and processed 26,084 programs. Exactly three emission refusals remain: one direct barycentric read, one descriptor read only as data, and one v_permlanex16_b32. There are separately 71 emitted mesh modules that fail the validator's 32,768-byte vertex-plus-primitive output limit (8,694 of 8,765 emitted mesh modules validated). This was offline translation and validation only; no PSOs were created or executed. No title assets attached. AI-assisted with Codex.
YouKnowWh commented 2026-12-01 10:17:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YouKnowWh on 2026-12-01T10:17:20Z.


Offline follow-up to the shader-12 census. I tested a local integration based on kilolimaVI's shader-12 (e912e4ca), with #3560 (b2d087e5), #3335 (e495d2dd), and the corrected #2363 stack from r4tedx/VIctory (4918233f, including steven-seagull27's record-count and format fixes).

All 25,889 programs in the DXIL emission census emitted DXIL. Three newly validated, zero previously validated cases lost, and no other per-program result changed versus shader-12. The CLI processed 26,084 programs overall. Breakdown: graphics 14,442/14,442 validated, compute 2,682/2,682, mesh 8,694/8,765 standalone. The 71 remaining standalone validator failures all exceed the mesh-output budget; emission refusals are now zero in this integration.

Two integration details:

  • With vanilla #2363, the last compute case validates, but a device-free test of write_address on placed buffer views gets record counts [5768, 3] for an SRV/UAV pair meant to expose [16, 37]. The corrected stack passes the five CPU-only descriptor count/format tests I ran. Use the count/format fixes along with the emitter change.
  • While reconciling #3335 with shader-12's phi fixpoint, my first merge passed the three targets but regressed two previously valid pixel programs. Preserving #3335's overwritten-input guard for a live edge even when the raw barycentric value has not been materialized restored both. The final full-corpus comparison above includes this correction. Nine barycentric and eleven phi unit tests passed on the final integration.

Linked mesh check: A previously recorded NVIDIA pipeline book contained 180 entries referencing 50 of the 71 over-budget mesh programs, yielding 85 distinct mesh/pixel pairs. I ran the existing translate_linked path and validated both resulting modules with Windows dxil.dll for every pair: 85/85 passed, with linked mesh outputs of 23,040–30,720 bytes. The other 21 mesh programs did not occur in that book. This used recorded pipeline definitions, not fresh draw captures. No D3D12 pipeline creation, shader execution, visual verification, or FPS measurement in this follow-up.

AI-assisted with Codex. No title assets attached.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7307956853 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/201#issuecomment-7307956853). Originally posted by [YouKnowWh](https://github.com/YouKnowWh) on 2026-12-01T10:17:20Z. --- Offline follow-up to the shader-12 census. I tested a local integration based on kilolimaVI's shader-12 (e912e4ca), with #3560 (b2d087e5), #3335 (e495d2dd), and the corrected #2363 stack from r4tedx/VIctory (4918233f, including steven-seagull27's record-count and format fixes). **All 25,889 programs in the DXIL emission census emitted DXIL. Three newly validated, zero previously validated cases lost, and no other per-program result changed versus shader-12.** The CLI processed 26,084 programs overall. Breakdown: graphics 14,442/14,442 validated, compute 2,682/2,682, mesh 8,694/8,765 standalone. The 71 remaining standalone validator failures all exceed the mesh-output budget; emission refusals are now zero in this integration. Two integration details: - With vanilla #2363, the last compute case validates, but a device-free test of write_address on placed buffer views gets record counts [5768, 3] for an SRV/UAV pair meant to expose [16, 37]. The corrected stack passes the five CPU-only descriptor count/format tests I ran. Use the count/format fixes along with the emitter change. - While reconciling #3335 with shader-12's phi fixpoint, my first merge passed the three targets but regressed two previously valid pixel programs. Preserving #3335's overwritten-input guard for a live edge even when the raw barycentric value has not been materialized restored both. The final full-corpus comparison above includes this correction. Nine barycentric and eleven phi unit tests passed on the final integration. **Linked mesh check:** A previously recorded NVIDIA pipeline book contained 180 entries referencing 50 of the 71 over-budget mesh programs, yielding 85 distinct mesh/pixel pairs. I ran the existing translate_linked path and validated both resulting modules with Windows dxil.dll for every pair: **85/85 passed**, with linked mesh outputs of 23,040–30,720 bytes. The other 21 mesh programs did not occur in that book. This used recorded pipeline definitions, not fresh draw captures. No D3D12 pipeline creation, shader execution, visual verification, or FPS measurement in this follow-up. AI-assisted with Codex. No title assets attached.
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#201
No description provided.