The world: 64 indirect draws/frame dropped, 282 compute / 14 mesh / 17 VS-PS shaders do not translate (RX 9070 XT) #748
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#748
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?
@KricsDavid on GitHub · 2026-11-24 09:28 UTC · original
Setup: Windows 11 Pro 26300, Ryzen 7 5800X3D, 32 GB, AMD RX 9070 XT (driver 32.0.32029.2010),
retail title 1.0.2.1, build
c7a5f49(release) and the same commit as adiagbuild.game_dirpoints at my own dump;victory.tomlotherwise default.What works: boot screens, intro video with sound, start screen, profile, loading into the
world (~50 s), the first mission's intro and its title card. The window caption shows ~1 fps in the
world; menus were 30 fps for me. GPU sits at ~38%, so this is not GPU-bound.
Translate pass (
victory translate --pipelines, ran to completion on this dump):Run (
VICTORY_GPU_TIMING=1, diag build, no capture): the title reaches the world and rendersthe title card, then the scene is dark. The log (debug level) shows the scene is being dropped
rather than drawn:
Questions
dropped 64.0/frame … indirect kind 0: prepare failedexpected at this stage (theREADME says most of the scene is missing), or is it a separate defect worth a trace? The
prepare failed (compute false, mesh false)reads like the arguments buffer's pipeline couldnot be resolved before the indirect call.
64-bit image atomicandscalar memory read as datagroups from the translate pass (the RaytracingResolve /InterpolateStrands family). Is there a list of shader hashes I should attach, or is a
VICTORY_SKIP_PIPELINESrun with those hashes the useful next data point?streamer wrote them) or the failed BCPack reads?
VICTORY_SHADER_LOOP_LIMIThelp world frame time on this title? At the default it is~1 fps/frame here; I can measure a lower limit and report the difference if that is useful.
Not tested: NVIDIA, Series S mode, and other titles. The GPU hung hard once when entering the
world on a real device (the README warns about this); the run above is the one that got through.
AI use: written by an AI agent (DeepSeek Harness,
deepseek-flash) from my run logs; the runs,the hardware and the dump are mine. No game files are attached.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 10:34 UTC · original
Rebased and verified the root-constant address pair lowering on top of recent main (#710 / commit
github.com/LAKSHYA-cmd-tech/VIctory@44aec54b83), including s_load_dword* scalar reads through root constants. All 111 tests in victory-shader and 68 in victory-gpu pass cleanly.@MichaelSmithAI on GitHub · 2026-11-24 10:43 UTC · original
For question 2, your completed debug run should already contain the most useful comparison. In
c7a5f49, theshader does not translatewarning includesstage,hashanderrortogether. Could you share those three fields for the following hashes if they appear in that warning?a197f50cd8481541andc85822de2e41cfaaadc5c689b0552cc2You reported five drops per frame for each. The error on each matching row would tell us which translator change to test for those draws. If a hash only appears in the drop summary, that is useful too. The 653 atomic and 604 scalar-read counts cover the entire archive, so they cannot tell us which error an individual world shader hit. Searching your existing log is sufficient for this comparison.
@Marvisak on GitHub · 2026-11-25 03:50 UTC · original
Automated triage for the maintainers.
Complete run report (RX 9070 XT, driver 32.0.32029.2010, Windows 11 26300,
c7a5f49). The world is reached but stays dark, which matches the README's current state. The untranslated-shader drops are coordinated in #293.On your questions:
indirect kind 0: prepare failed (compute false, mesh false): this is a draw whose host pipeline exists, butState::preparerefused it (State::execute_indirectincrates/victory-gpu/src/draw.rs). It is a different path from "no host pipeline". On currentmain, the diag build adds the reason after a colon on this line. A rerun on currentmainthat shows that reason would settle it. Merged #1635 now drops calls whose pipeline isn't built yet before the argument clamp, but that does not change this path.a197f50cd8481541,c85822de2e41cfaa,adc5c689b0552cc2) are the useful next data point. Hashes and refusal reasons are enough. Please don't post shader program names from the title.Generated by Claude Code
@Jackster on GitHub · 2026-11-26 14:30 UTC · original
The three programs on another RDNA3 card: two translate and bind, one is dropped by a root-view-offset check that #2703 fixes
Our logs answer the
stage/hash/errorquestion from a 300 s world run of retail 1.0.2.1 on an RX 7900 XTX (1002:744c, driver 32.0.32029.2010, Windows 10 26300.10075), diagnostics build,VICTORY_LOG=victory=info.a197f50cd8481541shader translated stage="compute"), host pipeline made,first bind ... frame=1724 stage="compute" size=8340. No refusal, no per-hash drop.adc5c689b0552cc2[mesh adc5c689b0552cc2, pixel d3bf7d8dc468a3d7],first bind ... frame=1213 stage="mesh" size=22912. No refusal, no per-hash drop.c85822de2e41cfaafirst bind ... frame=1724, size 13308), but on unpatchedmainit is dropped at dispatch with a reason.The one per-hash reason, from
mainat63bcca4(29–32 lines per run):So for this program the drop is not a translation refusal and not the pipeline queue: it is the root-view-offset check in
draw.rs's user-data loop taking a root constant's dword 4 for a view offset. With #2703 (a root constant's dword 4 is a value, not a view offset) in the tree the same program translates, makes its pipeline and binds — the drop is gone, and this is a named program the fix restores, which the PR's description does not have.Two other observations from the same logs, since the 64/frame in the report is aggregate:
shader does not translatewarning in our runs is for one of three programs, none of them yours:90a0692af4320129and82a2ad6d07417d36(both "GFX10 code at 0x14dc/0x150c: a lane mask read as data", the BVH-skinning pair) anda929109552ce1e84.dropped … without a host pipeline: being madeanddropped … indirect kind 10: no host pipeline— so the per-frame number cannot be attributed to individual programs beyondc85822.Written with an AI assistant.