mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1286] [MERGED] d3d12: RSSetScissorRects with more than 16 rectangles keeps the first 16; d3d12_close_parity passes again (D3D-SCISSOR-COUNT-PARITY) #1318
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#1318
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/1286
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:d3d12-scissor-count-parity📝 Commits (1)
4ff9a77d3d12: RSSetScissorRects with more than 16 rectangles keeps the first 16 (D3D-SCISSOR-COUNT-PARITY)📊 Changes
1 file changed (+6 additions, -1 deletions)
View changed files
📝
runtime/shims/d3d12_com.cpp(+6 -1)📄 Description
Claimed in the coordination issue as: D3D-SCISSOR-COUNT-PARITY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144591297)
What and why
d3d12_close_parityhas failed onmainsince #510 was merged (found by QemmHD in https://github.com/ubiquitarianism/leonida/pull/510#issuecomment-7143969965):RSSetScissorRectswith more than 16 rectangles an error (check(false)), so the list'sClosereturnsE_INVALIDARG.runtime/test/d3d12_close_parity_test.cpp:362expects the layer to match it.stubnotice. Counts from 1 to 16 behave as before.RSSetViewports(17)is unchanged; the parity test already lists it as a known stricter case.I merged #510, so this is my regression to fix. One file:
runtime/shims/d3d12_com.cpp.Tested
The Windows runtime was cross-built on Linux with clang-cl / lld-link 23.1.5 and the xwin MSVC CRT and Windows SDK 10.0.26100, and the full
ctestsuite was run under Wine 11.22, headless, on two devices. No game files.maind3d12_close_parityRSSetScissorRects(17)d3d12_multi_viewport(from #510)mainunder the same setup, no test changes from pass to fail on either device.GPUs tested: Mesa llvmpipe (LLVM 23.1.5) and AMD Ryzen 9 7950X3D integrated graphics (RDNA2, RADV, Mesa 26.3.1), Linux, through Wine 11.22
AI-assisted: yes (Claude Code, Claude Fable 5.2)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.