Repository navigation
Shaders: compute selects and carry-ins on a lane mask held as data (F… - #1788
WhiteDragonul wants to merge 1 commit into
Conversation
…IND-6) v_cndmask_b32 and the v_add/sub_co_ci carry-ins took their mask only from what structurisation recorded, so a mask the program holds as a number (a root constant, the result of scalar arithmetic) stopped the program with "a select on an untracked mask" or "a carry-in from an untracked mask". In compute, where lane n is console lane n, the lane now tests its own bit of the dwords the instruction reads (both in wave64); such a select fixes the console's wave size like other masks read as numbers. Pixel, vertex and mesh programs still refuse it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
A case this leaves refused, from reading the diff (not run). AI-assisted (Claude Code). No game files. |
|
On NVIDIA: RTX 3070 8 GB, driver 616.56, Windows 11, debug,
AI-assisted (Claude Code). Synthetic tests only. |
VIctory V2: community PRs, merged and testedOpen PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: Unofficial community fork of Marvisak/VIctory, GPL-3.0. |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (70564ae), cargo test -p victory-shader --locked → 120 passed, 0 failed. GPU execution tests (valu_tests/host) are #[cfg(all(test, windows))] and run only on Windows; macOS covers lowering/structure unit tests.
Selects and carry-ins computed on a lane mask held as data (FP… path): selects_on_a_number + select_mask + mask_data_layout/numeric_mask_select — mask-as-data layout mirrors the earlier mask work (#1407/#1420). +2 tests.
|
wave64: a mask whose hi dword was rewritten still picks up the old compare
still finds the compare's mask, so lanes 32-63 use the compare's bits instead of 0 and pick the wrong source. Structurisation files the mixed (lo, new hi) pair under
The new tests only check that lowering succeeds and Static review (AI-assisted), read against |
…IND-6)
v_cndmask_b32 and the v_add/sub_co_ci carry-ins took their mask only from what structurisation recorded, so a mask the program holds as a number (a root constant, the result of scalar arithmetic) stopped the program with "a select on an untracked mask" or "a carry-in from an untracked mask". In compute, where lane n is console lane n, the lane now tests its own bit of the dwords the instruction reads (both in wave64); such a select fixes the console's wave size like other masks read as numbers. Pixel, vertex and mesh programs still refuse it.