GPU: wire OMSetDepthBounds (slot 0x220) to host command list #1150
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1150
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1150/head"
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?
@ashrafsdrop on GitHub · 2026-11-24 16:15 UTC · original
ashrafsdrop:gpu/depth-bounds→main· +19 −2 · 3 files · 1 commits · closed without mergingSummary
Implements depth bounds state handling for D3D12 command lists in
victory-gpu.set_depth_boundsonStateincrates/victory-gpu/src/draw.rsto invokeOMSetDepthBounds(min, max)viaID3D12GraphicsCommandList1.ignored_stateat slot 68 (0x220) inMETHODSwithstate::depth_bounds.crates/victory-gpu/src/list.rsto verify dispatch through slot0x220.README.mdto reflect depth bounds support in the world GPU pipeline.Verification
cargo test -p victory-gpu: all 51 tests passing.cargo test --workspace: all workspace crates passing cleanly.cargo run -p xtask -- policy: asset policy passes (154 files ok).@shortselow-byte on GitHub · 2026-11-24 17:23 UTC · original
Ran the CI's checks at head
c1d851a(onmainffe310e), Windows 11, Rust 1.98.1 MSVC, AMD Radeon RX 6900 XT: workspace 342 passed, 0 failed; both clippy runs clean; policy ok. The PR adds no test of its own; thelist.rschange calls slot0x220but checks nothing.Two things for review:
OMSetDepthBoundsonly matters when the pipeline enables the test (DepthBoundsTestEnableinD3D12_DEPTH_STENCIL_DESC1), and nothing onmainsets it, so with this PR alone the bounds have no effect. The README change ("depth bounds" moved to what works) is ahead of that.@ashrafsdrop on GitHub · 2026-11-24 17:33 UTC · original
Good catch @shortselow-byte. Indeed,
OMSetDepthBoundsrequiresDepthBoundsTestEnableonD3D12_DEPTH_STENCIL_DESC1via pipeline subobject streams to have any rasterizer effect.Since @plsndr33's #582 already addresses both the command list invocation and the
D3D12_DEPTH_STENCIL_DESC1stream conversion on the pipeline side, it makes sense to consolidate onto #582. Happy to close this in favor of #582.@Zipettte on GitHub · 2026-11-24 18:01 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
c1d851a:cargo test -p victory-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Pull request closed