Skip to content

Report computed descriptor failures by opcode and word source - #4

Closed
MichaelSmithAI wants to merge 1 commit into
r4tedx:shader/per-lane-phifrom
MichaelSmithAI:feature/computed-descriptor-report
Closed

MichaelSmithAI wants to merge 1 commit into
r4tedx:shader/per-lane-phifrom
MichaelSmithAI:feature/computed-descriptor-report

Conversation

@MichaelSmithAI

@MichaelSmithAI MichaelSmithAI commented Nov 24, 2026 •

Copy link
Copy Markdown

The revised diagnostic is now open upstream in Marvisak/VIctory#672, stacked on Marvisak#566 at 6c63dea. Commit d61daaa adds the requested column with every varying word's defining opcode or source category. The synthetic mixed-opcode regression and all 82 Linux shader library tests pass. This fork PR records the original proposal and review.

@r4tedx

r4tedx commented Nov 24, 2026

Copy link
Copy Markdown
Owner

I read the diff; the idea is sound and the output is the right kind (an opcode and source classes, nothing from the shaders themselves). Two things before it can go anywhere:

What would make it more useful for the 38 programs at a descriptor read from the first lane of computed VGPRs: the report names the opcode of the first varying word only. If most of the 38 share one opcode that says what to lower next; if they are spread out, a second column with the opcodes of all varying words would tell more.

Nothing was built or run for this note. AI-assisted.

@MichaelSmithAI

Copy link
Copy Markdown
Author

Thanks for the review. We opened the descriptor-failure report separately as Marvisak#672 so it can be reviewed independently of Marvisak#566.

r4tedx pushed a commit that referenced this pull request Nov 26, 2026
…nditions alike in it

On a GPU with 32-lane waves a console wave64 program runs as two host
waves, and a v_readfirstlane where not every lane runs was refused (the
two halves cannot meet there to give each other their first lane). Three
programs of the ray-tracing structure builder stopped that way, so the
builder (all or none) could not run on NVIDIA at all (issue #4).

They read the first lane of a value every lane of the console wave holds
alike, inside a loop whose conditions are alike in the console wave too:
a prefix over wave totals, `if (id >> 6 != 0)` and lanes leaving at their
wave's own index. Then each host wave can take its own first lane.

lane_uniform now proves that: it runs to a fixed point; an instruction
under a condition whose atoms are compares of alike values (or uniform)
counts, over an old value that is alike too (waves the condition leaves
out keep that); LDS reads at an alike address count; phis count where
every predecessor is reached by whole console waves (past branches on
alike conditions only); and the thread id's x shifted right by 6 or more
is alike where console waves are runs of 64 ids along x. The result is
only used for v_readfirstlane in the two-host-wave form.

Checked: a GPU test of the same shape (256 threads, four console waves)
fails on the old analysis with the builder's refusal and passes with
this one on an RTX 5070 Ti (driver 621.40), every thread getting the
console's sum. Over the title's whole shader pack and the builder DLL
(VICTORY_HOST_WAVE=32), the only programs whose translation changes are
these three (now emitted and validated: compute 2,718 -> 2,721 of 2,734)
and one other builder program, whose first-lane read of `id >> 6` now
skips an exchange that gave the same value. victory-shader tests: 211
passed. In a world run with VICTORY_BVH_BUILDER=1 the builder now runs
(all 53 programs have host pipelines); the title still crashes within
seconds of it, with or without VICTORY_BVH_QUARANTINE, so it stays off by
default.

[cool/play-1b: picked onto cool_fox f4b48ad. lane_uniform conflicted with codec_d's 8cc31ab, which had added an ordered_lds gate (an LDS read at an alike address counts only where the two host waves meet at a group barrier before every LDS access: split_lds with group_sync on). Resolved by hand: this commit's fixed-point proof, with that gate kept on its LDS-read rule; the tests of both kept.]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 3f2bcc7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants