d3d12_execute_indirect_validation_test: handle Windows 11 26300 relaxed max=0 and padded-stride bounds (OLD-10041) #749

Closed
github-bot wants to merge 1 commit from gh-pr/749/head into gh-pr/749/base
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 13:29 UTC · original
abnalstlll-byte:restore/old-10041-execute-indirect-relaxed-bounds → main · +15 −8 · 1 files · 1 commits · closed without merging

Restore old upstream PR 10041 (OLD-10041).

Windows 11 build 26300+ d3d12core.dll relaxes max=0 argument-offset bounds and bounds (max_count - 1) * stride + record_size\ rather than \max_count * stride\ on both WARP and HW D3D12. This adds \host_may_accept\ to parity cases so the test recognizes host driver relaxation while keeping the layer strict.

Clean-room verified; no game data.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 13:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/749) `abnalstlll-byte:restore/old-10041-execute-indirect-relaxed-bounds` → `main` · +15 −8 · 1 files · 1 commits · closed without merging Restore old upstream PR 10041 (OLD-10041). Windows 11 build 26300+ d3d12core.dll relaxes max=0 argument-offset bounds and bounds \(max_count - 1) * stride + record_size\ rather than \max_count * stride\ on both WARP and HW D3D12. This adds \host_may_accept\ to parity cases so the test recognizes host driver relaxation while keeping the layer strict. Clean-room verified; no game data.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:19:22 +00:00
github-bot closed this pull request 2026-11-26 09:19:22 +00:00
Author
Owner

@⁠SweatierKey on GitHub · 2026-11-24 14:33 UTC · original · approved these changes

Independent Windows 11 + NVIDIA GeForce RTX 5070 Ti (driver 616.92) A/B verification on main@d0da7dade (portable clang-cl 23.1.6 + Windows SDK 10.0.26100):

  • Baseline main@d0da7dade: d3d12_execute_indirect_validation_test.exe fails with 5 parity mismatches (RC=1) where live WARP and live HW D3D12 both return S_OK while the layer keeps the stricter E_INVALIDARG.
  • With PR #749: 49 parity cases (WARP=live, HW=live), positive GPU dispatch ok, 0 validation errors, 0 failures (RC=0).
  • python3 -I scripts/check_no_game_data.py: PASS.

Clean fix for #504; no game data. AI-assisted: yes.

**@⁠SweatierKey** on GitHub · 2026-11-24 14:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/749#pullrequestreview-6041147331) · **approved these changes** Independent Windows 11 + NVIDIA GeForce RTX 5070 Ti (driver 616.92) A/B verification on `main@d0da7dade` (portable `clang-cl 23.1.6` + Windows SDK 10.0.26100): - Baseline `main@d0da7dade`: `d3d12_execute_indirect_validation_test.exe` fails with 5 parity mismatches (`RC=1`) where live WARP and live HW D3D12 both return `S_OK` while the layer keeps the stricter `E_INVALIDARG`. - With PR #749: `49 parity cases (WARP=live, HW=live), positive GPU dispatch ok, 0 validation errors, 0 failures` (`RC=0`). - `python3 -I scripts/check_no_game_data.py`: PASS. Clean fix for #504; no game data. AI-assisted: yes.
Author
Owner

@⁠Sangonapou on GitHub · 2026-11-24 15:44 UTC · original

Tested a4db4b32 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows, which is the 26300 build this PR is about: pass

Built at this head with scripts\build_runtime.ps1 (MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0); llvm-mc 23.1.6, SPIRV-Tools 2026.4. No game files.

ctest -R ^d3d12_execute_indirect_validation$ -V: passed, execute_indirect_validation: 49 parity cases (WARP=live, HW=NVIDIA GeForce RTX 3080 Ti Laptop GPU), positive GPU dispatch ok, 0 validation errors, 0 failures. The relaxed rows show the 26300 host accepting what the layer refuses, as described, e.g. draw stride=20 off=220 max=2 (220+40>256) | 0x80070057 | S_OK | S_OK and dispatch stride=20 off=244 max=1 (244+20>256) | 0x80070057 | S_OK | S_OK, with the exact fit count_offset=252 (252+4==256, max=1) accepted by all three.

**@⁠Sangonapou** on GitHub · 2026-11-24 15:44 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/749#issuecomment-7136533578) Tested a4db4b32 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows, which is the 26300 build this PR is about: pass Built at this head with `scripts\build_runtime.ps1` (MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0); `llvm-mc` 23.1.6, SPIRV-Tools 2026.4. No game files. `ctest -R ^d3d12_execute_indirect_validation$ -V`: passed, `execute_indirect_validation: 49 parity cases (WARP=live, HW=NVIDIA GeForce RTX 3080 Ti Laptop GPU), positive GPU dispatch ok, 0 validation errors, 0 failures`. The relaxed rows show the 26300 host accepting what the layer refuses, as described, e.g. `draw stride=20 off=220 max=2 (220+40>256) | 0x80070057 | S_OK | S_OK` and `dispatch stride=20 off=244 max=1 (244+20>256) | 0x80070057 | S_OK | S_OK`, with the exact fit `count_offset=252 (252+4==256, max=1)` accepted by all three.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 19:50 UTC · original

Thanks for the restoration and the Windows run. We are closing this in favour of #1066.

  • This is the same patch as draft #306 (OLD-10041), and it had no claim in #14 (missing claim).
  • #1066 fixes the layer itself: it accepts the argument ranges current D3D12 runtimes accept, which is what #504 reports as over-strict. It covers recording, replay and the test.
  • Keeping the layer strict and forgiving the host in the test would leave command lists dropped on current Windows.
  • Your 26300 results and SweatierKey's A/B run match those on #1066, and they helped settle it.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-24 19:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/749#issuecomment-7142664232) Thanks for the restoration and the Windows run. We are closing this in favour of #1066. - This is the same patch as draft #306 (OLD-10041), and it had no claim in #14 (`missing claim`). - #1066 fixes the layer itself: it accepts the argument ranges current D3D12 runtimes accept, which is what #504 reports as over-strict. It covers recording, replay and the test. - Keeping the layer strict and forgiving the host in the test would leave command lists dropped on current Windows. - Your 26300 results and SweatierKey's A/B run match those on #1066, and they helped settle it. AI-assisted (Claude Code, Claude Opus 5.5).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.