NVIDIA (32-lane): 103 compute pipelines refused at CreateComputeShader, reason only visible with VICTORY_D3D12_DEBUG=1 #817
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#817
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?
@WuDiXiaoBo on GitHub · 2026-11-24 11:33 UTC · original
Environment
ffe310e,cargo build --profile diag -p victory --features diagnosticsWhat happens
The title reaches its account screen and stays there (no input is given). Menus draw and present
normally. In that run:
406 compute pipelines are created
103 are refused, one
WARNline each, 103 distinct hashes:each refusal is followed by
a dispatch without a host pipeline dropped; at the account screenabout 5-6 dispatches per frame are dropped for these hashes (5.0/frame for each of several,
6.0/frame for one, plus indirect ones).
The reason, only visible with
VICTORY_D3D12_DEBUG=1Every refusal is followed by the same info-queue message (104 occurrences, one more than the refusal
count, presumably a retry, and no other
CreateComputeShaderreason in the whole run):So all 103 are the same cause: the translated DXIL asks for a 64-lane wave and this device offers 32.
Without the debug layer the log only says
0x80070057, which reads like a root-signature or shaderbug and is not one: the shaders translate fine (
shader translated stage="compute" hash=...immediately before the refusal).
Three things that could be done (your call)
compute 13dfdd...: translated for 64-lane waves, device max 32 - skipped.The wave size is in the translated shader, and the device maximum can be queried once with
CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS1), so this needs no debug layer. A count at theend of the run (
103 compute programs skipped: 64-lane waves) would tell an NVIDIA user in oneline why parts of the screen are missing.
waves" but not how many. On this card it is 103 of the 1,441 compute programs that emit at all
(whole pack,
victory translate --validate, numbers in #293) - i.e. the gap is not theoretical.and not what this issue asks for; it is here only so that (1) can point at it.
Refused hashes (103)
list
00bcbbf278ee3d9d02384a60fda6f2d003e3e26783a5799b07f451a14b13fecb0a5ecfee6b79e13b0c028454b58543f00e90505eff274aa410efcf59eb60cca7119ee96f602f1668136986812880cead13dfdd3b1136e40714264103296aa43a191ecaed66eea3b1196bf6114ff3a1311d44a723bdebbf271f1fbd86759b3da2240cb516c1af0bc32809db6c31de483d291822a279c070672b17036bf3a1d6152cc4c197ee29e2912dc602192abf62882f03a2df10503cef2fa2f94f560faf3931d703207b51549a339d476c267c03c734992f2b65a789a534d88edf583f3778369cbe906ea727643a56bc8c4389a4733c196d81eca7ff153d002bca51069e0142683eebec081520466ec41d3f9d24c0488b12f581b37bfc4996d173208d83eb4e5d5eee2aaffd6851e19585b475381452a86f2c41d1882b56f3bf2d9388e5a75741294cf872ffb95964b734c70b91eb5b2ce592c3a5dd095c6224a6bc3a40666336cb3769fc53d7647443e8b7b6841565de113e23fa4fdd660814153af431857168dd781ca7efb971883e40620a567a754e38ca2378a43e78c04f8d197a29047c4002c5baa28f33804b342cb4b9d1e982849f7a614208eb88994c3496045f518dd8d739047fe557922e1d0ee1e19a859afd549c4f5309019bdd33d77fb8ca0f9d1d228b02e56a969e096a1111c6faaaa14c1da4be7b9837a1bf269d5b19f025a1f6cdf8874960a9a25ed0e3d4d521baab5455fc6abb804fabd7a22106898c66acf14a70f37fb012b2b1ea29bc3987dbb4b0427232707598b7953a05b189dfc1b8f3f7979d6bbc50b96880482a17f632bad01f53f53248e5be6ce5d849d51127c4183d3cbee28e8ec7d7a6283fad3cd6c9da71da40af2e28ce2378e5e8711aadd2b169b82f67ec5bd3e5b737ea7cc150d7db57731ada919bdd411d22d78b3625df3cf10a274e26cae07a678d3f79d4cde18931c72af42e46e24dff38794241abe4a9f58e3acfcf7be798cc38df9dabc0e81fd01512ba1002eae3498e6553afa8f0aa2b1e79275592f0c91b4d2578f5bff11c3ddeaeb7d602f41afb810c1e29c6f753697c1c03772bf79824724d8e2daff8a6133bfedc5759f8f50ab85e7b10bbfa0c0819dc86ca60fd46520032208bedfea2b7d3f17b504fNot tested
against a 47.8 GB system limit,
memory allocation of 1572864 bytes failed), so everything above isfrom menus.
AI-assisted: the run, the extraction and this text were produced with DeepSeek Harness
(DeepSeek-V4-Flash) on the reporter's machine, at their request. No game data is included - these are
the translator's own shader hashes, as printed by
victory translate --list.@konradbeck on GitHub · 2026-11-24 12:54 UTC · original
I have a small diagnostics patch related to this report. It carries the pipeline worker’s refusal reason into the per-frame dropped draw/dispatch summary. The summary keeps the shader hashes and adds the failed Direct3D operation and HRESULT when available. This helps correlate refusals with dispatches dropped in later frames.
Branch · commit
53ba185Local verification on Windows x64 with Rust 1.98.1 (GNU target)
ffe310e(the summary only saysrefused []) and passes with the patch.cargo test --locked --offline -p victory-gpu --lib --features diagnostics,blake3/pure -- --test-threads=1).The tests use synthetic inputs. This patch covers reporting. The wave64 behavior reported here was outside the test scope. The patch was AI-assisted.
Would a maintainer be interested in reviewing or cherry-picking the commit?
@Sunkiller-qc on GitHub · 2026-11-24 12:54 UTC · original
This is #468: compute pipelines refused with
0x80070057on a 32-lane NVIDIA card, and the first hash,13dfdd3b1136e407, is in the lists on #468. They're console programs that need 64-lane waves. The debug layer says so ("Shader wants wave lanes..."), as it did on #264.#233 (wave64 compute on 32-lane hosts) brings the refusals to 0 in the results posted on #468. #189 and #578 handle the same thing in other ways. I'd close this as a duplicate of #468.
@l0g3n on GitHub · 2026-11-24 13:05 UTC · original
I’ve uploaded a patch that logs the shader’s required wave size and the GPU’s supported maximum when they explain a compute pipeline failure. The shader tests and Windows compile check passed. A live test on a 32-lane GPU is still pending.
https://github.com/l0g3n/VIctory/tree/fix/compute-wave-size-diagnostic
@konradbeck on GitHub · 2026-11-24 13:25 UTC · original
I tested l0g3n’s wave-size diagnostic on a NVIDIA RTX A4500 (driver 32.0.16.2124, D3D12 wave range 32..32), with the D3D12 debug layer off. I ran the same synthetic compute shader through VIctory’s host pipeline creation path on both revisions.
mainffe310eb2098e52169f4c44db5ffdabf43a726220x80070057and logged the generichost pipeline refusedwarning.1c0765fbe06a5e0ab9417fcedee666491da3bd33required_wave_size=64,device_max_wave_size=32, andreason="compute shader requires a larger wave size".The original wave32 control and a control explicitly declaring
WaveSize(32)both dispatched and matched 64/64 expected GPU readback values each, with zero warnings on both revisions. The results repeated in two runs per revision. All shaders were synthetic and passed Microsoft’s DXIL validator. AI-assisted testing and report.@l0g3n on GitHub · 2026-11-24 13:36 UTC · original
Thanks for testing the patch on your RTX A4500! It’s good to hear that the new warning shows up with the D3D12 debug layer off and that both 32-lane test shaders still run without warnings. On my RX 7600, the patched build also passed all 343 workspace tests that ran.
@WuDiXiaoBo on GitHub · 2026-11-25 03:08 UTC · original
Tested
1c0765fon the real title with an RTX 4060 Ti 16 GB (Ada, 32-lane): every refusal now names the wave sizescc @l0g3n — this is the live 32-lane test you were waiting for, on the retail title rather than a synthetic shader.
Environment: Windows 11 Pro build 26300, Intel i5-12400 (6C/12T), 31.8 GB; NVIDIA GeForce RTX 4060 Ti 16 GB, driver 32.0.16.2114 (wave range 32..32); Rust 1.98.1. Built the branch with
cargo build --release -p victoryat1c0765f(baseffe310e), D3D12 debug layer off (VICTORY_D3D12_DEBUGunset),VICTORY_LOG=info.Method: ran the retail title (package 1.0.2.1, Xbox Series X build) with the release build to its account screen, then let it continue into the world (~2,600 draws/frame, ~1 fps) before stopping it. Fresh cache, so the shaders were translated during the run.
Result on this patch
host pipeline refusedlines, and all 97 carried the new fields:required_wave_size=64 device_max_wave_size=32 reason="compute shader requires a larger wave size"(97 distinct compute hashes, first one
13dfdd3b1136e407— the same program that opens the list in the report above).device_max_wave_size=32was read by the patch itself throughD3D12_OPTIONS1, matching this card's wave range; no hardware assumption was needed.ffe310e, the same runs print onlyhost pipeline refused error=0x80070057 shaders=[compute …], with nothing that points at the wave size.So the diagnostic works on a second 32-lane card, with the real title rather than a synthetic shader, and with no debug layer.
Two observations, take them or leave them
N compute programs refused: wave size 64 > device 32) would make that number comparable between reports.Shader wants wave lane count of 64 but maximum wave lane count for device is 32. id=622— the same thing the patch now says without the layer.AI-assisted: the run, the log extraction and this comment were produced with DeepSeek Harness (DeepSeek-V4-Flash) on the reporter's machine, at their request. Every number is from the run described.
@Marvisak on GitHub · 2026-11-25 03:48 UTC · original
Automated triage for the maintainers. This is a complete run report (RTX 4060 Ti, driver 32.0.16.2114, Windows 11 26300,
ffe310e). The refusals themselves are the known wave64-on-32-lane-host failure, tracked in #71 (the oldest complete report; #468 collects more lists). Open PRs that address the cause: #1929 (rebase of #233, wave64 compute in halves), #1922 (rebase of #578, refuse up front), #1960, #1890 and #189.The diagnostic request stands on
main:crates/victory-gpu/src/pipeline/host.rsstill logs onlyhost pipeline refusedwith the HRESULT and shader hashes, with no wave sizes. l0g3n's branch (1c0765f) addsrequired_wave_size/device_max_wave_size, and two 32-lane cards confirmed it in this thread (one on the real title). konradbeck's53ba185adds the reason to the per-frame dropped summary. Pull requests are open to everyone again (see #717), so please open the branch as a pull request and link this issue. #1462 (wave sizes invictory translate) is related.Generated by Claude Code