Commit Graph

9 Commits

Author SHA1 Message Date
f462c263e9 test_shader_build_fallbacks: pin LEONIDA_EXPLICIT_LOD_BIAS=0 in the ftz32 test
main's new test mocks exactly two subprocess.run calls (the ftz32 probe and the
translator); unset, build.py's --lod-bias probe ran first and used one of them,
so the translator call raised StopIteration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:00:36 +01:00
6ebdee1978 tests: honor GPU float32 flush-to-zero support in shader fixtures 2026-11-29 10:40:34 -05:00
06e5327291 Merge origin/main into fix/rdna2spirv-f16-interp-computed-ij 2026-11-28 13:59:35 -08:00
6064cbbb49 tests: build.py and check.py pick the f16 interpolation fallback from the device (TEST-CHECK-F16-FALLBACK)
run_gpu_tests.py and make_game.py translate with --f16-interp-fallback by
themselves where tools/vk_subgroup_info.py reports per_vertex_inputs
false (MoltenVK). build.py and check.py only did so with
LEONIDA_F16_INTERP_FALLBACK=1, so the two-step form on a Mac built
ps_ij_computed and ps_interp_f16_high for PerVertexKHR inputs and
check.py reported both as failed.

Both scripts now ask the device when the variable is unset, the way they
already do for the barycentric fallback, and take 1/0 (true/false, yes/no,
on/off) as run_gpu_tests.py does. On an Apple M5 (MoltenVK 1.4.2) check.py
goes from 175 of 220 pass, 39 skipped, 6 failed to 176 pass, 40 skipped,
4 failed: ps_interp_f16_high passes and ps_ij_computed is a SKIP.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 12:44:46 +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
9ab8a45cfa tests: remove unavailable mullit readback path 2026-11-24 18:03:55 +01:00
86a7807dd4 Barycentric fallback on by itself on AMD's Windows driver for gfx90c (#5933) (#6828)
Squash-merged after diff review of PR #6828
2026-11-23 10:42:42 -06:00
949d08c687 test_shader_build_fallbacks: clean up every subtest's temporary folder
The fallback subtests called setUp() again, so the folder the first
setUp() made was dropped without cleanup and Python warned
(ResourceWarning: Implicitly cleaning up <TemporaryDirectory ...>).
Each folder now registers its own cleanup. Seen by @tylerstraub on
Python 3.14.

AI-assisted.
2026-11-22 15:43:31 +01:00
5314dffcef build.py: leave ps_ij_computed out under the PerVertexKHR fallbacks instead of failing the batch
Under LEONIDA_BARY_FALLBACK=1 or LEONIDA_F16_INTERP_FALLBACK=1 the
translator refuses ps_ij_computed (a computed I/J pair needs PerVertexKHR
inputs, which both fallbacks take away). build.py counted that as a
missing module and exited before publishing anything, so check.py then
reported 0 of 147. A Mac needs LEONIDA_F16_INTERP_FALLBACK=1 for the
two-step path, so that path never ran there, and the SKIP check.py gained
in #1680 was never reached.

Leave ps_ij_computed out under either fallback with a "not built" line,
as build.py already does for ms_/gs_ shaders. Without a fallback it is
built as before, and any other missing module still fails the batch.

AI-assisted.
2026-11-22 15:35:24 +01:00