RTX 5070 Ti, Windows 11: 44 shaders do not translate (1456/5173 draws dropped) - VICTORY_SHADER_DIAG report; VICTORY_WAVE_WIDE=1 removes the device #394
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#394
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?
@BTekV4 on GitHub · 2026-11-25 00:19 UTC · original
Structured diagnostics from a full prologue run (RTX 5070 Ti, Windows 11)
Collected with the build from PR #376 (
VICTORY_SHADER_DIAG), on2119b0e+ these PRs merged cleanly:#340 #341 #343 #344 #345 #346 #347 #348 #349 #353 #354 #357 #358 #359(+ #376, #377).VICTORY_SHADER_DIAG=<dir> VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1victory.exe run <dump>\game_scarlett_master.exe --execute, through the prologue (~2.5 min)shader-diag.jsonl(11.8 MB) available on requestClassification totals
device-method-unimplemented0x1c8: 25,450 / slot0x218: 2,689)okdepth-bounds-unsupportedmissing-shaderpipeline-refusedmesh-pipeline-refusedmissing-shader: 44 shaders, seven translation gaps
a lane mask exchanged where not every lane runsa whole-wave section step the simulation does not followa descriptor read only as data(pixel)v_cvt_f32_f64the first half of an interpolation(pixel)a descriptor's address or format read as dataa first-lane read where not every lane runspipeline-refused: 10 compute pipelines, all E_INVALIDARG
2da4beb386509b77, 369cbe906ea72764, 0452fc2d2e2fc4c3, 9f017d9011377efa, 87bf9e3f2bf2f052, 2cc4c197ee29e291, e3730d3d043e0d90, eeed82b877b44b5f, 02384a60fda6f2d0, 6b82bc7d22016cb5Mapping to the raw log (same run,
selection=default)With
VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1 VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1:VICTORY_WAVE_WIDE=1dropped 0 without a host pipeline (1784 being made)— the 64-lane forms do cover those shaders — but thedevice is removed ~75 s in, reproducibly:
Note on the two unimplemented device methods
Slot
0x1c8is called 25,450 times in one prologue run and0x2182,689 times. If either is on aper-draw or per-copy path, it may be worth checking what they are (
ID3D12Device12+ methods?).Linux (for #365, separate failure)
Same build under Wine + vkd3d-proton (GE-Proton10-4, CachyOS) dies deterministically 33–100 s after start at
victory-image-<hash>.dll+0x2215c35(0xc0000005, write 0x0), no Xid/MMU in the kernel window, noRequired WaveSizeline even with cold shader cache +no_shader_cacheatVKD3D_DEBUG=warn.On Windows the same binary does not crash there.
@BTekV4 on GitHub · 2026-11-25 00:29 UTC · original
Update from the same machine (RTX 5070 Ti, Windows 11), now on
31714de(i.e. with yesterday's two commits:3bff182"test/fx-prs" and31714de"fix/amd-view-heap-clamp") plus #376 for the diagnostics. Same run, same switches (VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1), same ~2.5 min of prologue.The two commits are a large win here. Against my earlier numbers on
2119b0e+ the open PRs:2119b0e+ PRs31714demissing-shaderdroppeddraws per framepipeline-refusedokdevice-method-unimplementeddepth-bounds-unsupportedThe whole
whole-wave section stepclass (15) and almost all ofa lane mask exchanged where not every lane runs(15) are gone. What is left, by class and hash:7×
a descriptor read only as data(all pixel)2fd01fca16993001,6b6db9f1a526daeb,7d0f14ce44746d7e,8660e9822ebe4b62,abc6a80d46edc294,c8df7216c69cecbd,e5b2121a02f4f7411×
a descriptor's address or format read as data—ceb5eb68cd99cb071×
a lane mask exchanged where not every lane runs—f133e35efed2a48a1×
a lane mask holding lanes elsewhere read as data—926c46bab3b86bd67×
pipeline-refused, allE_INVALIDARG (0x80070057)on compute pipelines (down from 10).Two observations that may be worth more than the counts:
descriptor ... read as datafamily is now the single biggest correctness gap (8 of the 10 remaining shaders, 7 of them pixel). If that class is tractable, this alone would clear most of what is still missing on screen.device-method-unimplementeddid not move at all: still 28,139 records, slot0x1c825,450 calls and0x2182,689, i.e. ~82% of the diagnostic file. Whatever those two are, they are on a hot path and invisible in the plain log.0.2 fps, 4017 ms/frame (3390 preparing: copies 70 ms, textures 3226 ms; 229 on the GPU),361texture slots waiting, 14.6 GB uploaded. The frame is now dominated by texture refresh, not by the GPU (229 ms). If the new commits made more textures live, this is where the time went — it may be worth checking againstVICTORY_TEXTURE_NO_WAIT/VICTORY_TEXTURE_GUARDand the refresh path in #343.Full JSONL (11.8 MB, 34,251 records) on request.
@BTekV4 on GitHub · 2026-11-25 00:49 UTC · original
PR triage on this hardware (RTX 5070 Ti, Windows 11,
31714de+ #376, same automated prologue run for every build — world loaded, ~5000 draws/frame, 150 s):missing-shaderpipeline-refuseda8826150(main + #376)764d42bea9b7877c378fb4f586b3ffd8All four give no measurable change on this title/scene, which is consistent with yesterday's merges having already removed the classes they targeted (
whole-wave section stepandlane mask exchangedare gone from the run; 30 of the 44 shaders I reported earlier). I left a note on each PR saying so, plus the detail that each conflicts with31714deonly incrates/victory-shader/src/emit/valu_tests.rs— the functional code applies cleanly, so rebasing is trivial if they are kept for forms the prologue does not exercise.What is left, in one place: 10 shaders — 7×
a descriptor read only as data(pixel:2fd01fca16993001,6b6db9f1a526daeb,7d0f14ce44746d7e,8660e9822ebe4b62,abc6a80d46edc294,c8df7216c69cecbd,e5b2121a02f4f741), 1×a descriptor's address or format read as data(ceb5eb68cd99cb07), 1×a lane mask exchanged where not every lane runs(f133e35efed2a48a), 1×a lane mask holding lanes elsewhere read as data(926c46bab3b86bd6) — and 7 compute pipelines refused withE_INVALIDARG.The
descriptor ... read as datafamily is now the biggest single gap: 8 of the 10 remaining shaders, 7 of them pixel-stage.One more number from these runs, in case it is useful: with the world loaded,
droppeddraws sit at 502–1013 of ~3800–5500 per frame depending on where in the prologue the frame lands, and the frame is dominated bytextures(2.2–4.8 s per frame) rather than by the GPU (0.2–0.3 s of it on the card).@Fimpos on GitHub · 2026-11-25 01:07 UTC · original
Cross-check from another 32-lane NVIDIA box on
a803c87(Windows 11 Pro 25H2, Ryzen 7 7800X3D, RTX 5070 12 GB, driver 621.24, 32 GiB RAM, title1.0.2.1):1. Remaining
E_INVALIDARG (0x80070057)& untranslated compute shadersAll four of the previously refused Prologue compute shaders (
02384a60fda6f2d0,2cc4c197ee29e291,2da4beb386509b77,369cbe906ea72764) plusf133e35efed2a48a,ceb5eb68cd99cb07, and the twov_add_f64compute shaders from3bff182(5dc3b25986622949,6f225b641c5b0708) all translate, validate withdxil.dll, and create D3D12 pipelines on RTX 5070 once these gaps incrates/victory-shader/src/emit/lower.rsare closed:3bff182(active_f64_sum,lower.rs:2052):active_f64_sumchecksif self.exchange.is_some()instead ofif !self.local && self.exchange.as_ref().is_some_and(|e| !e.1)(unlikewave_reductionright above it). That causes5dc3b25986622949and6f225b641c5b0708to failwith_local_waves_anywitha wave reduction where not every lane runs, fall back toWaveSize(64), and get refused with0x80070057. Changing that one guard makes both validate and build pipelines atWaveSize(32).LOCAL_ANY+lds_ok == false(and #156 / #170 / #190 / #277): allowingwave = 32inLower::newwhenLOCAL_ANY.get()is set (plus runningemit_formsretries afterir::thread_edgesas in #170 and permitting literal masks inv_cndmask_b32underlocal_anyas in #277) cleared:02384a60fda6f2d0,2cc4c197ee29e291,2da4beb386509b77,369cbe906ea72764->0refused compute pipelines in the Prologue;f133e35efed2a48a-> validated & pipeline created (0non-RT compute drops in Prologue);XboxBvhBuilder.dll: 52/52 translated, 52/52 validated, 52/52 pipelines created underVICTORY_HOST_MAX_WAVE=32. In a live run withVICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1, it loggedthe ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53with no GPU hang / device removal (the title later hit an uncommitted read at0x60000ffacas expected under quarantine).ceb5eb68cd99cb07(a descriptor's address or format read as data):view_addressindescriptor_datareturns early forcount <= 4and markss2(num_records) asVal::Missing(OTHER); measuring it viagetDimensionswhen dword 2 is read (also covered in #203) makes it validate and create a pipeline cleanly.2. RTX 5070 frame time on
a803c87diag, no tuning flags): ~2.4 fps (~407 ms/frame);~380–425 MB/framecompared on CPU,507–559hash passes/frame, card39–59%busy.VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_CARD_REHASH_RUNS=1 VICTORY_WIDE_REFRESH=1 VICTORY_WIDE_BACK=1 VICTORY_RELAY=2: 4.8 fps (209.6 ms/frame; 90.2 ms GPU, 84.0 ms preparing), CPU buffer comparisons dropped from~400 MBto29–35 MB/frame, 0 untranslated shaders in the entire run (anda803c87fixed Lucia's skin/hair/interior textures cleanly; switched back toVICTORY_RELAY=1for gameplay per #89 / #418).(AI-assisted investigation & report; all builds,
dxil.dllvalidations,cargo test -p victory-shader --lib(216 passed, 0 failed), and live runs executed on real RTX 5070 hardware.)