Commit Graph

4 Commits

Author SHA1 Message Date
71db4c4051 test(semantic): align computed-I/J f16 interp oracle with toward-zero p2 narrow
Update `tests/semantic/test_interp_computed_ij_fallback.py` (#2239) to
narrow `v_interp_p2_f16` reference expectations toward zero (`f16_rtz` /
`f16_rtz_bits`), matching `SHADER-468` (#1181).

AI-assisted.
2026-11-29 15:19:48 -05:00
a5d954a4a7 rdna2spirv, docs, tests: document ij_quad_eval shortcut bound and line det==0 fallback
- Mark Gen.ij_quad_eval with shortcut: in tools/rdna2spirv.py and update docs/design.md
  to state that binary32 quad finite differences amplify rasterizer input rounding by
  (1 + 2|alpha| + 2|beta|) (~|i - I_c| / |dI/dx| up to primitive pixel span) and that
  det == 0 (including 1D/line primitives with constant J) falls back to P_c.
- Tighten test_perspective_fixture_branch_and_f16_halves against a binary64 Jacobian
  oracle and add test_wide_2048px_perspective_extrapolation_bound_and_line_det_zero_fallback
  covering a 2048px perspective triangle (P in [1.5, 4096.0]) and line det == 0 fallback.
2026-11-27 23:21:23 -08:00
ae364461bf rdna2spirv, docs, tests: address #2239 review findings and 1080p precision check 2026-11-26 15:45:23 -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