shader: say which 16-bit read of a 32-bit input is refused #136
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!136
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-136"
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?
@Olima34 on GitHub · 2026-11-26 18:27 UTC · original
Olima34:fix/shader-f16-input-causes→main· +51 −1 · 3 files · 1 commits · merged 2026-11-26 19:02 UTCA refusal split, like #131 and #134: it names the form instead of lowering it.
What it is. "a 16-bit read of a 32-bit input" refused 3 unique shaders in tester log #123. They are pixel shaders: the log's pipeline name starts with the vertex shader's, which made them look like vertex shaders. The refusal is raised in the interpolation path, when
v_interp_p1ll_f16/v_interp_p2_f16, or a high-half read, hits a PS input whose stage data lacks the fp16 flag (bit 3).Why not lowered. What the hardware returns for a 16-bit read of a 32-bit exported attribute is not documented. In guessed pipelines the missing flag may also come from our guessed stage data rather than from the program, so lowering it would be a guess.
What. The refusal now says which read it is:
a 16-bit read of a 32-bit input: the high half of an input not marked 16-bit(op_sel high);a 16-bit read of a 32-bit input: an f16 interpolation of an input not marked 16-bit.An input the stage data doesn't list at all is refused earlier ("an interpolated attribute the stage data does not list"), so it never reaches this refusal.
Test.
emit::tests::a_16_bit_read_of_a_32_bit_input_says_which: a p1ll+p2 sequence with and withouthigh. It fails on main with the generic text. No test or doc incrates/cited the old text.victory-shader and victory-gpu tests (arm64), Windows clippy and
cargo xtask policypass.@LakshanSivakumar on GitHub · 2026-11-26 18:56 UTC · original · approved these changes
Reviewed and tested together with the other open PRs on main (macOS x86_64 tests for shader, hle, loader and gpu, the setup shell tests, and Windows clippy). Thanks!