Repository navigation
D3D12.X: a huge compute program the driver refuses is logged with its verdict - #1918
Conversation
Melow-code
left a comment
There was a problem hiding this comment.
Logging the driver's rejection verdict for huge compute programs is useful for debugging. Make sure the log line includes the PSO hash or shader key so it can be matched to the cache.
… verdict The driver's refusal of a translated compute pipeline reached only note_translation_error: the report's translation_errors, or the notes of a cached-only attempt, which are dropped when a shader was missing. On an RX 7800 XT a retail title's 13.8 MB compute program (xcl-dev#1332 in the form of xcl-dev#1321) took the driver 15 - 23 s and ~15 GB of commit in every run and was refused with E_OUTOFMEMORY; xcl.log showed its `driver compile finish` and, a millisecond later, the title's dispatch with that pipeline skipped - and nothing in between. The same with the 3.9 MB form of the direct DXIL backend (xcl-dev#1748). The verdict had to be taken from `xcl shaders --measure-pso`. A huge program (`huge_pso_bytes` and up) the driver refuses is now logged with its record hash, DXIL size, HRESULT and the time the driver took, next to the compile lines it already has. Logging only; no behaviour changes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
69dca26 to
79fde18
Compare
|
Thanks. The line had the console record's hash (the one in Suite and smoke rerun on the new head are in the description. |
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Code review on
Remaining before merge: |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
When the driver refuses a translated compute pipeline, the only trace was
note_translation_error: the report'stranslation_errors, or the notes of a cached-only attempt, which are dropped when a shader was still missing. On an RX 7800 XT a retail title's 13.8 MB compute program (#1332 in the form of #1321) takes the driver 15–23 s and ~15 GB of commit in every run and is refused with E_OUTOFMEMORY;xcl.logshowed itsdriver compile finishline and, a millisecond later, the title's dispatch with that pipeline skipped, with nothing in between. The same with the 3.9 MB form of the direct DXIL backend (#1748). The verdict had to be taken fromxcl shaders --measure-pso. Part of #232 / #505.What is in it
crates/xcl/src/hle/d3d12x/real.rs: a huge compute program (huge_pso_bytesand up) the driver refuses is logged with its record hash, DXIL size, driver-cache file name (<fnv64(DXIL)>-<len>-<flags>.pso, so the line matches the blob cache too), HRESULT and the time the driver took, next to thedriver compile start/finishlines it already has. Logging only; no behaviour changes, no test (AGENTS.md: logging needs none).README.md: one sentence under the huge-pipeline paragraph.Tested
stable-x86_64-pc-windows-msvc, DXC 1.9.2602.17 (Windows SDK 10.0.26100), debug for the tests, release for the titlecargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4on79fde18(--no-fail-fast, 20 test binaries): 974 passed, 1 failed, 45 ignored. The failure,gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722: res[30] = 0x1, CPU 0x7fffffff), fails identically onmain689f2dbon this card: the direct DXIL backend, not this PR.gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpuandf32_programs_on_the_gpu(the per-lane form refusesV_MUL_F16/V_PK_MUL_F16/V_CVT_F16_F32),heap_window_out_of_memory_falls_back_to_the_switch_form.79fde18with no input: the two programs the preload builds at start are now answered inxcl.log:Regression run
Not tested
AI use
🤖 Generated with Claude Code