tests: indirect-target fixture fails in the Agility configuration on a debug-layer warning (message 1477) #3525

Closed
opened 2026-11-29 22:51:57 +00:00 by KelboLive · 1 comment
KelboLive commented 2026-11-29 22:51:57 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-29T22:51:57Z.


tests: an indirect-target fixture fails in the Agility configuration on a debug-layer warning (message 1477)

Summary

startup_indirect_translated_targets_hardware passes in the default configuration and fails in the Agility
configuration. Every functional check in the fixture passes; the failure comes from the newer D3D12 debug
layer reporting a warning that the in-box layer does not.

This is the last unexplained failure from a full Agility run of main
(3,113 tests: 3,075 passed, 13 skipped, 28 failed). The other hardware failures from that run are fixed
by #3510 and #3523; the remaining WARP failures pass on hardware.

Reproduction

# in-box configuration
cmake --preset dev
cmake --build --preset dev --target startup_stream_consumer d3d12_xs_shim
ctest --preset dev --no-tests=error -R '^startup_indirect_translated_targets_hardware$' -V
# Passed 0.65 sec

# Agility configuration
cmake --preset dev -B out/build/warp-agility `
  -DOFFSCREEN_AGILITY_620_DIR=<agility dir> -DOFFSCREEN_WARP_DIR=<warp dir>
cmake --build out/build/warp-agility --target startup_stream_consumer d3d12_xs_shim
ctest --test-dir out/build/warp-agility --no-tests=error -R '^startup_indirect_translated_targets_hardware$' -V
# Failed 0.72 sec

Both runs on NVIDIA GeForce RTX 4070 Ti SUPER, driver 32.0.16.2101; Agility SDK 1.620.2 and WARP 1.0.22 in
the second.

Evidence

The fixture's functional results are identical in both runs:

translated indirect MRT (2 color targets): OK
translated indirect color + DSV: OK
translated indirect depth-only (0 RTV + DSV): OK
translated indirect refuses 0 RTV + no DSV: OK
translated indirect refuses sampled texture aliasing RTV 1: OK

The Agility run also emits, twice:

D3D12 debug message 1477 (sev 2): ID3D12Device::CreateGraphicsPipelineState:
  The DSV format is (D16_UNORM) but the graphics pipeline state does not use ...

Severity 2 is D3D12_MESSAGE_SEVERITY_WARNING. The fixture treats debug-layer warnings as failures, as the
neighbouring fixtures do, so it exits 1 while all five pixel comparisons pass.

Question

Which side should change?

  1. The shim. If the pipeline genuinely does not use depth, the pipeline state should carry
    DXGI_FORMAT_UNKNOWN as its DSV format rather than the bound DSV's format, and the warning disappears.
    That would make the Agility run clean and is arguably the more correct state.
  2. The fixture. If the pipeline legitimately declares a DSV format it does not use — for example because
    the depth-only path binds a DSV that the state does not write — then severity 2 is expected here and the
    fixture should fail on severity 0/1 only, as some others already do.

I do not know which is right, and the two imply different behaviour, so I have not changed either.

Environment note

This only appears in the Agility configuration, which CI does not build: windows.yml runs the in-box
configuration, where the in-box debug layer does not emit message 1477 for this case.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6685252748 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3525). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-29T22:51:57Z. --- # tests: an indirect-target fixture fails in the Agility configuration on a debug-layer warning (message 1477) ## Summary `startup_indirect_translated_targets_hardware` passes in the default configuration and fails in the Agility configuration. Every functional check in the fixture passes; the failure comes from the newer D3D12 debug layer reporting a warning that the in-box layer does not. This is the last unexplained failure from a full Agility run of `main` (`3,113 tests: 3,075 passed, 13 skipped, 28 failed`). The other hardware failures from that run are fixed by #3510 and #3523; the remaining WARP failures pass on hardware. ## Reproduction ```powershell # in-box configuration cmake --preset dev cmake --build --preset dev --target startup_stream_consumer d3d12_xs_shim ctest --preset dev --no-tests=error -R '^startup_indirect_translated_targets_hardware$' -V # Passed 0.65 sec # Agility configuration cmake --preset dev -B out/build/warp-agility ` -DOFFSCREEN_AGILITY_620_DIR=<agility dir> -DOFFSCREEN_WARP_DIR=<warp dir> cmake --build out/build/warp-agility --target startup_stream_consumer d3d12_xs_shim ctest --test-dir out/build/warp-agility --no-tests=error -R '^startup_indirect_translated_targets_hardware$' -V # Failed 0.72 sec ``` Both runs on NVIDIA GeForce RTX 4070 Ti SUPER, driver 32.0.16.2101; Agility SDK 1.620.2 and WARP 1.0.22 in the second. ## Evidence The fixture's functional results are identical in both runs: ``` translated indirect MRT (2 color targets): OK translated indirect color + DSV: OK translated indirect depth-only (0 RTV + DSV): OK translated indirect refuses 0 RTV + no DSV: OK translated indirect refuses sampled texture aliasing RTV 1: OK ``` The Agility run also emits, twice: ``` D3D12 debug message 1477 (sev 2): ID3D12Device::CreateGraphicsPipelineState: The DSV format is (D16_UNORM) but the graphics pipeline state does not use ... ``` Severity 2 is `D3D12_MESSAGE_SEVERITY_WARNING`. The fixture treats debug-layer warnings as failures, as the neighbouring fixtures do, so it exits 1 while all five pixel comparisons pass. ## Question Which side should change? 1. **The shim.** If the pipeline genuinely does not use depth, the pipeline state should carry `DXGI_FORMAT_UNKNOWN` as its DSV format rather than the bound DSV's format, and the warning disappears. That would make the Agility run clean and is arguably the more correct state. 2. **The fixture.** If the pipeline legitimately declares a DSV format it does not use — for example because the depth-only path binds a DSV that the state does not write — then severity 2 is expected here and the fixture should fail on severity 0/1 only, as some others already do. I do not know which is right, and the two imply different behaviour, so I have not changed either. ## Environment note This only appears in the Agility configuration, which CI does not build: `windows.yml` runs the in-box configuration, where the in-box debug layer does not emit message 1477 for this case.
KelboLive commented 2026-12-01 00:47:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-12-01T00:47:18Z.


Fixed by #3535 (d8cf4c3e4), which merged after this was filed. pipeline_for now declares DXGI_FORMAT_UNKNOWN when the pass carries no depth-stencil state, so the debug layer no longer emits 1477 for the depth-only indirect case: startup_indirect_translated_targets_hardware passes in the Agility configuration.

The follow-up in that PR also corrected the comment: narrowing further on DepthEnable/StencilEnable is not valid, because a bound DSV must match the pipeline's DSVFormat at draw time (debug layer id 615) even when depth and stencil are disabled.

Closing as fixed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7296738706 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3525#issuecomment-7296738706). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T00:47:18Z. --- Fixed by #3535 (`d8cf4c3e4`), which merged after this was filed. `pipeline_for` now declares `DXGI_FORMAT_UNKNOWN` when the pass carries no depth-stencil state, so the debug layer no longer emits 1477 for the depth-only indirect case: `startup_indirect_translated_targets_hardware` passes in the Agility configuration. The follow-up in that PR also corrected the comment: narrowing further on `DepthEnable`/`StencilEnable` is not valid, because a bound DSV must match the pipeline's `DSVFormat` at draw time (debug layer id 615) even when depth and stencil are disabled. Closing as fixed.
Sign in to join this conversation.
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
R0Y00/Xbox2Windows#3525
No description provided.