Skip to content

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 into
ProjectLeonida:mainfrom
abnalstlll-byte:restore/old-10041-execute-indirect-relaxed-bounds
Closed

abnalstlll-byte wants to merge 1 commit into
ProjectLeonida:mainfrom
abnalstlll-byte:restore/old-10041-execute-indirect-relaxed-bounds

Conversation

@abnalstlll-byte

Copy link
Copy Markdown
Contributor

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 SweatierKey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Tested a4db4b3 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

Copy link
Copy Markdown
Collaborator

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing claim Needs a claim in #14

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants