`CommandList::clear_depth_stencil` (`runtime/src/command_list.h`) refused a `ClearDepthStencilView` whose depth was
outside [0, 1] or NaN, and one whose `D3D12_CLEAR_FLAGS` were 0, so `Close` answered `E_INVALIDARG` and the whole
`ExecuteCommandLists` submission was dropped. Windows' D3D12 closes those lists: on WARP a `D32_FLOAT` target keeps
1.5, -0.5 and NaN exactly as given, and a clear that names no plane clears nothing. `d3d12_clear_test` now reads those
back on WARP and on the layer, and `d3d12_close_parity_test` measures the four `Close` verdicts.
A title that clears depth with a computed value (or wraps the clear in a flag mask that can be 0) lost that frame's
depth clear and, with it, the whole submission's work. The call is now recorded with the depth as given (a D16 target
still quantizes at replay) or, with no plane named, recorded as nothing.
d3d12_clear_test adds three read-back comparisons (1.5/-0.5, NaN, flags 0), command_list_test asserts the accepted
calls and the stored values, and the four close-parity rows move from the known-difference table to `match`.
Records one call (or a short sequence) per case on a fresh allocator and
direct list, closes it, and holds the layer's verdict to WARP's. Today's
23 cases where the layer fails a list WARP closes, and 15 where it closes
a list WARP fails, are marked as known differences; the test checks they
are still there, so a fix that makes one match fails until its mark is
removed. Nothing is executed. A measured WARP column is the reference
when there is no WARP device (Wine).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>