[Audit & Hardware Census] 26,503 shaders analyzed on D3D12 (RTX 4060 Ti): cutscene fade analysis, 3 isolated hardware blockers, and opcode failure taxonomy #885
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#885
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?
@aiiGete on GitHub · 2026-11-24 13:28 UTC · original
[Audit & Hardware Census] 26,503 shaders analyzed on D3D12 (RTX 4060 Ti): cutscene fade analysis, 3 isolated hardware blockers, and opcode failure taxonomy
Environment
14c15be(dev-next)1. Executive Summary & Runtime Baseline
Earlier community reports (such as #496) identified crashes or black screens at the transition to the first cutscene. Running telemetry directly on clean baseline
14c15be(without experimental debug layers or pipeline-skipping flags) reveals:WARN victory_gpu::queue: levels after the black frame frame=4402 levels=[252, 252, 251, 250, 249, 0, 0, 0, 0, 0, 0, 0]VICTORY_D3D12_DEBUG=1removed (eliminating NVIDIA kernel TDR0x887A0006caused by Microsoft's validation layer choking on 30+ concurrent command lists), the engine runs locked at 30.1 FPS (33.3 ms/frame, 5.2 ms GPU time). Audio, keyboard/gamepad emulation, and subtitles advance continuously.is_skippedindraw.rs. Without compiled geometry and lighting pipelines, the presented image stays at luminance 0.2. Autonomous Hardware Shader Census (
shaders.rpf)Running the offline compiler and driver pipeline builder (
victory translate --validate --pipelines "shaders.rpf") across the full package yielded 10,977 CPU-seconds of continuous validation and physical PSO creation on the host RTX 4060 Ti:3. The 3 Hardware & Specification Blockers
The full hardware run cleanly separated compiler limitations, Microsoft DXIL validator restrictions, and NVIDIA driver parameter rejections:
A. Mesh Shader Output Payload Limit Exceeded (53 programs)
validator: Function: main: error: For shader 'main', vertex plus primitive output size is greater than 32768.MS_VS_PedTransformTransmissionFire_52f61330_Wrapped Ms(offset0x11a9ba5)GS_ALLOC_REQcounts in group-shared LDS memory and unifyingSetMeshOutputCountsat the postdominator join).B. Driver PSO Rejection:
E_INVALIDARG 0x80070057(328 compute programs)pipeline: Parâmetro incorreto (0x80070057)onCreateComputePipelineStatecascadeshadows_classify:CS_ShadowUnifiedClearRaster_6bcdd348_Wrapped Cs(offset0xbeb3b20)C. Untracked Indirect Descriptor Addressing (298 programs)
resources: a descriptor neither loaded nor builtVS_TransformSkin_VfxVBuffer_AlphaClip_5fd4397c_Wrapped Vs(offset0x49c1fc0)4. Taxonomy of the Remaining Translation Blockers (~2,900 programs)
The remaining dropped shaders fall into 5 distinct architectural clusters in
crates/victory-shader:PS_Cable_AlphaPrepass_c1b6bb00_Wrapped Psimage_atomic_add, etc.) to DXIL intrinsicdx.op.atomicBinOpusingi64operands.MS_VS_TransformFire_e74ae427_Wrapped MsEXECregister to DXILWaveActiveBallot.prop_batch_2lyr_cutout_hbb:CS_RaytracingResolveByteAddressBuffer(raw buffer) with byte-offset addressing (byte = index * stride).PS_ShadowRender_CSM_ST_DITHER2_LINEAR_8d576233dx.op.evalInterpolated(SM 6.1+).TAA2:CS_TAA2_PrepareFrameStats_f3fe77a8ds_read/write8/16-bit +_d16), PR #499 (v_sat_pk_u8_i16), andv_cvt_f32_f64.5. Verified Compiler Patches
In local testing, applying PR #571 (sub-dword LDS operations) and PR #499 (
v_sat_pk_u8_i16) incrates/victory-shader/src/emit/lower.rscompiles cleanly in release mode (MSVC 18.8, 26.14s) without touching runtime state or threading locks, successfully recovering 16 critical post-processing compute shaders (including TAA frame stats).@MichaelSmithAI on GitHub · 2026-11-24 13:35 UTC · original · edited 2026-11-24 13:36 UTC
On upstream
ffe310e, each entry inlevelsis the largest RGB byte among 16 pixels on a 4×4 grid. The history keeps the last 12 successful probes, with no individual frame IDs. In the single-plane path the probe reads the source texture. On the #211 multi-plane compositor it reads the composed back buffer. I couldn't resolve14c15bein the upstream repository. A link to that revision would let us confirm which path produced your trace. Probe and historyThe reported sequence has a 249 → 0 step followed by seven zero readings in total. It establishes that the sampled points stayed black. It doesn't identify an intentional fade, the last writer, or which dropped shader affected those pixels. The reported debug-off run also leaves the cause of the earlier device removal open.
If you already have captures from this transition, the most informative pair would be the original primary plane and the 1440p scene target from the same present, with the frame and resource IDs. That would distinguish a scene already black at 1440p from scene content lost on its way to the final image. Another player saw live geometry by presenting the 1440p target on a different stack. #841 player comparison
For the 328 offline compute errors in section 3B, upstream
translate --pipelinesprefixes errors from both root-signature setup and compute-PSO creation with the samepipeline:text. The quoted HRESULT alone cannot distinguish a root-signature limit from a wave-size refusal. #817 found the same HRESULT for Wave64 on a 32-lane device. For the named cascade shader, either a stage-specific diagnostic from the existing log or the emitted wave requirement and device range would narrow the cause. The other 327 entries would still need their own classification. Offline call site · Compute helper · Wave-size A/B@r4tedx on GitHub · 2026-11-24 15:28 UTC · original
On section 3B (the 328 compute programs refused with
E_INVALIDARG): the measurements on #233 and #439 say this is the wave size, not the root signature.maindeclaresWaveSize(64)for every wave64 compute program that reads other lanes or shares LDS within one wave, whatever the host runs. A 32-lane NVIDIA driver refuses that pipeline with exactly this HRESULT. With the host's wave range taken into account, the refusals go away on the same class of card:mainffe310e: compute pipelines refused1a8a3ed)In @felicienradio's list the
cascadeshadows_classifyprograms appear by name underconsole wave64 lanes on a host without 64-lane waves, which is the family the example here comes from. None of the three runs changed the root signature (#493 and #710 are not in them), so a root-parameter budget cannot be what the 320 hit. Your 328 on a different base may hold a few of another kind;--liston #439 would show whatever is left.My row: local title data, one offline run (translation, validation and pipeline creation, no title launch), counts only. AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 06:53 UTC · original
Automated triage for the maintainers.
Thanks for the census. Two things for the record:
14c15be("dev-next") is not in this repository, so the counts cannot be compared withmainas they stand; a run on currentmainwould make them comparable.0x80070057on this 32-lane NVIDIA card are the wave-size refusal, not the root signature:maindeclaresWaveSize(64)for wave64 compute that shares lanes or LDS, and measurements in the thread above show open pull requests #439 and #233 remove those refusals on the same class of card. That failure is discussed in #71, the oldest complete report of it.The other taxonomy rows are already tracked separately (64-bit image atomics, lane masks read as data, barycentrics). Please don't post the title's shader names or package offsets here; counts and refusal reasons are enough.
Generated by Claude Code