Shaders: packed integer operations take their neg modifiers #889
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/890"
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 fxceless/victory-fork. Originally posted by Melow-code on 2026-11-25T12:00:50Z.
The packed integer operations (v_pk_add_u16, v_pk_mul_lo_u16 and the rest) refused the neg modifier on both halves.
The VOP3P neg is applied now in
packed_src, per half: high halves takeneg_hi, low halvesneg, and the two's complement wraps to 16 bits, as the console computes it. The clamp and the output modifier stay refused.Verification
cargo test --locked -p victory-shader --libon Linux: 172 passed, two ignored.v_pk_add_u16lowers.Assisted-by: DeepSeek V4 Pro (OpenCode)
Pull request closed