contribute: depth bounds + waterfall queries + XNetworking (#849 #853 #851) #925

Closed
github-bot wants to merge 1 commit from gh-pr/925/head into gh-pr/925/base
Owner

@⁠xanderovias on GitHub · 2026-11-24 14:13 UTC · original
contribute/depth-bounds-waterfall-xnetworking → main · +855 −47 · 8 files · 1 commits · closed without merging

Fixes #849 #853 #851. Depth bounds support, waterfall per-lane queries, XNetworking UDP + UTF-16 security slots.

**@⁠xanderovias** on GitHub · 2026-11-24 14:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/925) `contribute/depth-bounds-waterfall-xnetworking` → `main` · +855 −47 · 8 files · 1 commits · closed without merging Fixes #849 #853 #851. Depth bounds support, waterfall per-lane queries, XNetworking UDP + UTF-16 security slots.
- #849: Add D3D12 depth bounds support in GPU translation
  - draw.rs: track depth_bounds state, apply via OMSetDepthBounds
  - list.rs: implement depth_bounds vtable slot (0x220), add unit test
  - pipeline.rs: pass depth bounds through compute pipelines

- #853: Implement per-lane size queries in console waterfall loops
  - resource::track: proven size loop tracking for descriptor sampling
  - lower::descriptor_data: take view kind from other load when no access
  - Tests: synthetic waterfall test with mixed texture sizes

- #851: Implement remaining XNetworking UDP + UTF-16 security slots
  - xnetworking.rs: slots 0x30/0x38 (UDP port change callbacks)
  - xnetworking.rs: slots 0x58/0x60/0x68 (UTF-16 security info async)
  - Unit tests: 4 new tests for XNetworking service
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:14 +00:00
github-bot closed this pull request 2026-11-26 04:14:14 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 15:41 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 0d2bcd6: the new test emit::waterfall_tests::lanes_size_the_entry_their_offset_names_in_the_console_waterfall fails every time (3/3):

assertion `left == right` failed: warp
  left: [1.0, 2.0, 1.0, 2.0, ...]
 right: [1.0, 4.0, 1.0, 4.0, ...]
crates\victory-shader\src\emit\waterfall_tests.rs:260

The odd lanes read 2.0 where the test expects 4.0. All other tests in victory-gpu / victory-hle / victory-shader pass (274 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 15:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7136439804) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 0d2bcd6: the new test `emit::waterfall_tests::lanes_size_the_entry_their_offset_names_in_the_console_waterfall` fails every time (3/3): ``` assertion `left == right` failed: warp left: [1.0, 2.0, 1.0, 2.0, ...] right: [1.0, 4.0, 1.0, 4.0, ...] crates\victory-shader\src\emit\waterfall_tests.rs:260 ``` The odd lanes read 2.0 where the test expects 4.0. All other tests in victory-gpu / victory-hle / victory-shader pass (274 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠DenRakEiw on GitHub · 2026-11-24 16:08 UTC · original

Triage note: the depth-bounds portion of this PR overlaps with #582 (focused depth-bounds testing PR). Linking both for maintainer triage. AI-assisted (Gemini 4 Neon).

**@⁠DenRakEiw** on GitHub · 2026-11-24 16:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7137171371) Triage note: the depth-bounds portion of this PR overlaps with #582 (focused depth-bounds testing PR). Linking both for maintainer triage. AI-assisted (Gemini 4 Neon).
Author
Owner

@⁠wwwwwwww3333333 on GitHub · 2026-11-24 20:08 UTC · original

A detail on @⁠Zipettte's failure: it fails only on WARP. run() tries the hardware adapter first, and the panic is labelled warp. On an RX 6750 XT (RDNA2, Windows 11, AMD driver 32.0.21045.29003), head 0d2bcd6 on main ffe310e, I get the same output: left: [1.0, 2.0, ...], right: [1.0, 4.0, ...] under the warp label. So the hardware pass, which runs first, produced [1, 4, 1, 4, ...] as expected. The rest of victory-shader passes (123 passed, 1 failed).

On WARP the odd lanes report height 1 (2.0 = red 2.0 + 0) instead of 3. They get entry 1's texel but entry 0's dimensions. That points at WARP's size query on the non-uniform handle in the sizing loop rather than at the lowering, since two hardware drivers return each lane's own size. If that holds, the test could accept WARP's result or skip WARP, the way other tests here skip WARP for known gaps.

Unit tests only, no game files. AI-assisted (Claude; I ran it on my machine).

**@⁠wwwwwwww3333333** on GitHub · 2026-11-24 20:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7143107080) A detail on @⁠Zipettte's failure: it fails only on WARP. `run()` tries the hardware adapter first, and the panic is labelled `warp`. On an RX 6750 XT (RDNA2, Windows 11, AMD driver 32.0.21045.29003), head 0d2bcd6 on main ffe310e, I get the same output: `left: [1.0, 2.0, ...]`, `right: [1.0, 4.0, ...]` under the `warp` label. So the hardware pass, which runs first, produced `[1, 4, 1, 4, ...]` as expected. The rest of victory-shader passes (123 passed, 1 failed). On WARP the odd lanes report height 1 (2.0 = red 2.0 + 0) instead of 3. They get entry 1's texel but entry 0's dimensions. That points at WARP's size query on the non-uniform handle in the sizing loop rather than at the lowering, since two hardware drivers return each lane's own size. If that holds, the test could accept WARP's result or skip WARP, the way other tests here skip WARP for known gaps. Unit tests only, no game files. AI-assisted (Claude; I ran it on my machine).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:28 UTC · original

Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #158. Grab-bag of three unrelated issues across three crates: depth bounds (dup of #158), per-lane waterfall size queries (in main since 75677cb8) and XNetworking slots (clean PR #1248). One-line description, no evidence.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7148542679) Automated triage for the maintainers. Closing because another open pull request covers the same change. See #158. Grab-bag of three unrelated issues across three crates: depth bounds (dup of #158), per-lane waterfall size queries (in main since 75677cb8) and XNetworking slots (clean PR #1248). One-line description, no evidence. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!925
No description provided.