[PR #236] d3d12_com_test: test invalid ClearDepthStencilView flags instead of depth 2.0f #288

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/236
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9969


📝 Commits (1)

  • cd1d083 d3d12_com_test: test invalid ClearDepthStencilView flags instead of depth 2.0f

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 runtime/test/d3d12_com_test.cpp (+3 -2)

📄 Description

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 (\


🔄 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/236 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9969` --- ### 📝 Commits (1) - [`cd1d083`](https://github.com/ubiquitarianism/leonida/commit/cd1d0836b174911af6ec1fe55b3d50793ca3854a) d3d12_com_test: test invalid ClearDepthStencilView flags instead of depth 2.0f ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_com_test.cpp` (+3 -2) </details> ### 📄 Description > 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 (\ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#288
No description provided.