Repository navigation
Shaders: lower scc_some directly and per host wave under with_local_waves_any - #190
gdawid9407 wants to merge 1 commit into
Conversation
… directly and per host wave under with_local_waves_any Part of #16
|
I checked be692ec against its parent 4e17478 on a 32-lane target. The tiled cascaded-shadow compute program mentioned in the PR still refuses in both builds. On the PR head, the final approximate retry now stops on a constant lane mask in a half-wave. Applying the literal-select lowering from #277 as well leaves that refusal in place. The exact wave-wide retry reports a thread group containing multiple console waves. Separately, I ran a handwritten 64-thread version of the direct SCC/select case through the normal emitter and read back every lane on an RTX 5070. I placed the one matching lane at 1 and then at 40 and varied the active prefix through 0, 1, 16, 32, 48, and 64 lanes. All 768 output dwords matched the console-wide expectation. WARP on this machine refused the test PSO. This check covers the direct read, and I have no gameplay or joined-SCC output result to report. AI-assisted. |
|
Offline check: with this PR, Setup: RTX 5090 (32-lane waves), Windows 11.
So the stop this PR removes may no longer be the first one this program hits. Or the batch path does not take the AI use: Claude Code with Claude Opus 5.5 built the trees, ran them and wrote this. Nothing from the title is in it beyond the shader hash already named in this PR. |
|
Follow-up: why
What this means for this PR:
What would get further: for this program, the any-mask half-wave form would need constant 64-bit masks taken per half (the host wave's 32 bits of the constant). After that there may be more stops; I didn't try it. AI use: Claude Code with Claude Opus 5.5 ran the retries with a local diagnostic tag and wrote this. Nothing from the title is in it beyond the hash this PR names. |
|
Also checked #277 (literal masks in half-waves), alone and merged with this PR on |
…aves_any Ported from fxceless/victory-fork#190 (be692ec). Targets compute f133e35efed2a48a, which the user's three Try 4.3 reports list as "a lane mask exchanged where not every lane runs" on an RTX 4060. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Problem
scc_someinside a divergent branch (!all_lanes(b)), the initial pass stops with"a lane mask exchanged where not every lane runs"(e.g.compute f133e35efed2a48ain RTX 3070 (32-lane): after #11 (90228a7) the driver refuses ~80 more compute pipelines with E_INVALIDARG #75 and RTX 5070 Laptop (8 GB, default TDR) on 4e17478: 20 min stable, but VICTORY_RELAY=2 causes missing character skin and overlapping subtitles (clean without relay) #89).emitthen retries withwith_local_waves_any(local && local_any), which takes every other mask-as-data and lane read per host wave, butLower::scc_someunconditionally rejectedself.localinstead ofself.local && !self.local_any.SOPreads ofReg::Sccinst.scc_some(without an interveningSccphi) hitVal::Missing(LANE_MASK)inLower::getinstead of lowering throughscc_some, and were not counted byreads_mask_as_data.Changes
Lower::scc_someunderself.local && self.local_any, returning the host wave'swaveAnyTruewithout cross-half LDS exchange (while still rejecting plainwith_local_wavesidiom checks).st.scc_somereads inLower::getand recognize direct and phi-joinedscc_someuses inreads_mask_as_data/console_lanes/crosses.scc_someinside a divergent branch on 64-lane and 32-lane hosts.