Make the depth-bounds fixture work on WARP #328

Merged
loyodea merged 1 commit from upstream-pr/328 into a-publier 2026-11-26 22:30:23 +00:00
loyodea commented 2026-11-26 20:27:29 +00:00 (Migrated from github.com)

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by loyodea on 2026-11-26T20:27:29Z.


Fixes #314.

Make the synthetic depth-bounds test exercise WARP and physical GPUs with the same strict assertions. Local WARP reports depth-bounds support but ignored the bounds with ordinary depth testing disabled, including when OMSetDepthBounds was called directly. Enable an always-pass ordinary depth comparison with writes disabled so depth bounds determine whether the draw is visible.

The fixture binds the heaps required by its root signature and draws with the pipeline loaded back from the library. The incoming depth differs from the stored depth, and the assertions check rejection on both sides of the range and acceptance inside it. The diff is confined to the test fixture.

Validation

  • Reproduced the base failure on WARP 10.0.26100.10068. The proposed fixture passed all six pipeline-host tests on both WARP and the RX 9060 XT with diagnostics, and on the RX 9060 XT in the default build.
  • Temporarily removing command-list replay made the out-of-range assertion fail on both adapters. The independent rerun passed all six tests per adapter with the debug layer requested.
  • Hosted CI remains to be run. All inputs were synthetic.

Codex contributed the implementation and independent verification.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:5516715907 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/328). Originally posted by [loyodea](https://github.com/loyodea) on 2026-11-26T20:27:29Z. --- Fixes #314. Make the synthetic depth-bounds test exercise WARP and physical GPUs with the same strict assertions. Local WARP reports depth-bounds support but ignored the bounds with ordinary depth testing disabled, including when `OMSetDepthBounds` was called directly. Enable an always-pass ordinary depth comparison with writes disabled so depth bounds determine whether the draw is visible. The fixture binds the heaps required by its root signature and draws with the pipeline loaded back from the library. The incoming depth differs from the stored depth, and the assertions check rejection on both sides of the range and acceptance inside it. The diff is confined to the test fixture. **Validation** - Reproduced the base failure on WARP 10.0.26100.10068. The proposed fixture passed all six pipeline-host tests on both WARP and the RX 9060 XT with diagnostics, and on the RX 9060 XT in the default build. - Temporarily removing command-list replay made the out-of-range assertion fail on both adapters. The independent rerun passed all six tests per adapter with the debug layer requested. - Hosted CI remains to be run. All inputs were synthetic. Codex contributed the implementation and independent verification.
Sign in to join this conversation.
No reviewers
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
Belobug/VIctory-Belobug-AMD!328
No description provided.