Reuse the D3D12 device across e64 pixel cases and retain per-case failure attribution #502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/508"
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 R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-22T08:32:19Z.
Related to #448. Its measurements identified repeated D3D12 device creation as a major cost. This PR implements a bounded first consumer on main at
a46dac3: the e64 pixel suite has six compiled shaders and many reference inputs per shader.Execution and isolation
offscreen_check <backend> --check-pixel-batch <shader> <case> [<case> ...]opens one device and runs the existing readback path once per input. Each case keeps its own draw resources. The output associates the reference path with an index and reports an ordered pass, pixel mismatch or error. The aggregate exit code is 1 if any case fails. The fixture validates every status, including expected failures. Each arithmetic batch also repeats a correct reference after its negative controls. The debug queue is reported and cleared per case, and the runner checks device health before and after each draw.Measured wall time
Three alternating baseline/changed runs per backend, same renderer binary and DXC, debug layer enabled. Times include shader compilation and readback. Baseline uses the parent Python fixture. The updated fixture performs two extra recovery draws.
Renderer launches for the e64 suite fall from 35 to 6. Existing single-case commands remain available. Other pixel suites can be migrated independently.
Failure controls and verification
ID3D12Device5::RemoveDevicebefore case two gave pass/error/error and exit 1. Both remaining cases reported HRESULT 0x887a0005.This measures the e64 suite on one PC. The rest of #448 remains open.