Repository navigation
GPU: the depth bounds test reaches the host - #158
Conversation
8977fe2 to
728a8e3
Compare
…nto the integration The depth-bounds feature query moves into Host::from_device (PR Marvisak#230) so the WARP test hosts query it too. The PR's test calls execute with &HostList (the branch's list reuse made new_list return Arc). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSB4ZoXYUifuXg8gm66
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested head |
728a8e3 to
520d629
Compare
|
Tested head
AI-assisted (Claude Code). |
Conflicts: - crates/victory-gpu/src/pipeline/host.rs: Marvisak#352 (gpu-draw) added a triangle topology subobject to mesh_pipeline's stream and renamed the library key "mesh triangles"; Marvisak#158 generalised that function into stream_pipeline, shared by mesh pipelines and vertex pipelines with depth bounds. The topology now sits in a MeshStages stage struct (with Marvisak#352's explanation), not in the shared stream, as VertexStream carries its own topology and a stream may name one only once. Marvisak#352's cache key and Marvisak#158's depth-stencil choice are both kept; Marvisak#352's library test calls a test-only mesh_pipeline() over stream_pipeline. - README.md: Marvisak#158's GPU: world row (depth bounds) with the Shaders row from shader-opcodes (64-bit image atomics no longer listed as missing). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you for this, @r4tedx! Many pull requests here are still waiting to be merged, so I've ported this one to 465d6a0eac/AgentRecompVI, a VIctory fork where AI agents review and merge each other's work: https://github.com/465d6a0eac/AgentRecompVI/pull/27. You're credited as the author there. This pull request stays the original. Test results
|
|
Automated triage for the maintainers. Merge candidate. This is a recommendation to look, not an approval. It merges cleanly into The PR forwards the title's depth bounds to the host. Slot 68 (0x220, already labelled as depth bounds in What I checked: kind 11 clears the flag, Generated by Claude Code |
DenRakEiw
left a comment
There was a problem hiding this comment.
Tested PR head directly on Windows 11 x64 (NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib depth_bounds— 3 passed, 0 failed on both RTX 5090 hardware andVICTORY_D3D12_WARP=1cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok- Merge status: Currently
CONFLICTINGwithorigin/main(940d32f). Once rebased ontomain, happy to re-verify and approve!
AI-assisted (Gemini 4 Neon).
Keep the kind-21 enable flag in the graphics state and pipeline cache key. Use DEPTH_STENCIL1 for vertex and mesh streams that request the test when the host supports it. Unsupported hosts fall back to the plain depth-stencil state and warn once. Forward the title's depth bounds to the host command list and replay them when binding a graphics pipeline, including after the indirect clamp. New and reset lists start with D3D12's 0..1 default. Synthetic title draws and mesh dispatches on an RTX 5070 and WARP kept excluded pixels at the cleared depth of 0.5 and wrote 0.25 to included pixels. Fresh and reset lists also wrote 0.25. A forced unsupported run drew all pixels, and the stream reader regression failed with the upstream reader. Since the rebase onto 940d32f the vertex stream also carries the rectangle lists' geometry shader and both streams the topology type; only the draw ran again, on WARP. The console subobject layout and call signature still need title-side verification.
520d629 to
49dd080
Compare
|
Rebased onto
Tested at No game data was used. AI-assisted. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # crates/victory-gpu/src/host.rs
|
Hardware test: this fixes a visible error on an RTX 3070. RTX 3070 (8 GB, 32-lane waves), Windows 11, Series X mode, 480 s runs into the world of Grand Theft Auto VI 1.0.2.1. Local test branch: main 940d32f plus #1906, #1890, #1883, #1962, #1779, #1763, #1762, a page-mark guard like #2167 and the memory PRs #2129, #2180, #1873, #1969, #2161. Before: in the first cell scene (the player at the barred window), the back of the character's head was black inside a rectangle. A target dump showed the alpha prepass of the window/fence (mesh With this PR (merged on the branch above; one conflict in AI-assisted. |
|
Title-side depth-bounds data for
As a separate visual control I tried only the rectangle shader from #2366 ( Tested with OpenAI Codex assistance. |
|
@Venom2054 thank you, especially for the two probes. The Our own runs on an RTX 5070 can't answer that yet. Our layer builds carry an older head of this PR ( The runs mentioned here were runs of the title on my PC with my own local copy of its data; only logged flags and values will be quoted. AI-assisted |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Updated for the current
@Slay326 thank you for the RTX 3070 result: the head and ponytail coming back in that scene is the first in-title confirmation of this PR. Synthetic tests only for this update; no title data used. AI-assisted |
|
@Venom2054 here is the comparison promised above. It agrees with your result. Our run: RTX 5070, diagnostics build of a local play tree that carries an older head of this PR (
So on this pipeline this PR has nothing to switch on: the bounds reach the host, but the title draws the window/fence without the test. That also means the depth-bounds test on this pipeline isn't what changed the picture in Slay326's RTX 3070 run. Their branch differs from main in several other PRs, and I haven't found which change made the difference there. This was a run of the title on my PC with my own local copy of its data. Only the logged flags and values are quoted here. AI-assisted |
|
I reran the ClearState integration regression on this PR at 1a45c5e, combined with the current-main ClearState follow-up based on #1166 at 2d779bf. WARP reported depth-bounds support. The same guest draw fixture read these five depth values before and after the integration fix.
The next bind replayed the saved depth bounds after ClearState. bfa77cb clears the saved range while retaining #1166's cached views and descriptor ownership. It keeps swarm's Git authorship from the original regression and both PR histories. Six paired WARP runs reproduced the readback. The serial GPU suite passed 203 tests with one ignored under each debug setting. Strict Clippy in both configurations and asset policy passed. Please retain the Git authorship and existing trailer if reapplying the integration commit. If you fold the adaptation into another commit, please keep its attribution with the following trailer. Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted with Codex. Synthetic GPU commands on WARP. |
|
@andrewpozdnakov7-jpg thank you. The ClearState row shows a real gap in the combination: the saved range survives ClearState and is replayed on the next bind.
I read the diff only and haven't run it. The table and the 203-test WARP suite are your results. No title data was involved. AI-assisted |
Main moved on (the depth bounds test, Marvisak#158): keep the device made on the chosen runtime and add main's depth bounds support query after it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…) into gtx1070-latest
host.rs: main's Send/Sync impls for HostList and Marvisak#158's warn_depth_bounds both kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream main merged Marvisak#2143, Marvisak#2162, Marvisak#158, Marvisak#1906 and Marvisak#1152 and took up what Marvisak#1769 (LDS bounds, Marvisak#1949) and Marvisak#1763 (typed UAV formats, Marvisak#2462) did; main's code is kept for those. - emit/lower.rs: ds_bpermute within each half (main's Marvisak#573, same as Marvisak#439's); LDS bounds as main's Marvisak#1949 (Marvisak#1769's test-only counter kept, its and_guard dropped); title-memory marks: main's straddling-write lookup (Marvisak#2484) with Marvisak#2167's current head (3cb308d, rebased on 63bcca4): guarded dirty atomics, raw_dword2, memory_null, synthetic_mark_dxil in lower/mark_tests.rs; the old Marvisak#2167 head taken out first. - emit/host.rs: main's shared WARP device and lock (Marvisak#244) with Marvisak#439's adapter list and Host::on (create_device takes an optional adapter). - descriptor/host.rs: main's Marvisak#2462 format checks; Marvisak#1763's tests kept. - gpu host.rs: main's multi-plane present with Marvisak#2310's crumbed copy. - pipeline.rs: Marvisak#2118/Marvisak#2311's builder and BVH checks with main's skip hashes (Marvisak#1320); draw.rs, shadow.rs, main.rs: both sides. - Tests main added since get Marvisak#439's Parts fields and emit's Target. - README: base 63bcca4; rows of PRs merged upstream, superseded or closed taken out, with a note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous renderer (old upstream base 940d32f) is the first parent and is also kept as the branch renderer-2026-11-25-oldbase; the second parent is the rebuild: fork main (upstream main 63bcca4 + our pull requests) with the renderer stack merged on it: Marvisak#439 (on main: update/439-main's resolution), Marvisak#2309, Marvisak#2167, Marvisak#2118, Marvisak#2311, Marvisak#1722, Marvisak#1751, Marvisak#688, Marvisak#1872, Marvisak#2292, Marvisak#2310, Marvisak#2112 (opt-in), Marvisak#2230 (latch on by default), Marvisak#2389, Marvisak#2088 (small windows opt-in), Marvisak#2099's new head, and tonight's Marvisak#491 journal fixes. Merged upstream since: Marvisak#2143, Marvisak#2162, Marvisak#158, Marvisak#1906, Marvisak#1152; superseded by main: Marvisak#1769, Marvisak#1763, Marvisak#2366. The picture on this base still shows the overlay that plain upstream main shows too; that is being looked into. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rebased onto
main940d32f(2026-11-25); headb5c468fdrops the mesh-dispatch test that starteddxc, per the triage.mainstill drops the flag and ignores the slot, so the change is the same; what moved with the rebase is under "Now" and "Tested".What
The README lists depth bounds as missing for the world. Two places dropped it:
D3D12_DEPTH_STENCIL_DESC1) to the plain description and discardedDepthBoundsTestEnable;0x220slot (OMSetDepthBounds) wasignored_state.Now:
DEPTH_STENCIL1(the mesh stream helper is generalised for both); others are made as before. Since the rebase the vertex stream also carries the rectangle lists' geometry shader (683ad7a), and both streams the topology typemaingives the mesh stream.OMSetDepthBounds(min, max)reaches the host list (slot0x220,0x230on newer lists through the existing slot shift) and is replayed when a graphics pipeline is bound, including after the indirect argument clamp. Fresh and reset lists keep D3D12's0..1.DepthBoundsTestSupportedkeep today's behaviour and warn once.Not verified
No game files were used. The entry point assumes the PC two-
f32signature and needs checking against a title. The kind-21 subobject is read with the PC layout;main's pre-build (depth_stencil_descincrates/victory-game/src/pipelines.rs) writes the engine's description with the depth-bounds flag at the same offset, which I read but did not check against a title.Not run since the rebase: the mesh stream with
DEPTH_STENCIL1(its GPU test, which starteddxc, was removed atb5c468f; the stream-level test still covers the flag), a rectangle-list pipeline with depth bounds (the geometry-shader subobject was empty in the run), the pipeline library's load path for either stream, and anything on a hardware GPU.Tested
At
49dd080, synthetic only:cargo test --workspace --lockedon the runner's WARP adapter).VICTORY_D3D12_WARP=1,--features diagnostics,--test-threads=1):cargo test -p victory-gpu149 passed, 0 failed, 2 ignored. The draw test reported depth bounds supported and read back[0.25, 0.5, 0.25, 0.25]for fresh, excluded, included and reset: with bounds excluding the cleared depth the pixel keeps 0.5; with bounds including it, 0.25 is written. The mesh-dispatch test was skipped (VICTORY_PC_DXCunset); it has since been removed (b5c468f), so no code in this PR starts a process.-D warnings.cargo test -p xtask: 6 passed (policy included).Before the rebase (head
520d629, oldmain), on an NVIDIA RTX 5070 and WARP: the same draw and the mesh dispatch behaved as above, with support forced off every pixel was drawn, and the stream-reader test failed onmain(flag dropped). Testers ran that head on an RTX 5060 Laptop, an RTX 3070 Ti and an RTX 5090 (comments below).Touches
list.rs/draw.rsnear #24 andhost.rsnear #32; neither implements depth bounds.#301 (open) keeps the kind-26 depth-stencil description in the same
GraphicsStateand leaves depth bounds to this PR; merged together the build fails untildepth_boundsis carried through kind 26, so whichever lands second needs that (noted by its author on #301).AI-assisted; no game assets were used.
🤖 Generated with Claude Code