Repository navigation
Conversation
|
Thank you for doing the integration and for saying plainly what was and was not run. Where this stands on my side: If you want to save a round trip: after the tip moves, a rebase of Nothing was built or run for this note. AI-assisted. |
2c08dcf to
99f97ea
Compare
|
An update, since the ground moved under this PR twice and that is not your doing.
That is why this PR shows as conflicting. I have not compared The quickest way to find out is your own test. If you put only the test from this PR (the compute select whose mask words are written independently, checked for wave32, wave64 and guest wave64 on a wave32-only target) on top of
Nothing was built or run for this note. AI-assisted. |
99f97ea to
3d3f32e
Compare
|
Thank you for running the test on Where it goes from here: the wave-size analysis this changes belongs to the wave64 stack (upstream Marvisak#439), not to the tree's own glue, so I have passed I have not built or run this revision myself. AI-assisted. |
A compute program with a numeric select declared the console's wave size whether or not anything read the select's result. On a host without 64-lane waves that refused a wave64 program in a group of more than 64 threads only for a select nothing consumes, where it translated before selects on numeric masks were lowered. The ordinary lowering now runs first. Only when it stops on a select with an untracked mask is the program lowered again with numeric selects counted among the masks held as numbers. From #5 (MichaelSmithAI). Picked onto shader/console-flow-lds by r4.: the selector scan iterates every instruction here (the tester tree's `live()` filter is another PR's), and the new lines are formatted for this crate.
|
Merged, thank you. This is in two places now:
What was checked on the stack before taking it, on the hardware here:
On the tree after the merge, the shader tests ran on the RTX 5070 only: 200 passed in 11 of 14 runs. The other three runs did not complete for a reason that is not this change's (GPU tests that were already in the tree stalling or losing the device when run together; it is written up under "Test stability" in The title was not used in these tests. AI-assisted. |
A compute program with a numeric select declared the console's wave size whether or not anything read the select's result. On a host without 64-lane waves that refused a wave64 program in a group of more than 64 threads only for a select nothing consumes, where it translated before selects on numeric masks were lowered. The ordinary lowering now runs first. Only when it stops on a select with an untracked mask is the program lowered again with numeric selects counted among the masks held as numbers. From #5 (MichaelSmithAI). Picked onto shader/console-flow-lds by r4.: the selector scan iterates every instruction here (the tester tree's `live()` filter is another PR's), and the new lines are formatted for this crate.
A compute program with a numeric select declared the console's wave size whether or not anything read the select's result. On a host without 64-lane waves that refused a wave64 program in a group of more than 64 threads only for a select nothing consumes, where it translated before selects on numeric masks were lowered. The ordinary lowering now runs first. Only when it stops on a select with an untracked mask is the program lowered again with numeric selects counted among the masks held as numbers. From #5 (MichaelSmithAI). Picked onto shader/console-flow-lds by r4.: the selector scan iterates every instruction here (the tester tree's `live()` filter is another PR's), and the new lines are formatted for this crate.
A compute program with a numeric select declared the console's wave size whether or not anything read the select's result. On a host without 64-lane waves that refused a wave64 program in a group of more than 64 threads only for a select nothing consumes, where it translated before selects on numeric masks were lowered. The ordinary lowering now runs first. Only when it stops on a select with an untracked mask is the program lowered again with numeric selects counted among the masks held as numbers. From #5 (MichaelSmithAI). Picked onto shader/console-flow-lds by r4.: the selector scan iterates every instruction here (the tester tree's `live()` filter is another PR's), and the new lines are formatted for this crate.
…at 055aef9) Brings the black-scene branch (6d7ead4: Marvisak#489, Marvisak#294, Marvisak#346, root UAVs as bounded one-view tables, VICTORY_ROOT_SRV_MB) up to the tester tree's update 4. No file conflicted. The tree's Marvisak#566 gives `resource::track` a fourth argument, the program as one lane runs it, and this branch's tests called it with three. Adapted, tests only: - emit/valu_tests.rs: the root UAV test structures the program first and passes it; the spill-table helper keeps `emit::translate`'s order (a program that cannot be structured is still traced and fails where it did before). - resource.rs: the spill-table descriptor test passes `lanes(&p)`, as its neighbours do. - victory-gpu draw.rs: the two root-view tests structure first. - emit/waterfall_tests.rs (the tree's): its `HostShader` gets this branch's `root_uavs` field. Run once each, one process at a time on the RTX 5070 and WARP: victory-shader --lib 210 passed, 1 ignored; victory-gpu --lib 95 passed, 1 ignored. `cargo build -p victory` builds. Not run in the title. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A compute program with a numeric select declared the console's wave size whether or not anything read the select's result. On a host without 64-lane waves that refused a wave64 program in a group of more than 64 threads only for a select nothing consumes, where it translated before selects on numeric masks were lowered. The ordinary lowering now runs first. Only when it stops on a select with an untracked mask is the program lowered again with numeric selects counted among the masks held as numbers. From r4tedx/VIctory#5 (MichaelSmithAI). Picked onto shader/console-flow-lds by r4.: the selector scan iterates every instruction here (the tester tree's `live()` filter is another PR's), and the new lines are formatted for this crate.
I ran the requested test on
integration/testersatf61acfa. The current wave64 stack already translates all three live numeric-select cases in the earlier PR. This revision replaces the old integration merge with one commit for the remaining case.A 128-thread compute shader on a wave32-only target could be rejected solely because it contained an unused numeric select. The initial wave-size analysis reserved console lanes before the lowerer found that the select result had no consumer. The current
live()iterator filters known spill instructions and still includes that select. We tested that one-line change separately and reproduced the refusal.The patch lets the ordinary lowering pass run first and retries compute lowering with numeric-select lane requirements when a consumer needs an untracked select result. The unused 128-thread case emits without wave ops. The 128-thread case that actually uses the result retains its wave32 refusal.
Linux shader tests on this revision: 121 passed, 1 ignored. Windows shader tests type-checked from Linux. The regression covers native wave32, native wave64 and guest wave64 on a wave32-only target. Native execution and title impact remain unmeasured.
AI-assisted implementation, testing and review. Earlier integration head for reference:
99f97ea2e7cddfacccc896a33cff7b7f7680e9db.