Report D3D12 background processing request failures #3301
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
No due date set.
Reference
leonida/mandy!3301
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3301"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as D3D12-BACKGROUND-REQUEST-RESULT.
What and why
When
LEONIDA_D3D12_BACKGROUND=0is requested, the startup log says the background shader work is switched off even if the request returns an error. If the device lacksID3D12Device6, there is no log for the request. This makes the applied policy hard to establish from a device-removal report.Keep the success message for a successful D3D12 call. If the interface query or the API call fails, warn once during device creation and include its HRESULT. Either result allows device creation to proceed. The switch, default, and D3D12 call arguments are unchanged. This covers the existing startup request from
host.rs. It does not import the runtime scheduling policy from closed #2847.Tested
0bb64c56, RADV 26.3.1), the old probe loggedswitched offwithok=false. The new one warns that the work could not be disabled and logshresult=0x80004001. Both probes exit successfully; setting the switch to1produces no request log.leonida-gpudiagnostics library tests forx86_64-pc-windows-msvcwith Rust 1.98.1. The switch catalog, changed-file clean-room check, andgit diff --checkpassed.GPUs tested: AMD Raphael integrated graphics, RADV 26.3.1, Linux/Wine 11.22 with VKD3D-Proton 3.1.
AI-assisted: OpenAI Codex (GPT-6.2), with independent read-only review by GPT-6.2 Sol.
Checklist
mainand merges cleanly.VERIFY-3301 — 715/1 y cero tests nuevos, en un cambio que es todo de informar
El título: «Report D3D12 background processing request failures».
Y el cambio es de los que se miden leyendo, no ejecutando: reportar fallos de una petición en segundo plano — se cambia un camino de error que no devolvía nada para que devuelva lo que falló. En la suite eso no se mueve, y es correcto: no hay comportamiento nuevo que un test pueda fijar hasta que exista un consumidor del informe.
Lo que sí se puede medir y no tiene: el informe. Un cambio que añade información puede tener un test de la información — que el fallo llegue con su código y su mensaje, aunque nadie lo escuche todavía — y veinte líneas sin un test es el mismo caso que
#2962y#2980esta noche.Lo que verifiqué: la suite entera del crate con el cambio, sin un solo test distinto.
Lo que no: que el fallo se informe al jugador — eso necesita el fallo, y el fallo necesita el juego.
Thanks for the point about testing the log itself.
670df262now runs the same opt-in/reporting function used at startup with a thread-local subscriber. The regression checks no request with the switch unset or1, INFO on success, and WARN with the exact HRESULT for bothE_NOINTERFACEandE_NOTIMPL. All four targeted MSVC host tests passed under Wine. In a separate Windows probe using the same regression, restoring the oldINFO … switched off, ok=falsebehavior made it fail. The new diff passed independent read-only review.RUN (in game, batch of four pull requests), each head merged with
git merge --no-ffonto maind9b618f10, in one build: #2851488416598, #3299898b87802, #3301670df262b, #33020bb75e0ba. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; arrival in the world was driven by keys and not checked on pictures;
-PrecompileUsedwas used, so the default start (every known pipeline precompiled) was not exercised. #2851 was in an earlier batch on another head; this run covers its current head, withLEONIDA_TITLE_MEMORY_SCALEunset. #3299's switch is opt-in and hardware ray tracing was not on in this 8 GB profile, so it was not exercised. #3302 changes where Pool allocations go by default; this run shows nothing fell over with it, not whether it saves memory. #3301 only reports failures; none was provoked. The precompile before the world took 468 s against about 155 s for most batches: something in this batch leaves the pipeline cache cold (not looked into).AI-assisted (Claude Code).
This landed in
mainthrough #3437, merged as6b5ceb934. #3437 contains this PR's head810d3c6a2and resolves its conflict with main inCargo.lockandleonida-gpu/Cargo.toml.git merge-base --is-ancestor 810d3c6a2 mainholds.Closing at MoonEyes' request (OreoFR's agent). Thank you for the change: the background-processing call now reports a failure with its HRESULT.