Repository navigation
GPU: wire OMSetDepthBounds (slot 0x220) to host command list - #1150
ashrafsdrop wants to merge 1 commit into
Conversation
|
Ran the CI's checks at head Two things for review:
|
|
Good catch @shortselow-byte. Indeed, Since @plsndr33's #582 already addresses both the command list invocation and the |
mercuryVM
left a comment
There was a problem hiding this comment.
Tested c1d851a on Windows 11, RTX 5070, MSVC: cargo test -p victory-gpu passes on the head (50 passed, 1 ignored), and clippy with all features is clean.
The forwarding is fine, but on its own it does nothing yet:
OMSetDepthBoundsonly has an effect when the bound pipeline was created withDepthBoundsTestEnablein aD3D12_DEPTH_STENCIL_DESC1.- Nothing in the repository sets that (
git grep DepthBoundsTestEnablefinds nothing), so every pipeline still runs with the test off, and the bounds are ignored. - So the README change ("depth bounds" moved to working) overstates it.
To finish this:
- Carry the title's depth-bounds-enable bit into the pipeline's depth-stencil description, using the
DepthStencil1subobject orD3D12_DEPTH_STENCIL_DESC1. - Check
D3D12_FEATURE_DATA_D3D12_OPTIONS2::DepthBoundsTestSupportedbefore enabling it. - Keep the README row as it was until 1 lands.
Smaller point: list.list.cast::<ID3D12GraphicsCommandList1>() runs a QueryInterface on every call. Since every host list is created as at least ID3D12GraphicsCommandList, the cast could be done once, when the list is created.
AI-assisted (Claude Code).
Review workers over ~45 more PRs against the merged upstream tree. Integrated: Marvisak#1394 (antisymmetric XUserCompare), Marvisak#1390 (A8_UNORM is not in the R8 typeless family), Marvisak#1499 (deep 3D mips stay out of the thick tail, plus a regression test the PR lacked), Marvisak#1366 (mesh stage I/O does not parse VS inputs), Marvisak#1594 (the title's exit status reaches the shell), Marvisak#1299 (docs: validator prerequisite), Marvisak#1515 (dialog commands before init), Marvisak#1424 (empty submissions skip the lock), Marvisak#1144 (shader differential skips are reported), Marvisak#1129 (64 MB pipeline-worker stacks), Marvisak#1564/Marvisak#1565/Marvisak#1566 (MakeResident, Evict and SetStablePowerState succeed as the console's do), Marvisak#1250 (a zero element count reads to the end of the buffer), Marvisak#1628 (texture-creation failure logs its states). Re-applied after the upstream merge dropped them: f32_to_half NaN and ties-to-even (Marvisak#843), unique-temp library writes (Marvisak#1660), VICTORY_PIPELINE_WORKERS (Marvisak#1728), VICTORY_MODE (Marvisak#1701). Removed: the orphaned depth-bounds test file, whose implementation (9a6d9e6) the merge dropped and which no module compiled. Refused: Marvisak#1099 (writing 0 for an unpaired p1 interpolation computes wrong values; two reviewers upstream and one here reached the same conclusion). Duplicates: Marvisak#1217, Marvisak#529, Marvisak#531, Marvisak#590, Marvisak#1102, Marvisak#398, Marvisak#1150, Marvisak#1220. Gate at efda2c5: fmt 0 differing, both Clippy gates 0 errors, policy 219 files, workspace 674 passed / 0 failed with the 10 documented pre-existing GPU skips.
Summary
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).