Commit Graph

4 Commits

Author SHA1 Message Date
3ce953ae80 d3d12: a depth clear outside [0, 1], NaN, or with no clear flag no longer fails the list
`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`.
2026-11-23 22:31:56 +01:00
6adeaf0b25 Runtime: guard closed-list IA/OM/PSO state setters and expand D3D12 Close parity tests (#6644)
Squash-merged after diff review of PR #6644
2026-11-23 11:07:42 -06:00
e2ac2238fa Runtime test clashes: typeless clears accept WARP's nearest-even tie (#521), three close-parity copies now match WARP, the source-size checks start from 300x200 again after ResizeTarget, one test_attribute_trace in xmem_test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:41:22 -05:00
7f76c690e6 test: d3d12_close_parity, Close of 100 one-call lists against WARP
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>
2026-11-22 22:12:03 +00:00