[PR #306] [CLOSED] d3d12_execute_indirect_validation_test: handle Windows 11 26300 relaxed max=0 and padded-stride bounds #358

Closed
opened 2026-11-26 20:17:37 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/306
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/10041


📝 Commits (1)

  • 125a568 d3d12_execute_indirect_validation_test: handle Windows 11 26300 relaxed max=0 and padded-stride bounds

📊 Changes

1 file changed (+15 additions, -8 deletions)

View changed files

📝 runtime/test/d3d12_execute_indirect_validation_test.cpp (+15 -8)

📄 Description

Carried over from old PR 10041 by liamhob in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10041, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
liamhob: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

What and why

On Windows 11 build 26300, \d3d12core.dll\ (both WARP and native hardware D3D12, measured on AMD Radeon RX 9070 XT) accepts 5 \ExecuteIndirect\ cases that older Windows 11 builds rejected:

  • ^Grg_offset=260 >width (max=0 no-op)\ and ^Grg_offset=U64MAX-3 aligned (max=0 no-op): \max=0\ skips the argument-buffer width bound check.
  • \draw stride=20 off=240 max=1 (240+20>256), \draw stride=20 off=220 max=2 (220+40>256), and \dispatch stride=20 off=244 max=1 (244+20>256): newer \d3d12core.dll\ bounds (max_count - 1) * stride + record_size\ rather than \max_count * stride.

Because both WARP and HW return \S_OK\ while the layer enforces the stricter older rule (\


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/306 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/10041` --- ### 📝 Commits (1) - [`125a568`](https://github.com/ubiquitarianism/leonida/commit/125a56889d871ff270a894baa35675c66affc4bc) d3d12_execute_indirect_validation_test: handle Windows 11 26300 relaxed max=0 and padded-stride bounds ### 📊 Changes **1 file changed** (+15 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_execute_indirect_validation_test.cpp` (+15 -8) </details> ### 📄 Description > Carried over from **old PR 10041** by `liamhob` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10041`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `liamhob`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): ### What and why On Windows 11 build 26300, \d3d12core.dll\ (both WARP and native hardware D3D12, measured on AMD Radeon RX 9070 XT) accepts 5 \ExecuteIndirect\ cases that older Windows 11 builds rejected: - \^Grg_offset=260 >width (max=0 no-op)\ and \^Grg_offset=U64MAX-3 aligned (max=0 no-op)\: \max=0\ skips the argument-buffer width bound check. - \draw stride=20 off=240 max=1 (240+20>256)\, \draw stride=20 off=220 max=2 (220+40>256)\, and \dispatch stride=20 off=244 max=1 (244+20>256)\: newer \d3d12core.dll\ bounds \(max_count - 1) * stride + record_size\ rather than \max_count * stride\. Because both WARP and HW return \S_OK\ while the layer enforces the stricter older rule (\ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:37 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#358
No description provided.