shader: say where a lane mask read as data comes from when it is refused #118
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/118"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T17:18:45Z.
For the "lane mask read as data" shape of #4. This is a diagnostic, not a lowering: it splits the refusal so the next run says which form the title uses.
Why. "a lane mask holding lanes elsewhere read as data" was the message for every way out of
Lower::mask_number. The #110 log shows three compute programs refused with it, but not which form they take, so there is nothing safe to lower yet. Reading the shaders to find out would mean sending game bytes to a model.What. Each exit now names its cause after the same prefix, so the existing tallies still group them:
in a mesh program;a program input;not written by a scalar ALU instruction;written by a scalar instruction of the other width(for examples_and_saveexec_b32in a wave64 program);the EXEC a saveexec keeps, or a mask written with EXEC;shifted on the host's lanes;an operand no SGPR or constant gives;a scalar operation not modelled.An unknown operation is now named before its second source is read; nothing else changes. Of the forms tried by hand in a wave64 compute program (
s_and_saveexec_b64,s_orn1_saveexec_b64,s_brev_b64,s_wqm_b64,s_cselect_b32,s_mov_b32ands_not_b32ofvcc_lo), onlys_and_saveexec_b32reaches this refusal; the others already lower.Test.
mask_testschecks the "other width" message fors_and_saveexec_b32in wave64.victory-shader tests, Windows clippy and
cargo xtask policypass. Once a refusal report on current main is posted, I'll lower whichever form shows up.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:09:50Z.
Merged, thanks. I renamed the first cause to "in a mesh, hull or geometry program" (
f8a7a0b), since that case covers every stage but compute, pixel and vertex.