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

Closed
xanderovias wants to merge 1 commit from upstream-pr/925 into main
xanderovias commented 2026-11-24 14:13:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by xanderovias on 2026-11-24T14:13:11Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:issue:6583743930 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/925). Originally posted by [xanderovias](https://github.com/xanderovias) on 2026-11-24T14:13:11Z. --- Fixes #849 #853 #851. Depth bounds support, waterfall per-lane queries, XNetworking UDP + UTF-16 security slots.
Zipettte commented 2026-11-24 16:05:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:41:07Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7136439804 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7136439804). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T15:41:07Z. --- 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)._
DenRakEiw commented 2026-11-24 17:04:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T16:08:01Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137171371 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7137171371). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T16:08:01Z. --- 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).
wwwwwwww3333333 commented 2026-11-24 21:03:22 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wwwwwwww3333333 on 2026-11-24T20:08:52Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7143107080 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7143107080). Originally posted by [wwwwwwww3333333](https://github.com/wwwwwwww3333333) on 2026-11-24T20:08:52Z. --- 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).
upstream-sync closed this pull request 2026-11-25 01:04:55 +00:00
Marvisak commented 2026-11-25 01:07:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:28:14Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148542679 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/925#issuecomment-7148542679). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:28:14Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!925
No description provided.