World's first frame always ends in "a host command list did not close (0x80070057)" on a GPU without mesh shaders #458
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 avatarmanz/VIctory-7900XTX. Originally posted by bbing13 on 2026-11-27T12:10:29Z.
World's first frame: every run ends in
a host command list did not close (0x80070057)on a GPU without mesh shadersWindows 10 + RDNA1 (RX 5700) + the mesh→compute fallback. Menus work; the
world's first frame is refused by D3D12 in 9 of 9 runs, naming a
different pipeline each time. This is not a resources problem and not a
pipeline-creation failure — measurements and the full exclusion list below.
Environment
MeshShaderTier = 0)avatarmanz/VIctory-7900XTX@0dec5dcD3D12SDKVersion = 620)game_scarlett_master.exe, buildb99f876b…, v1.0.2.1Branch with both patches and one extra fix:
https://github.com/bbing13/VIctory-7900XTX/tree/win10-rdna1-mesh-fallbackWhat works
Menus are fine: language select → legal notice → main menu, 30 fps,
1.9 GB VRAM, 7.8 GB private memory. Screenshots were taken but are not
attached, per the repository's asset policy.
Agility does its job on Windows 10:
Mesh translation coverage is complete:
Shader precompile is also complete:
25790 shaders in the cache, 195 do not translate(all 195 are geometry-shader containers), matching the fork'sREADME.
What fails
Entering story mode (Series S profile) always ends the run in the same place,
inside the world's first frame:
The last bind before it varies between runs, e.g.:
and in other runs
95988cc1e16f1d89(a compute of 8,144 bytes withuser_data=1, samplers=1),f5f5e06abea6e83a, etc. All within the sameframe; the frame line just before shows
616 drawsanddropped 3991 without a host pipeline (1199 being made).Important: the pipeline is created successfully
With the per-frame wait budget raised to 30 s, the log shows the pipeline
being built, and the failure still comes after it:
So it is not "the pipeline was not ready". Something about what is recorded
into the list for that pipeline (or around it) is rejected by the runtime.
Ruled out, one run each
0 missingimportsVICTORY_PIPELINE_WAIT_MS=30000,VICTORY_SCREEN_WAIT_MS=30000scripts\play.ps1 -Safe(VICTORY_UNDER_WIDE=0,VICTORY_LAND_ECHO=0)VICTORY_TEXTURE_BUDGET_MB=3072,VICTORY_RESIDENCY=1,VICTORY_RESIDENCY_LIMITED=1VICTORY_OUTPUT=1280x720,VICTORY_RENDER_SCALE=0.5VICTORY_PIPELINE_WORKERS=1(from 8)VICTORY_HEAP_PASS_ASIDE=0,VICTORY_SYNC_FINE=1,VICTORY_SYNC_IN_PLACE=0,VICTORY_SPANS_QUICK=0VICTORY_EARLY_ALL=1VICTORY_UPSCALER=6(title's own upscaler)FFX_FSR4_* DeserializeComputePipelineStateX FAILED, crash remainsVICTORY_JOIN_LISTS=1Failure counts: 9 of 9 runs, across every configuration above.
Two facts that may save the next person time
1. The D3D12 debug layer could not be used here.
That is with
D3D12\D3D12Core.dll+d3d12SDKLayers.dll+ all three Agility1.620.2 files beside the executable and in the
D3D12\subdirectory, in adiagnosticsbuild withVICTORY_D3D12_DEBUG=1.GetConfigurationInterface(CLSID_D3D12Debug)on the Agility factory returns
0x887A002D. So GPU-based validation and anymessage naming the offending command were unavailable.
2. Dropping the refused list is not a fix — the runtime is already damaged.
I added a switch that marks a list spoiled when
Close()fails, skips it insubmission, and keeps the process alive:
The process survived that point, but died a moment later in the runtime:
D3D12 de-referencing the
E_INVALIDARGvalue means state inside the runtimeis already inconsistent once
Close()has failed, not just that one list isunusable. Recovery at that level is not possible from the caller.
One change in this branch that might be relevant
Static samplers used to be numbered per stage while all sharing
SAMPLER_SPACE = 0, so a pixel shader'ss0and the compute form of a meshprogram's
s0named the same register in the same space. I changed eachstage to take its own sampler space
(
SAMPLER_SPACE_PER_STAGE = 4incrates/victory-gpu/src/pipeline/host.rs).That fixed a real defect: the pipeline that used to fail after 297 ms
(
95988cc1e16f1d89) now builds and runs. It did not stop the world'sfirst frame from failing — the refusal simply moved to another pipeline — so
there is at least one more cause of the same signature.
What I would try next
d3d12SDKLayers.dllloads,VICTORY_D3D12_DEBUG=1should name the commandand its argument directly, which would end this hunt in one run.
I would cut them in: indirect arguments /
ExecuteIndirectrecords, depthtwins, texture tables picked by index, and the fallback's
u0…u2/t0…t2root descriptors (
MESH_OUT_SPACE).RX 6600 8 GB). If the first frame succeeds there, the problem is specific
to the compute form of the mesh path rather than to the frame's content.
Reproduction
Then choose a language on the first-boot screens and enter story mode.
Logs
Happy to attach full runs on request (each is 1–1.7 MB of
INFOtracing).Nothing from the game itself — no assets, no shader dumps, no screenshots —
is included, per the repository's asset policy.