GPU: pass the depth bounds test through to host pipelines and command lists #82
No reviewers
Labels
No labels
accessibility
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/fxceless--victory-fork!82
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-82"
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?
@Kaivyyy on GitHub · 2026-11-24 21:20 UTC · original
Kaivyyy:gpu/depth-bounds-test→main· +486 −62 · 4 files · 1 commits · openSummary
DepthBoundsTestEnablewhen reading pipeline-state stream subobject 21 (D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1) instead of dropping it with a warning, and distinguish depth-bounds pipelines inGraphicsState::describeso pipeline-library keys never collide with non-depth-bounds pipelines.D3D12_FEATURE_D3D12_OPTIONS2(DepthBoundsTestSupported) once onHost; when supported, build and load both graphics (VS/PS and VS/GS/PS) and mesh (MS/PS) pipelines that enable depth bounds viaID3D12Device2::CreatePipelineState/ID3D12PipelineLibrary1::LoadPipelinewithDEPTH_STENCIL1, falling back cleanly when the host adapter lacks support.0x220/0x230on newer lists) toID3D12GraphicsCommandList1::OMSetDepthBoundsviadraw::State, replaying them when a title command list is cut across host command lists.Addresses the missing depth bounds test noted in #26 and
README.md.Testing
pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws, verifying subobject 21 parsing,ID3D12PipelineLibrary1::LoadPipelinecache reuse,draw::Statereplay across a host-list cut, and GPU fragment culling/passing against a depth buffer viaOMSetDepthBounds.cargo test -p victory-gpu --locked -- pipeline::host::testscargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo xtask policy@adriaespii on GitHub · 2026-11-24 21:30 UTC · original
Independent test run on commit
461df56(AMD RDNA4):x86_64-pc-windows-msvc)cargo clippy --workspace --all-targets -- -D warnings: 0 warningscargo test --workspace(default parallel threads):victory-gpu --libcrashed withSTATUS_ACCESS_VIOLATION(0xC0000005, exit code-1073741819).cargo test -p victory-gpu --lib -- --test-threads=1: 111 passed, 0 failed, 1 ignored — passes cleanly when serialized, suggesting a parallel test race (shared global state / concurrent test interaction).AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.