mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1066] [MERGED] d3d12: ExecuteIndirect accepts the argument ranges newer D3D12 runtimes accept (D3D-EXECIND-RANGE-CARRY) #1103
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1066
Author: @klikso
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:carry/d3d-execind-range📝 Commits (1)
10f7fc2d3d12: ExecuteIndirect accepts the argument ranges newer D3D12 runtimes accept📊 Changes
3 files changed (+63 additions, -26 deletions)
View changed files
📝
runtime/shims/d3d12_com.cpp(+13 -6)📝
runtime/src/vulkan_replay.h(+7 -7)📝
runtime/test/d3d12_execute_indirect_validation_test.cpp(+43 -13)📄 Description
Claimed in the coordination issue as: D3D-EXECIND-RANGE-CARRY
Fixes: #504
What and why
d3d12_execute_indirect_validationis red onmainon current Windows 11: the layer refuses fiveExecuteIndirectcalls that live WARP and the hardware driver both accept (#504, reported from seven machines today). #337 by @natterman12 fixed it and was verified independently on six hosts (RTX 5070 Ti, 4060 Ti, 5070, 2060 SUPER, Radeon 660M, and Linux replay on an RTX 3060), but its author closed it on 24 November along with his other open pull requests, so nothing open carries the fix.This is that one commit,
7f96cff90, cherry-picked onto currentmainwith its author kept. No change of mine is in it; the cherry-pick applied without conflicts.(max_count - 1) * stride + record_size, and checks no range at a zero count, in recording (d3d12_com.cpp) and in replay (vulkan_replay.h).@natterman12: this is your work. If you reopen #337 or want this branch, say so and I will close this.
The alternative is draft #306 (old PR 10041), which keeps the layer strict and relaxes the test only. Only one of the two should land.
Tested
Windows 11 26200.9974, D3D12Core and
d3d10warp.dll10.0.26100.9818, MSVC 14.44.35207 with Ninja,RelWithDebInfo, Windows SDK 10.0.26100.0, Vulkan 1.4.357. Built and run at base32950551e; the four commitsmaingained since do not touchruntime/.main32950551ectest -j 6d3d12_execute_indirect_validationOn
mainthe five failing rows are the ones in #504, eachlayer=0 warp=1 hw=1 expected=0: the two aligned offsets past the buffer atmax=0, and the three padded-stride exact fits (240+20,220+40,244+20in a 256-byte buffer). The two new overrun rows (244+16>256,224+20+16>256) are refused by the layer, WARP and the hardware alike.python -I scripts/check_no_game_data.pyon the three changed files: no hits.git diff --check: clean.GPUs tested: NVIDIA GeForce RTX 3060 Ti (Ampere), driver 621.14, Windows 11 26200
AI-assisted: yes (Claude Code; built, run and measured on the machine above)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed: n/a (no translator rule).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.