Repository navigation
shader: VICTORY_WAVE_WIDE=last, wave-wide branches only where nothing else takes a wave64 program - #1141
shader: VICTORY_WAVE_WIDE=last, wave-wide branches only where nothing else takes a wave64 program#1141grindersky wants to merge 1 commit into
Conversation
… else takes a wave64 program On a host whose waves are 32 lanes (NVIDIA), console wave64 compute programs that every other form leaves at 64 lanes are refused outright (CreateComputePipelineState: E_INVALIDARG). VICTORY_WAVE_WIDE=1 takes them, but it runs before the approximate local-wave forms, so it also re-forms programs those already take, with group barriers in branches; on an RTX 5070 (Windows 10) that lost the card about a minute into the world, as runs 121-124 did. `last` tries the same form after every other one, so it only touches programs that would be refused. RTX 5070, first rooms, ~8 minutes: 4 of the 7 refused compute programs now make pipelines (369cbe906ea72764, 2cc4c197ee29e291, 5dc3b25986622949, 6f225b641c5b0708), no device loss. Still refused: 2da4beb386509b77, 02384a60fda6f2d0, 6b82bc7d22016cb5 (wave-wide branches in a group of several console waves). Default and `=1` behave as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
An Ampere data point for the output check left open here: frapopn24/vanguard#3 reports that all four pipelines were created on an RTX 3080, but five runs with a per-shader allowlist isolated visible corruption at the bottom of the frame to enabling On our RTX 3050 Laptop baseline (local build based on Synthetic check on this PR head ( |
|
A related data point from an RTX 5070 Ti (32-lane waves, driver 616.64). It is not this PR's code.
|
…=1, off by default); VICTORY_WAVE_WIDE=last (fork PR #1141) The structure builder does not run unless asked for, and the title's ray-traced passes run all the same: every node test then reads whatever bytes lie where a structure would be, in a walk bounded at 65,535 steps a wave. With VICTORY_BVH_NO_HIT=1 (and not VICTORY_BVH_BUILDER=1) a box node enters no child and any other node is missed: every ray leaves at its first test, the answer is the same in every run, and the program asks the host for neither the directory of title memory nor the list of missing pages (unit test). The idea is fork PR #994's, done here at translation instead of by a host word. Also fork PR #1141 as it is (VICTORY_WAVE_WIDE=last: the barrier form only for programs every other form leaves at 64 lanes; opt-in), and the comment on the wide loads corrected (not the same result on the card: run 277). A TRANSLATOR EDIT: an exe from here on has a new shader fingerprint; wipe the DXIL cache and the pipeline library before its first launch. Not run in a game. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…=1, off by default) The node-test part of fxceless/victory-fork 96ff135 (fork PR fxceless#1141's VICTORY_WAVE_WIDE=last left out): with the structure builder off, the title's ray-traced passes read whatever bytes lie where a structure would be, which differs from launch to launch. (cherry picked in part from commit 96ff135) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…=1, off by default); VICTORY_WAVE_WIDE=last (fork PR fxceless#1141) The structure builder does not run unless asked for, and the title's ray-traced passes run all the same: every node test then reads whatever bytes lie where a structure would be, in a walk bounded at 65,535 steps a wave. With VICTORY_BVH_NO_HIT=1 (and not VICTORY_BVH_BUILDER=1) a box node enters no child and any other node is missed: every ray leaves at its first test, the answer is the same in every run, and the program asks the host for neither the directory of title memory nor the list of missing pages (unit test). The idea is fork PR fxceless#994's, done here at translation instead of by a host word. Also fork PR fxceless#1141 as it is (VICTORY_WAVE_WIDE=last: the barrier form only for programs every other form leaves at 64 lanes; opt-in), and the comment on the wide loads corrected (not the same result on the card: run 277). A TRANSLATOR EDIT: an exe from here on has a new shader fingerprint; wipe the DXIL cache and the pipeline library before its first launch. Not run in a game. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> (cherry picked from commit 96ff135) Port to coolfox-4gb: only the VICTORY_BVH_NO_HIT part (intersect.rs and its test). Left out: VICTORY_WAVE_WIDE=last (emit/mod.rs) and the opt.rs comment; coolfox keeps its own VICTORY_WAVE_WIDE policy. The switch joins the shader cache key by itself (build.rs lists every VICTORY_* name the translator reads). Not compiled, not run.
On a host whose waves are 32 lanes (NVIDIA), console wave64 compute programs that every other form leaves at 64 lanes are refused outright (
CreateComputePipelineState:E_INVALIDARG, as they keepWaveSize(64)).VICTORY_WAVE_WIDE=1takes them, but it runs before the approximate local-wave forms, so it also re-forms programs those already take (23 in my run), with group barriers inside branches. On my machine that lost the card about a minute into the world, like runs 121-124.This adds
VICTORY_WAVE_WIDE=last: the samewidenform, tried after every other form, so it only touches programs that would otherwise be refused. The default and=1behave as before.Tested
RTX 5070 (Blackwell, 32-lane waves), Windows 10 22H2 with the Agility SDK, diag build, with the README's run-253 switch set, through the cutscene into the first rooms (~8 minutes):
VICTORY_WAVE_WIDE=1VICTORY_WAVE_WIDE=lastNow made:
369cbe906ea72764,2cc4c197ee29e291,5dc3b25986622949,6f225b641c5b0708.Still refused:
2da4beb386509b77,02384a60fda6f2d0,6b82bc7d22016cb5(VICTORY_WAVE_WHY: "wave-wide branches in a thread group of several console waves is not supported"), and the mesh pipelinef5e50eb2108c425b+ce3f0432a08f1d35.cargo test -p victory-shader: 192 passed, 23 failed both with and without the change (the failures are the GPU tests, which find no SM 6.6 device from the test binary on Windows 10).I have not checked these programs' output against an AMD card, only that they now run and the device stays up.
🤖 Generated with Claude Code