[PR #232] [CLOSED] Tests: d3d12_depth_resolve no longer expects a refused list to replay #283

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/232
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/9965


📝 Commits (1)

  • f44150a Tests: d3d12_depth_resolve no longer expects a refused list to replay

📊 Changes

1 file changed (+9 additions, -8 deletions)

View changed files

📝 runtime/test/d3d12_depth_resolve_test.cpp (+9 -8)

📄 Description

Carried over from old PR 9965 by BatSmacker84 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9965, 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.
BatSmacker84: 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):

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116934259. This fixes tugasky's finding https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116620428, which isn't in the tables yet.

d3d12_depth_resolve fails on every Vulkan device with eight lines like refused D24S8 depth AVERAGE rect 1: Close 0x80070057, destination changed. The cause is #6610: since it landed, ExecuteCommandLists refuses a whole batch that holds a list whose Close failed, as the D3D12 runtime does. The test was written a day earlier. For its refused cases it still executes the list on the layer and compares the readback with the destination's clear. That clear is in the refused list, so it never runs.

The host-comparison lines (63 of 97 match, 18 host quirks) and the edge … (information) lines are only printed, never failures, so they aren't the cause.

Change (test only):

  • Refused cases check that Close returns E_INVALIDARG, and still execute the list, so the layer's batch refusal stays exercised.
  • A mode the device lacks is no longer compared against the clears, for the same reason. It didn't trigger on RDNA3 (depth 0xf, stencil 0xd), but it would on a device missing a mode that D3D12 accepts.

Tested on Windows 11, AMD Radeon RX 7800 XT (Adrenalin 26.11.2), MSVC 19.44, Vulkan SDK 1.4.363.0. Current main (c95d93572) doesn't build on MSVC (the console descriptor heap of #9576), so I built on top of #9873, one of the open build fixes; this PR needs whichever of them lands.

  • ctest -R d3d12_depth_resolve with this change: pass.
  • Same build with the test unchanged: fails with the eight destination changed lines.

Depends on: #9873 (or any of the MSVC build fixes, to build on Windows)

AI-assisted (Claude Code).

🤖 Generated with Claude Code


🔄 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/232 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/9965` --- ### 📝 Commits (1) - [`f44150a`](https://github.com/ubiquitarianism/leonida/commit/f44150a28bbfd20edb4bcb7eac957272aed91786) Tests: d3d12_depth_resolve no longer expects a refused list to replay ### 📊 Changes **1 file changed** (+9 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_depth_resolve_test.cpp` (+9 -8) </details> ### 📄 Description > Carried over from **old PR 9965** by `BatSmacker84` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9965`, 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. > `BatSmacker84`: 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): Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116934259. This fixes tugasky's finding https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116620428, which isn't in the tables yet. `d3d12_depth_resolve` fails on every Vulkan device with eight lines like `refused D24S8 depth AVERAGE rect 1: Close 0x80070057, destination changed`. The cause is `#6610`: since it landed, `ExecuteCommandLists` refuses a whole batch that holds a list whose `Close` failed, as the D3D12 runtime does. The test was written a day earlier. For its refused cases it still executes the list on the layer and compares the readback with the destination's clear. That clear is in the refused list, so it never runs. The host-comparison lines (`63 of 97 match, 18 host quirks`) and the `edge … (information)` lines are only printed, never failures, so they aren't the cause. Change (test only): - Refused cases check that `Close` returns `E_INVALIDARG`, and still execute the list, so the layer's batch refusal stays exercised. - A mode the device lacks is no longer compared against the clears, for the same reason. It didn't trigger on RDNA3 (`depth 0xf, stencil 0xd`), but it would on a device missing a mode that D3D12 accepts. Tested on Windows 11, AMD Radeon RX 7800 XT (Adrenalin 26.11.2), MSVC 19.44, Vulkan SDK 1.4.363.0. Current `main` (c95d93572) doesn't build on MSVC (the console descriptor heap of `#9576`), so I built on top of `#9873`, one of the open build fixes; this PR needs whichever of them lands. - `ctest -R d3d12_depth_resolve` with this change: pass. - Same build with the test unchanged: fails with the eight `destination changed` lines. Depends on: `#9873` (or any of the MSVC build fixes, to build on Windows) AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:22 +01:00
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#283
No description provided.