d3d12_com_test: test invalid ClearDepthStencilView flags instead of depth 2.0f #236

Closed
Andretuta wants to merge 1 commit from upstream-pr/236 into main
Andretuta commented 2026-11-24 02:50:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:50:52Z.


Carried over from old PR 9969 by liamhob in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9969, 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 \main\ (\2d53a8055), \d3d12_com\ fails at line 345:
\\
line 345: list->Close() == E_INVALIDARG
\\

Commit \3ce953ae8\ updated \CommandList::clear_depth_stencil\ so depth values outside [0, 1]\ (such as \1.5f, -0.5f, \2.0f) are accepted to match D3D12/WARP, and updated \d3d12_clear_test, \command_list_test, and \d3d12_close_parity_test, but left \d3d12_com_test.cpp:345\ expecting \ClearDepthStencilView(..., 2.0f)\ to fail \Close()\ with \E_INVALIDARG.

This updates the check to pass an invalid \D3D12_CLEAR_FLAGS\ bit (\

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465159951 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/236). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:50:52Z. --- > Carried over from **old PR 9969** by `liamhob` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9969`, 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 \main\ (\2d53a8055\), \d3d12_com\ fails at line 345: \\\ line 345: list->Close() == E_INVALIDARG \\\ Commit \3ce953ae8\ updated \CommandList::clear_depth_stencil\ so depth values outside \[0, 1]\ (such as \1.5f\, \-0.5f\, \2.0f\) are accepted to match D3D12/WARP, and updated \d3d12_clear_test\, \command_list_test\, and \d3d12_close_parity_test\, but left \d3d12_com_test.cpp:345\ expecting \ClearDepthStencilView(..., 2.0f)\ to fail \Close()\ with \E_INVALIDARG\. This updates the check to pass an invalid \D3D12_CLEAR_FLAGS\ bit (\
aslan2142 commented 2026-12-01 12:15:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:15:50Z.


Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.

(AI-assisted triage.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310883416 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/236#issuecomment-7310883416). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T12:15:50Z. --- Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review. *(AI-assisted triage.)*
aslan2142 commented 2026-12-01 16:29:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:29:10Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317685365 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/236#issuecomment-7317685365). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:29:10Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

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!236
No description provided.