Repository navigation
d3d12_execute_indirect_validation_test: an older D3D12 runtime (Windows 10, Windows 11 22631) refuses five exact-fit / max=0 cases; hold only the layer to the newer verdicts there - #7393
etcetera-yt wants to merge 2 commits into
Conversation
… an older bounds rule The table's verdicts were measured on Windows 11. Windows 10's d3d12.dll (WARP and the hardware driver alike) needs offset + stride * max_count <= width, also for max_count 0, so it refuses five cases Windows 11 accepts: an argument buffer the last command fits exactly but a whole stride doesn't, and an out-of-range offset with max_count 0. The test failed 5 of 49 cases there. Those five cases are flagged. A live host that refuses all of them and has no ID3D12Device10 (Windows 10's runtime) is compared with the older verdicts on them; every other case, and the layer always, keeps the Windows 11 table. The layer is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD
|
Independent Windows 11 + GPU test of Setup: Windows 11 x64, MSVC 19.44.35220 (
AI-assisted review/test. |
|
Thanks @MartinIndra02 for the Windows 11 run (RTX 3080 / 621.24). That's the half I couldn't test: with |
|
Full rebuild and full ctest on this branch (
AI-assisted (Claude Code). |
|
Tested dea60e7 on NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 build 26300, VS 2022 Build Tools (MSVC 19.44), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, RelWithDebInfo: pass. Built Synthetic tests only, no game files. AI-assisted (Claude Code). |
|
Independent Windows 11 check requested in the PR description: PASS at exact head Windows 11 Pro 10.0.26300 (build 26300), NVIDIA GeForce RTX 5060 Ti, driver 621.14 / 32.0.16.2114. MSVC 19.44.35230.0, Windows SDK 10.0.26100.0, CMake 3.31.6-msvc6, VS 2022 x64 RelWithDebInfo. Built Focused CTest
AI-assisted with Codex. |
|
Independent Windows 11 check at
So the older rule is not limited to runtimes without |
|
Independent check on Windows 10: Windows 10 Pro 22H2 (10.0.19045), NVIDIA GeForce RTX 5060 Ti (driver 621.01, Vulkan 1.4.357) with the in-box D3D12 and WARP as hosts, Vulkan SDK 1.4.363.0, VS 2022 RelWithDebInfo; AI-assisted (Claude Code); the build and the run are from that machine. |
|
Tested
On main alone, on this GPU, the full ctest fails these: Ran the full |
…by the host's verdicts, not by ID3D12Device10 Windows 11 22631 (an RX 7800 XT host, reported on ItsNotRexed#7393) has ID3D12Device10 but its WARP and driver refuse the same five cases as Windows 10 19045. So the older rule belongs to the D3D12 runtime, not to the interface set. A host that refuses all five follows it; one that refuses only some still fails. The layer is held to the newer verdicts as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD
|
Thanks @Hubitski, that's the case I couldn't test, and you're right: the older rule belongs to the D3D12 runtime, not to the interface set. Fixed in
Re-tested here (RTX 5060 Ti, 621.14, Windows 10 19045): the test passes with and without
A re-run on your 22631 host would confirm the fix there. On a 26xxx host (@MartinIndra02, @likecrank-dotcom) nothing changes: WARP accepts the five, so the comparison is the same as on |
|
Re-run at merge |
|
Thanks @Hubitski for re-running on your 22631 / RX 7800 XT host: the verdict-based detection catches it now, with 0 failures. AI-assisted (Claude Code). |
|
Tested
So the verdict-based detection from AI-assisted (Claude Code, Claude Opus 5.5). |
|
Tested This is the first Windows 10 check of commit Ran the following commands: cmake --build runtime/build --config RelWithDebInfo --target d3d12_execute_indirect_validation_test
ctest --test-dir runtime/build -C RelWithDebInfo -R "^d3d12_execute_indirect_validation$" -V
So, the detection based on verdicts alone in this PR works on a Windows 10 machine, even on an older driver than the 5060Ti one. |
Claimed in the coordination issue as: new TEST item, #7333 (comment)
What and why
d3d12_execute_indirect_validation(from #6830) fails on Windows 10: 5 of 49 parity cases. The layer is right. The table's verdicts were measured on Windows 11 WARP and an RTX 5090. Windows 10's in-boxd3d12.dll(WARP and the NVIDIA driver give the same verdicts) uses an older bounds rule:offset + stride * max_count <= width, checked even whenmax_countis 0. So it refuses:arg_offset=260 >width (max=0 no-op)arg_offset=U64MAX-3 aligned (max=0 no-op)draw stride=20 off=240 max=1 (240+16==256)draw stride=20 off=220 max=2 (220+20+16==256)dispatch stride=20 off=244 max=1 (244+12==256)That one rule also gives the other 44 verdicts on Windows 10. For example,
arg_offset=256 ==width (max=0)passes there, while 260 fails.The change is in the test only:
older_runtime_refuses = true.older_runtime_rule()decides per live host device: true only when that device refuses all five. Only then is that host compared with the older verdicts on those five cases. (The first version also required noID3D12Device10; a Windows 11 22631 run on d3d12_execute_indirect_validation_test: an older D3D12 runtime (Windows 10, Windows 11 22631) refuses five exact-fit / max=0 cases; hold only the layer to the newer verdicts there #7393 showed that runtime has the interface and the older rule, so the check is now the verdicts alone,ab4909e5e.)Nothing is left of the item.
Tested
RTX 5060 Ti, NVIDIA 621.14, Windows 10 19045 (in-box D3D12, no Agility SDK), MSVC 14.44 (VS 2022 BuildTools), RelWithDebInfo,
main8575d36ed.main:d3d12_execute_indirect_validationfails,5 failures(the five rows above,layer=1 warp=0 hw=0 expected=1).49 parity cases (WARP=live, HW=NVIDIA GeForce RTX 5060 Ti), positive GPU dispatch ok, 0 validation errors, 0 failures, plusWindows 10's bounds rule on the host (WARP, NVIDIA GeForce RTX 5060 Ti, no ID3D12Device10): it refuses 5 cases .... It also passes withLEONIDA_VK_VALIDATION=1.required = max_command_count * strideind3d12_com.cpp): the test fails. The positive GPU dispatch fails first (line 325: SUCCEEDED(list->Close())). With that dispatch also commented out, the table itself fails 3 cases withlayer=0 ... expected=1. So the layer is still held to Windows 11.draw stride=20 off=240: that case fails on Windows 10 (layer=1 warp=0 hw=0 expected=1), and the summary says 4 cases.mainbaseline: in a comment below once it finishes.Not tested: Windows 11 (no machine here). There
ID3D12Device10exists, soolder_runtime_rule()is false and the comparison is the same as onmain. A Windows 11 run would confirm it. Also not tested: a Windows 10 host with the Agility SDK.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (No translator change.)🤖 Generated with Claude Code
https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD