Corpus census: 185 emitted DXIL modules fail dxil.dll validation #201
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by Proudnoob4 on 2026-11-24T01:23:11Z.
Summary
I ran
victory translate --validate --pipelines --listover the 26,503 DXBC containers extracted from my own 1.0.2.1 copy, on main97c78d1+ 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.dll1.8.2502 (from Windows SDK 10.0.26100):Grouped by reason:
vertex plus primitive output size is greater than 32768(mesh)Container part 'Program Input/Output Signature' does not match expected for module(25 output, 21 input)Entry function performs some operation that is incompatible with the shader stage(compute)linear_noperspective_centroid/samplewhen writingoDepthGE/oDepthLENotably, 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.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):VICTORY_DXILpointing at dxil.dll 1.8.2502,cargo test -p victory-shaderwith--test-threads=1.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_validatespasses, so the validator is actually loaded and validating (no "no dxil.dll; skipped" message).One code observation on the groups:
PS input position interpolation must be linear_noperspective_centroid / samplefailures:emit/mod.rsalready 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 notkind == 3, or the failure comes from a row that mixes modes (the same shape as the 49 "interpolation modes disagree" group).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 --listyou can also tell whether the 14/46/49 groups still occur ond2a4bae; the census was on97c78d1.No game data used.
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.dlldoes, 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 passdxil.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.
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.translate --validaterun on the #233 stack found 43 compute modules with this message, and all 43 callsample. (More than 23 because that stack lets more compute programs translate;mainhas 23, as in this census.)image_sampleis emitted asdx.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, whichtranslatedoes not print, isFunction uses features incompatible with the shader stage (cs) of the entry function.sampleGradfrom quad gradients. #306's description lists a compute implicit-derivative fix too; I have not compared the two.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:
e49302a) makestranslate --validateadd to each validator failure what the emitted module declares and calls (thread-group size, wave size, itsdx.opoperations; 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.
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:Answer to r4tedx's question 1 (#180): yes, cleanly. The 23
Entry function performs some operation that is incompatible with the shader stagefailures 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#180removes 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.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.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.
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
mainfails.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:mainmaina5ba4a4)9745f35)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 --validateprints 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.
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 maind2a4baewith dxil.dll 1.9.2602.17.MaxVertices = 128,MaxPrimitives = 128, no per-primitive outputs, and 19 packed vertex output rows: 128 × 19 × 16 B = 38,912 B.Options I can see:
GS_ALLOC_REQcount is a known constant ≤ 107 (19 rows) — related to #586, which decodes the request but keeps the declared maxima.Not verified: whether NVIDIA or AMD drivers misbehave on these at runtime. Your census says the runtime still created all mesh pipelines.
Imported from Marvisak/VIctory. Originally posted by iurysf on 2026-11-24T06:29:47Z.
Measured offline with
victory translate --list --validateover the title'sshaders.rpf+ executable (26,096 programs), dxil.dll 1.9.2602.17, against maind2a4bae: 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.
Conflicts as-is (these need a rebase, or a pick between overlapping pairs):
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.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T03:25:04Z.
I checked the DXIL writer on
d2a4baewith signatures from an SDK-compiled synthetic mesh shader. Both output maxima were 256. The case with 27 vertex scalars and 5 primitive scalars passeddxil.dll1.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 declaredMaxVertices=96for both and rejects97and107with 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
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),
maind2a4bae, release build,dxil.dll1.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, withvictory 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.
Emitted counts are the deduplicated totals of one whole-corpus
--validaterun. None of the 54 per-file runs has apipeline:failure line, and all 54 exit with 0, without a crash or a timeout.dxil.dllrejects 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 on35b054e. 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.
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 --pipelineson an RTX 4070 (driver 32.0.16.2101, 32-lane waves) over all 26,096 programs:d2a4baeWaveSize(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.AI-assisted.
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.
d2a4baewith #322, #643, #193/#704), original emitteref14bf3, hardware wave target, legacy validator metadataThe 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:
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.
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 SDKdxil.dll1.8.2502.11.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).
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:ms_ioinnative.rsreads 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, andmainconfirms it. Incrates/victory-shader/src/emit/shader.rs,Shader::finishdeclares the view-writes UAV (used bymark_view_writeinemit/lower.rs) in vertex programs. Theflagsmodule has noUAVsAtEveryStagebit (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
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
97c78d1and940d32f69b22265690a0b5a15d6ded572ba33bafusingvictory 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.940d32fThe 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, DXILUAVsAtEveryStage), 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 bymark_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)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 withVICTORY_EMIT_DUMPand read withdxc -dumpbin:The validator's budget is on the product, not on the signature:
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:
max_verticesto 124 and let the extra four vertices be emitted by a second dispatch — same problem as 2, smaller number;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.
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_iobuilds the mesh stage from the console's own stage data, and the outputs come fromvs_outputs(data)— the same list the emitter writes out.MS_INFO+2andMS_INFO+4aremax_verticesandmax_primitives, read straight from the title's blob: the128, 128in the module is what the title declares, not a default of ours.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_verticesadjustment 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:
What I would not do is quietly lower
max_verticesto 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.
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
31714deband7b0f736matched 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 on940d32f.One stable pair for capture filtering: VS
2634f1e308bc9ae1(VS_TransformPreSkin_VfxVBuffer_c6448ed4_Wrapped) + PS3dc5a8831849e058(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
940d32fand 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.
Imported from Marvisak/VIctory. Originally posted by Venom2054 on 2026-11-26T09:03:21Z.
Retested the compute implicit-derivative case on
63bcca43with Windows SDKdxil.dll1.9.2602.17 and an RTX 5070 Ti. All fiveCS_TraceShadowRaysvariants emitted DXIL and failed validation on that revision. I ported just the compute metadata change from wbkepler’s #306 (dx.valver1.8 andPSVRuntimeInfo3) for this test.07c93bfb77fecebb)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 unmodified63bcca43. 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.
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 allfound 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.
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/VIctoryshader/1924-geometry-split. A per-reason count would show which refusals are worth taking next.AI-assisted (Claude).
Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-28T23:01:34Z.
Rerun on
main63bcca43, and with #1924 on top: the refusal counts, per reasonCommand, both runs identical except the binary:
and the count comes from the per-program lines, which are the ones that carry a reason:
26,503 containers, 26,084 programs translated, 25,898 per-program lines.
main63bcca43— 220 refusal linesv_cvt_f32_f64v_permlanex16_b32main+ #1924 (35ea67b0) — 25 refusal linesv_cvt_f32_f64v_permlanex16_b32The 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 26084to26084 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 withvertex 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.
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/VIctoryshader/1315-on-main, if you want to confirm it also gives 25.AI-assisted (Claude).
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 carryat 0x<addr> <stage>: <reason>), release builds, own head each.main63bcca4390997428maine854af8dmainf9fb9aaa940d32f6(160 behind)940d32f6kilolimaVIshader/1315-on-main)67fdc55amain#385 clears all 13. Every other reason is untouched and identical to
main(v_cvt_f32_f645, a lane mask read as data 4,v_permlanex16_b321, 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 is207 = 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:
mainmerged into its head conflicts incrates/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 onmainand 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.
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/VIctoryintegration/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).
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/VIctoryintegration/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).
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 fromSame command and same counting rule as before, release build of that head.
main63bcca43integration/shader-109dd3e7c3v_cvt_f32_f64v_permlanex16_b32The 4 are the same four programs as on
main, so #3401 does not reach them — they are thebvh_skinningcompute family, all four addressed below: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
mainatv_cvt_f32_f64; with #1262 in the tree the conversion translates and the same record now stops at the next thing:That is the
v_cvt_f32_f64fix 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 4bvh_skinningmasks, 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.
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_skinningshape, 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):at 0x…offset,v_cndmask_b32 v3, 0, 1, s[10:11]ors_bcnt1_i32_b64 s4, s[10:11]),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,If the four differ in shape, one line each on how is enough.
AI-assisted (Claude).
Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-29T14:51:54Z.
@fiestorra one more branch when you have time:
kilolimaVI/VIctoryintegration/shader-11(fa02e0e) = shader-10 + #2978 (whole-wave binary64 sums), withv_cvt_f32_f64from #1262 (#2978's own version failed #1262's modifier tests on the 780M). The question is whether the fivewater_shadingprograms 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).
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 yesSame command and counting rule.
main63bcca43shader-109dd3e7c3shader-11fa02e0e6v_cvt_f32_f64v_permlanex16_b32The five
water_shadingones clear: all fiveCS_TransmissionVolumetrics*now printvalidated, so #2978 does take them past "a whole-wave section step the simulation does not follow" with #1262'sv_cvt_f32_f64underneath it, exactly as you said it should.The lane-mask joins stay at 0: the +4 you and I saw with #2978 alone on
maindo 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_skinningprograms 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: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.
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/VIctoryintegration/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 main63bcca4+ #3097 (must go first: moves the lowerer tests out oflower.rs, so the rest fits the size limit), #2999, #3617, #3717, #1315 (viashader/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 isv_cvt_f32_f64from #1262 rather than #2978 (details on #2978).I'll take the four
bvh_skinningprograms once their shape is in.AI-assisted (Claude).
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_skinningones you listed, and they are the same shape — only the register numbers and the offsets differ.Declared wave size:
wave64=falseon all four (the stage I/O also saysthreads: [32, 1, 1]).The refusal line, with its offset, e.g. the first:
The instruction at that offset is a conditional branch on the mask:
Where the mask comes from, in the same window (
0xd14–0xd98), which is the part that matters:So the mask is not merely branched on:
s_andn2_wrexec_b32(lane compaction:sP &= ~EXECper iteration) ands_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_execnzat0xd44) before the block that ends at0xd94. Between the writes and the site there are fourv_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:
...PedBlendShapes_1c34db0a0xd94s2s28,s_andn2_wrexec_b32 s28, s28at0xd40s_cselect_b32 s3, exec_lo, 0...PedBlendShapesSecMotion_1c34db0a0xdbcs2s6, same instruction at0xd680xd94...PedBlendShapesVelocity_1c34db0a0x14dcs2s28at0x1488s3at0x14b4...PedBlendShapesSecMotionVelocity_1c34db0a0x150cs2s6at0x14b8s3at0x14e4One 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.
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/VIctoryintegration/shader-12(e912e4c) = shader-11 + #3016. If thes_cselect_b32 s3, exec_lo, 0is 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).
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.
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:
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.