Commit Graph

10 Commits

Author SHA1 Message Date
06e5327291 Merge origin/main into fix/rdna2spirv-f16-interp-computed-ij 2026-11-28 13:59:35 -08:00
cd8d9aa7a8 rdna2spirv: lower computed I/J barycentrics under --f16-interp-fallback
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.
2026-11-26 01:57:43 -08:00
93dc391dca tests/semantic: interp_ij_analysis's block split, reaching-write walk and f16 pair rules
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>
2026-11-25 00:39:18 +02:00
c32688520c chore(shader): merge upstream main into barycentric swaps
Keep the targeted regression and the intervening upstream changes together for review.
2026-11-22 23:02:36 +01:00
93070ddbde chore(shader): merge upstream main into bary-swap
Keep the targeted regression and the intervening upstream changes together for review.
2026-11-22 21:10:59 +01:00
460aea12a1 rdna2spirv: always init v0/v1 from BaryCoordKHR in conditional computed-I/J PS 2026-11-22 19:19:01 +01:00
0a55634433 rdna2spirv: also load BaryCoordKHR when straight-line EXEC masks v0/v1 writes 2026-11-22 19:14:04 +01:00
fb50143d07 rdna2spirv: load BaryCoordKHR for untouched or conditional v0/v1 in computed I/J pairs 2026-11-22 19:06:46 +01:00
7003f7ce32 fix(shader): track both weights exchanged by v_swap_b32
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.
2026-11-22 18:58:42 +01:00
f2cf303237 SHADER-177: model computed I/J barycentrics (v0/v1 overwritten before v_interp) 2026-11-22 04:22:04 -08:00