Repository navigation
Description
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 secBoth 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?
- The shim. If the pipeline genuinely does not use depth, the pipeline state should carry
DXGI_FORMAT_UNKNOWNas 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. - 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.
Activity
KelboLive commentedon Dec 1, 2026
Fixed by #3535 (
d8cf4c3e4), which merged after this was filed.pipeline_fornow declaresDXGI_FORMAT_UNKNOWNwhen 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_hardwarepasses in the Agility configuration.The follow-up in that PR also corrected the comment: narrowing further on
DepthEnable/StencilEnableis not valid, because a bound DSV must match the pipeline'sDSVFormatat draw time (debug layer id 615) even when depth and stencil are disabled.Closing as fixed.