Repository navigation
Conversation
kacper-serewis
left a comment
There was a problem hiding this comment.
At 6524eee, Windows RTX 5070 (616.56) with Vulkan validation passed all 97 native comparisons and all 71 tested WARP comparisons. WARP skipped 26 typed D32/D32S8 cases. All 20 mixed MIN/MAX pairs differed on at least one pixel, all six mixed AVERAGE cases matched both hosts, and 12 layer refusals preserved the destination. No Vulkan validation errors. Synthetic inputs, AI-assisted.
… TEST-848) d3d12_depth_resolve_test now takes D32_FLOAT_S8X24_UINT through the same cases as D24S8: either plane by the depth-stencil format, the depth plane by R32_FLOAT_X8X24_TYPELESS (MIN, MAX, AVERAGE) and the stencil plane by X32_TYPELESS_G8X24_UINT, an R32G8X24_TYPELESS resource, and the refusals (AVERAGE by the D32S8 format or of stencil). The readback tells a 24-bit UNORM depth plane from a float one by format, not by "has stencil". Every case also runs as an edge case: a triangle drawn over the cleared 4x source with a depth-only PSO (depth 0.5, stencil 0x44 REPLACE, test ALWAYS) leaves the pixels its diagonal edge crosses with samples that differ, so MIN, MAX and AVERAGE reduce over different values. There is no CPU model of the coverage: the layer must match the PC runtime byte for byte, and MIN and MAX of each edge case must differ somewhere. The layer's VS is a GLSL stand-in (test/glsl/vs_depth_edge.vert) behind a synthetic FSSM container; the host's is HLSL compiled by d3dcompiler_47. Without glslangValidator the edge cases are skipped and the summary says so. RTX 5070 (621.01), Windows 11, validation on: 97 of 97 cases match the PC runtime on the default adapter, 71 of 71 on WARP, 20 edge MIN/MAX pairs differ. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6524eee to
afd5304
Compare
|
Rebased onto Tested afd5304 on RTX 5070, driver 621.01, Windows 11, MSVC 14.44, Vulkan SDK 1.4.363, AI-assisted (Claude Code). |
|
Radeon retest at One test-coverage detail in the informational branch: on native AMD it now also downgrades a failed edge |
|
Tested afd5304 on a driver that has the quirk: NVIDIA GeForce RTX 3070 (Ampere), driver 617.42, Windows 11 24H2 (26100), MSVC 19.44 RelWithDebInfo. The new quirk path works there. The RTX 5070 run above reports 0 host quirks, so it couldn't exercise it. Before the rebase, 6524eee failed here with 20 At afd5304:
No game files. AI-assisted (Claude). |
|
Tested Unlike the RTX 5070 run in the description, the native D3D12 driver on this card disagrees with the clears in 15 cases. The layer matches the clears in every one of them, so they count as host quirks: The 15 host quirks ("the host differs from the clears; the layer matches them"), each for rect 0 and rect 1 unless noted:
The other 8 of the 23 are the edge cases reported as information: "edge D24S8 stencil MIN/MAX (by D24S8 and by X24_G8), rect 0 and rect 1: NVIDIA GeForce RTX 4070 differs from the layer". The D24S8 stencil plane on the non-edge cases is also among the host quirks, so this looks like the 4070's D3D12 driver resolving that stencil plane differently in general, not something specific to the edge. WARP agrees with the layer everywhere. So this card (Ada, 621.24) gives 74/97 where the RTX 5070 (Blackwell, 621.01) gave 97/97. No game files. AI-assisted (Claude Code). |
Items: TEST-847 and TEST-848 (claim: #3796 (comment)). Test and docs only; no runtime change.
TEST-847: D32S8 plane formats
d3d12_depth_resolve_testalready compared D32 and D24S8 resolves by their plane formats with the PC runtime. The untested part was D32S8. It now runs through the same cases as D24S8, whole and rectangle:D32_FLOAT_S8X24_UINT(MIN, MAX);R32_FLOAT_X8X24_TYPELESS(MIN, MAX, AVERAGE);X32_TYPELESS_G8X24_UINT(MIN, MAX);R32G8X24_TYPELESSresource resolved both ways;The readback used "has stencil" to mean "24-bit UNORM depth". It now tells the two apart by format (
unorm24()), so D32S8's float depth is read and modelled as a float.WARP skips D32S8 by its own format, as it already skips
D32_FLOATby its own format: that one removes WARP's device (see the top of the file). WARP still compares the plane formats.TEST-848: modes over samples that differ
Every case also runs as an edge case. Before the resolve, one triangle is drawn over the cleared 4x source with a depth-only PSO: no PS, depth 0.5 written with
ALWAYS, and stencilREPLACEwith ref 0x44. Its diagonal edge leaves the pixels it crosses with some samples at the triangle's values and some at the clears' (0.25/0.75/1.0, 0x11/0x22/0x33). MIN, MAX and AVERAGE then reduce over different values.test/glsl/vs_depth_edge.vert) behind a synthetic FSSM container in a test shader index, asd3d12_typeless_families_testdoes. The host's is the same triangle in HLSL, compiled byd3dcompiler_47.glslangValidatorat build time, the edge cases are skipped and the summary line says so.docs/d3d12_vulkan.mdno longer calls the D32S8 pair untested or the modes over differing samples unchecked.Tested
Tested 6524eee on an NVIDIA GeForce RTX 5070, driver 621.01, Windows 11 Pro (26300), MSVC 14.44, Vulkan SDK 1.4.363, with
LEONIDA_VK_VALIDATION=1:No validation messages (the test fails on any). Docs tests pass:
test_docs_list_items,test_docs_links,test_docs_repo_paths,test_docs_design_rows.Runs on other GPUs would help, especially AMD and Intel. The D24 AVERAGE rounding over differing samples is the case most likely to differ between drivers.
AI-assisted (Claude Code).
🤖 Generated with Claude Code