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

Closed
abnalstlll-byte wants to merge 1 commit from upstream-pr/749 into main
abnalstlll-byte commented 2026-11-24 13:29:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:29:18Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473070683 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/749). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:29:18Z. --- 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.
SweatierKey commented 2026-11-24 14:33:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by SweatierKey on 2026-11-24T14:33:13Z.

Review: APPROVED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6041147331 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/749#pullrequestreview-6041147331). Originally posted by [SweatierKey](https://github.com/SweatierKey) on 2026-11-24T14:33:13Z. **Review:** APPROVED --- 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.
Sangonapou commented 2026-11-24 15:44:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Sangonapou on 2026-11-24T15:44:30Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7136533578 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/749#issuecomment-7136533578). Originally posted by [Sangonapou](https://github.com/Sangonapou) on 2026-11-24T15:44:30Z. --- 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.
aslan2142 commented 2026-11-24 19:50:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T19:50:30Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7142664232 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/749#issuecomment-7142664232). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T19:50:30Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!749
No description provided.