Skip to content

d3d12_execute_indirect_validation_test: hold a Windows 11 23H2 host to its own runtime's verdicts - #8311

Open
0klavair wants to merge 1 commit into
ItsNotRexed:mainfrom
0klavair:test/execute-indirect-23h2
Open

0klavair wants to merge 1 commit into
ItsNotRexed:mainfrom
0klavair:test/execute-indirect-23h2

Conversation

@0klavair

Copy link
Copy Markdown
Contributor

Claim: #7496 (comment) (new TEST item).

Problem

On Windows 11 23H2 (build 22631), d3d12_execute_indirect_validation fails on main dde82f27, run alone or under ctest: 5 failures, layer=1 warp=0 hw=0 expected=1. The expected column was measured on a newer runtime: #6830 passes on 24H2 (26100). The 23H2 in-box runtime (D3D12Core 10.0.22621.5415) refuses 5 of these cases, on WARP and on the GPU alike:

Case Newer runtime and the layer 23H2 runtime (WARP and RTX 5060)
arg_offset=260 >width (max=0 no-op) accepted refused
arg_offset=U64MAX-3 aligned (max=0 no-op) accepted refused
draw stride=20 off=240 max=1 (240+16==256) accepted refused
draw stride=20 off=220 max=2 (220+20+16==256) accepted refused
dispatch stride=20 off=244 max=1 (244+12==256) accepted refused

The 23H2 rules behind them:

  • With max=0, it still refuses an argument offset past the buffer. At exactly the width it accepts, as the newer runtime does.
  • It bounds offset + stride × max instead of where the last command ends.

Fix (test only)

  • Case gets an optional older_runtime verdict. It is set on those 5 cases (0, refused) and is -1 everywhere else.
  • A host whose runtime has no ID3D12Device11 is compared with that verdict. That is 23H2's runtime, told apart the same way as in d3d12_vulkan_device_test: tell Windows 11 23H2's runtime apart by ID3D12Device11 (TEST-724 follow-up) #4667.
  • The checks stay strict:
    • The layer is still compared with the measured column on every host.
    • A host with ID3D12Device11 is compared with the measured column, as before.
    • A 23H2 host must refuse exactly these 5 cases: accepting one fails the test.
  • The table row marks such cases older host runtime's verdict, and a summary line counts them.

Tested

Windows 11 23H2 (22631), RTX 5060, NVIDIA 621.01, MSVC 19.44, Ninja RelWithDebInfo:

  • Before: exit 1, 5 failures.
  • After: 49 parity cases with live WARP and the RTX 5060, 0 failures, 0 validation errors, "5 cases where a host runtime without ID3D12Device11 (Windows 11 23H2) gave its own measured verdict". Same result with LEONIDA_VK_VALIDATION=0 and =1.
  • Negative control: with has_device11 forced to true, so the 23H2 host is taken as a newer runtime, the same 5 failures come back (exit 1).

Not run:

The other ctest failures on this machine already have PRs: d3d12_vulkan_device (#7125), d3d12_indirect_dispatch_count (#5792), d3d12_depth_resolve (#7905 and others), and d3d12_bindless_churn_validated under -j4 (#6221).

AI-assisted (Claude Code).

🤖 Generated with Claude Code

…untime's verdicts

The expected column was measured on a newer runtime (ItsNotRexed#6830 passes on Windows 11
24H2), and the test failed on Windows 11 23H2: its in-box D3D12Core 10.0.22621.5415
refuses 5 cases on WARP and on the GPU alike. With max=0 it still refuses an
argument offset past the buffer (260 > 256, U64MAX-3), and it bounds offset +
stride * max instead of where the last command ends (stride 20 draws at 240 and
220, a stride 20 dispatch at 244).

Those cases now carry the older runtime's measured verdict, and a host without
ID3D12Device11 (the 23H2 runtime, as in d3d12_vulkan_device_test) is compared
with it. The layer is still checked against the measured column on every host,
and a host with ID3D12Device11 against that column as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant