Lower computed v_interp_p1/p2 (I, J) pairs under --f16-interp-fallback (without --bary-fallback) without PerVertexKHR or a geometry shader by hoisting OpDPdxFine/OpDPdyFine screen-quad barycentric and attribute derivatives into uniform %entry (OpCapability DerivativeControl, guarded by an integer IEEE-754 normal determinant check) and evaluating P_0 + I*P_10 + J*P_20 per site.
The computed I/J refusals were tested only on the f32 pair in straight-line code, so 22 of the
function's 115 mutants survived all 15 interpolation test files. New cases: a pair split only by a
branch target, s_branch with no fallthrough, a write reaching through a taken branch only, a write
two blocks back, a loop that never writes the register, a write after the pair or at the site itself,
a p2 before its p1, and the f16 pair: two p2s of one p1, the partial rewritten or read (as another
p2's J) between the ops, and the nearest p1 as the p2's partner. Test only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A swapped input can be the first read of a barycentric register, and either operand can replace an interpolation weight. Preserve incoming weights and invalidate copies so a fragment uses the values its program exchanged.