Fix bounds-only depth testing on D3D12 WARP #27
No reviewers
Labels
No labels
accessibility
bench-bm-v1
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/PastiiJay--klbf-lab!27
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-27"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@HandshakeHackin on GitHub · 2026-11-25 17:30 UTC · original
HandshakeHackin:fix-bounds-only-depth-read→beta· +46 −5 · 1 files · 3 commits · openThe existing depth-bounds rendering test fails on unmodified beta
c71c7d6on the Windows software renderer. A draw whose stored depth is outside the bounds writes 255 to the render target when the expected value is 0.For a pipeline with depth bounds, a known depth format, and ordinary depth comparison disabled, enable a read-only depth test with
ALWAYSand a zero write mask. Give that combination a distinct pipeline-cache key so an older cached descriptor cannot be reused. The pixel regression now puts the triangle at 0.25 and the stored depth at 0.5, so it distinguishes which depth the bounds test reads. A descriptor test also covers ordinary depth testing, disabled bounds and a missing depth format.Windows verification
I also tested this change together with #13, #14, #17, #18, #20, #21 and #25. Both strict Clippy passes and the 190-file asset check passed. The combined Windows workspace passed 584 tests, with 12 ignored and one physical-GPU-plus-WARP test filtered on this software-only runner. The release build and CLI smoke tests also passed.
Physical Radeon testing is still pending. Direct3D depth-bounds specification.
The depth regression uses shader model 6.0 for its vertex and pixel shaders so both Windows Server 2022 and 2025 WARP can run the same pixel readback.
@PastiiJay on GitHub · 2026-11-25 18:38 UTC · original
Thanks a lot @HandshakeHackin! Noted. It goes into tonight's RX 9070 XT test queue and I'll report the result here.
@HandshakeHackin on GitHub · 2026-11-25 20:34 UTC · original
I tested the eight beta PRs together on
742f436with your WARP runner change frommain(448b737). The Windows workspace ran without a test filter: 585 passed, 0 failed, 12 ignored. Both the UAV load/store/atomic test anddepth_bounds_pipeline_loads_and_filters_drawspassed. Both strict Clippy runs and the 190-file asset check passed too. This covers the software adapter ahead of the RX 9070 XT check. Full Windows job.@PastiiJay on GitHub · 2026-11-25 20:35 UTC · original
Thanks a lot @HandshakeHackin! 585 passed / 0 failed with all eight beta PRs together, and both clippy runs plus the asset check green, is exactly the safety net we needed. Next is the RX 9070 XT run, then I merge them in one go.
@HandshakeHackin on GitHub · 2026-11-26 11:35 UTC · original
06f4fccchanges the vertex and pixel shaders in the depth-bounds regression to shader model 6.0. The triangle uses no 6.5 features. With the old profiles, the Server 2022 WARP runner rejected the pipeline before it could check a pixel.I ran the PR head on both Windows Server 2022 and 2025, with a missing device, bounds support or DXC treated as a test failure. Both loaded the pipeline a second time and read 0 outside the bounds and 255 inside. Reverting only the production depth-state change in the same checkout made both runners paint the out-of-range pixel 255. Paired runs and raw assertions.
The regular beta PR check also passed all 162 active GPU tests. Its remaining failure is the separate shader test requiring both hardware and WARP on a software-only runner, covered on
mainby448b737.@PastiiJay on GitHub · 2026-11-26 11:38 UTC · original
Thanks, the paired runs with the production change reverted make this one easy to trust. It goes in with the next beta batch; if you have a minute, a one-line note in the PR description about the shader model 6.0 switch would help whoever reads the history later.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.