Repository navigation
tests: keep d3d12_vulkan_device_test running on Windows 10 (TEST-97) - #717
Conversation
|
Two notes from testing. The The Windows 10 branches were exercised by simulation. On the same Windows 11 / RTX 3070 machine I temporarily forced Exit 0, no VUIDs, and the later clear/copy/resolved/reserved-resource/descriptor checks all ran and matched. Then I restored the capability checks and rebuilt: |
Windows 10's host D3D12 runtime cannot answer unaligned block-compressed GetCopyableFootprints cases (no D3D12_OPTIONS8.UnalignedBlockTexturesSupported) and has no ID3D12GraphicsCommandList7 for ResolveSubresourceRegion. Both comparisons failed before the device checks, so a Windows 10 run stopped at line 1061/1080. Skip unaligned BC footprint cases when the host lacks the option, and compare only the full ResolveSubresource form when the host list has no list7. The full form still covers every supported format and sample count, and a self-check covers the classification used by the footprint skip.
64481f6 to
2e23f95
Compare
|
Tested 2e23f95 on Windows 10 Home 22H2 (19045), NVIDIA GeForce RTX 4090 (driver 617.14, Vulkan 1.4.351), MSVC 19.39, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja RelWithDebInfo,
Code read: the skips are narrow. Only BC cases with an unaligned top mip, only when the host lacks Heads-up for #706 (D3D-91): I also merged #706 into this locally. Its new AI-assisted (Claude Code); repository tests only, no game files. |
|
Rebased on
Local rerun on the rebased base: |
|
Windows 10 test run of TEST-97: passes.
No game files. AI-assisted (Claude Code). |
|
Both Windows 10 branches confirmed on a Windows 10 host (22H2 19045, RTX 4080, NVIDIA 621.01, main |
Claimed in the coordination issue as: TEST-97 (#634 (comment))
What and why
On Windows 10 the host D3D12 runtime fails two comparisons near the start of
d3d12_vulkan_device_test, andEXPECTreturns on the first failure. Everything after them (command objects, clears, copies, resolve, reserved resources, descriptors) never ran, so a Windows 10 failure hid whether a PR's own new checks pass.GetCopyableFootprintsreturns -1 for every field of the 10x6 BC1 case when the host has noD3D12_OPTIONS8.UnalignedBlockTexturesSupported. The comparison now skips block-compressed cases whose top mip is not a whole number of 4x4 blocks when the host reports the option missing or does not answer the query. Aligned BC cases still compare. A small self-check covers the classification on every host.ResolveSubresourceRegionneedsID3D12GraphicsCommandList7, which the Windows 10 host list does not expose. The comparison now checks the host once and, without list7, compares only the fullResolveSubresourceform instead of failing insidecapture_resolve. The full form still covers every supported format and sample count; the two region forms are skipped with the existing skip accounting and a printed note.Test-only change in
runtime/test/d3d12_vulkan_device_test.cpp; no runtime or translator change. No game files.Tested
Windows 11 Pro 26300, NVIDIA GeForce RTX 3070, driver 621.24, MSVC 19.44, Vulkan SDK 1.4.363.0, RelWithDebInfo (Ninja).
scripts\build_runtime.ps1: clean, no warnings.d3d12_vulkan_device_testwithLEONIDA_VK_VALIDATION=1: exit 0;Resolve comparison: 60 compared, 60 matched, 10 unsupported or host-unavailable cases skipped, 0 mismatches;GetCopyableFootprintsand the later clear/copy/resolved/reserved-resource/descriptor checks all matched. Zero validation errors or VUIDs.ctest --test-dir runtime/build: 29/29 passed (the test is registered with CTest on current main).The Windows 10 branches themselves need a Windows 10 host to exercise (this machine has both the option and list7). To check them anyway, I temporarily forced
host_supports_unaligned_block_texturesandhost_has_graphics_command_list7to false on the same machine and reran:Exit 0, no VUIDs, and the later checks all ran. Then I restored the real checks and rebuilt. A real Windows 10 confirmation is still welcome; the expected output is those two skip notes followed by the later checks.
AI-assisted (OpenCode, DeepSeek V4.1 Flash).
Checklist
docs/design.md, with how it was confirmed. (Not applicable: test-only change.)