shader: raise v_interp_p1lv_f16 #456
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!456
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/456/head"
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?
@Loggerten on GitHub · 2026-11-24 03:37 UTC · original
Loggerten:fix/interp-p1lv-f16→main· +45 −5 · 1 files · 1 commits · closed without mergingWhat
v_interp_p1lv_f16(VINTRP 0x343) was the one f16 interpolation first half with no I/O raising:io::raisehandled onlyv_interp_p1ll_f16andv_interp_p2_f16, so any program using it failed withan interpolation form.It pairs exactly as
p1lldoes. The only semantic difference: the P0 coordinate comes from a lane VGPR (v.src[2]) instead of LDS. The lowering recomputes the whole attribute channel from the input element, so nothing on the lowering side needed to change.Per-opcode semantics cross-checked against the RDNA 2 ISA guide and LLVM's AMDGPU VINTRP definitions.
Verified
io::tests::lane_value_first_half_pairs_with_f16_second: ap1lv_f16first half followed by ap2_f16second half. Panics on main withan interpolation form, passes with this change.cargo test -p victory-shader: 57 passed, 0 failed (56 baseline + 1).cargo fmt --check -p victory-shaderclean;cargo clippy -p victory-shader --all-targetsno new warnings.cargo xtask policy: 151 files ok.AI-assisted (Hermes Agent); I reviewed the diff and ran the tests and gates myself.
@DaviTostes on GitHub · 2026-11-24 03:42 UTC · original
Verified
4b8a1caon Arch Linux x86_64 (rustc 1.98.1,cargo test -p victory-shader): 57 passed, 0 failed, 0 ignored.Not covered: f16 interpolation on a real GPU and title shaders (no game data here).
@LocranKing on GitHub · 2026-11-24 04:18 UTC · original
Tested on Windows 11 + retail
shaders.rpf(1.0.2.1) usingvictory translate --validate.Tested
4b8a1ca(pr-456, clean tree)1.98.1(x86_64-pc-windows-msvc), Windows SDK10.0.26100.0dxil.dllcargo xtask policy:asset policy: 151 files okcargo test --workspace: 265 passed, 0 failed, 4 ignoredvictory translate <shaders.rpf> --validate(diagbuild):26084 / 26084translated;12272VS/PS emitted (12172validated),1693CS emitted (1670validated),8191MS emitted (8129validated) — counts unchanged vsmaind2a4bae.Not tested: Live GPU / WARP execution.
AI use: Antigravity (
Gemini 4 Hydrogen) ran the checks andvictory translate --validateand drafted this report from the command outputs.@Marvisak on GitHub · 2026-11-25 00:03 UTC · original
Automated triage for the maintainers. Closing because by our reading the change is incorrect or would break something that works today.
Raises v_interp_p1lv_f16 exactly like p1ll, but per the RDNA2 ISA its P0 is the VGPR operand S2 (a lane value), not the attribute's P0; the PR drops that operand, so a correct refusal becomes a silently wrong interpolation. No evidence the title uses the instruction.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed