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

Open
github-bot wants to merge 1 commit from github-bot/gh-236 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:50 UTC · original
ubiquitarianism:old-pr/9969 → main · +3 −2 · 1 files · 1 commits · draft

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

**@⁠Andretuta** on GitHub · 2026-11-24 02:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/236) `ubiquitarianism:old-pr/9969` → `main` · +3 −2 · 1 files · 1 commits · draft > 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 (\
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:49:52 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/test/d3d12_com_test.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/236/head:github-bot/gh-236'
git switch 'github-bot/gh-236'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-236'
git switch 'github-bot/gh-236'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-236'
git switch 'github-bot/gh-236'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-236'
git switch 'main'
git merge --squash 'github-bot/gh-236'
git switch 'main'
git merge --ff-only 'github-bot/gh-236'
git switch 'main'
git merge 'github-bot/gh-236'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.