Repository navigation
d3d12_vulkan_device_test: skip invalid-argument cases a Windows 10 or elevated host can't compare - #1737
Conversation
|
Tested fa687fd on NVIDIA GeForce RTX 3090, driver 610.88, Windows 11 Pro 26300, from an elevated shell (High Mandatory Level): pass. One gate doesn't match what this host does, though. The PR's diff applied cleanly to
|
|
Tested fa687fd on NVIDIA GeForce RTX 5090 (driver 621.24), Windows 11 Pro build 10.0.26300.9974 (26H2 — the registry What I ran, from the PR head
Three things from reading the diff; none of them blocks the change:
Not verified by me: the Windows 10 path itself — the skip branch is never reached on this host (nothing in |
|
We ran The |
claimed in #1548.
d3d12_vulkan_device_testfails on a Windows 10 host becausecompare_invalid_argumentstreats every answer the host runtime gives as the target, but the Windows 10 runtime is older and stricter in a few places (the same thing the CheckFeatureSupport part already handles as "the host runtime predates it").what
each case in
compare_invalid_argumentscan now carry acomparable(host)gate. when the gate says this host can't be compared on that case, it's printed and skipped instead of counted:COMMON,HARDWARE_PROTECTEDheap flag on a texture,RAYTRACING_ACCELERATION_STRUCTUREand0x400resource flags on a buffer/texture, shader-visible sampler heap of 2049ID3D12Device10BC1 6x6 top miphost_supports_unaligned_block_textures(existing helper)UnalignedBlockTexturesSupported = 0global realtime priorityqueueS_OKfrom the host, a normal one doesn't. it's a privilege thing, not a layer thingon a Windows 11 / non-elevated host nothing changes: every gate is true and the case is compared as before.
tested
Windows 10 22H2 (19045), NVIDIA RTX 6000 Ada (582.70), MSVC 2022, elevated session, a VM with the GPU passed through:
main:d3d12_vulkan_devicefails at the invalid-arguments check, with the 10 cases above asours 0x0, host 0x80070057(realtime:ours 0x887a002b, host 0x0)ID3D12Device8yes,Device9/10/11no,UnalignedBlockTexturesSupported0not run on Windows 11 here; CI's windows job covers that. no game files.
TL;DR: the device test now passes on Windows 10 too. 10 bad-argument cases where the old Win10 runtime (or an admin process) answers differently are skipped there instead of failing, and newer hosts compare them exactly as before. AI-assisted (Claude Code).