[PR #2176] build.py, check.py: take the f16 interpolation fallback from the device, as run_gpu_tests.py does; no false failures on MoltenVK (TEST-CHECK-F16-INTERP-AUTO) #2180

Open
opened 2026-11-26 21:20:19 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2176
Author: @Tauwni
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: fix/check-f16-interp-fallback-auto


📝 Commits (2)

  • a82cc29 build.py, check.py: follow the device's per_vertex_inputs for the f16 interpolation fallback, as run_gpu_tests.py
  • 1fb2371 Merge main into fix/check-f16-interp-fallback-auto

📊 Changes

3 files changed (+56 additions, -11 deletions)

View changed files

📝 docs/testing.md (+4 -3)
📝 runtime/test/shaders/build.py (+31 -5)
📝 runtime/test/shaders/check.py (+21 -3)

📄 Description

Claimed in the coordination issue as: TEST-CHECK-F16-INTERP-AUTO (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7180496597)

What and why

scripts/run_gpu_tests.py turns on --f16-interp-fallback by itself where tools/vk_subgroup_info.py reports per_vertex_inputs: false (MoltenVK can't convert PerVertexKHR inputs to Metal). runtime/test/shaders/build.py and check.py took it only from LEONIDA_F16_INTERP_FALLBACK=1. So the standalone build.py + check.py run that docs/testing.md describes fails two fixtures on a Mac:

ps_ij_computed       vk_harness failed or returned no pixels
ps_interp_f16_high   vk_harness failed or returned no pixels

Both were translated with PerVertexKHR inputs that MoltenVK can't compile.

With this change, build.py and check.py ask the same question as run_gpu_tests.py. The variable still forces the answer either way, and now also takes 0. build.py caches the answer, as run_gpu_tests.py does. docs/testing.md is updated to match.

Tested

Apple M3, macOS 26.5.1. build.py + check.py on main with this change and the open fixes the run needs (#1444 so build.py gets past cs_dpp_cmp), test programs rebuilt:

before after
MoltenVK 1.4.2 ps_interp_f16_high, ps_ij_computed FAIL ps_interp_f16_high ok, ps_ij_computed SKIP
KosmicKrisp (Mesa 26.3.1) both SKIP (no VK_KHR_fragment_shader_barycentric) ps_interp_f16_high ok, ps_ij_computed SKIP
llvmpipe (Mesa 26.3.1) both SKIP ps_interp_f16_high ok, ps_ij_computed SKIP

These now match what run_gpu_tests.py reports on the same three drivers. No other fixture changes. tests/test_run_gpu_tests.py, tests/test_shader_checks.py and the docs tests are OK.

GPUs tested: Apple M3 (10-core GPU), MoltenVK 1.4.2 and KosmicKrisp (Mesa 26.3.1), macOS 26.5.1 (25F80); llvmpipe (Mesa 26.3.1)

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2176 **Author:** [@Tauwni](https://github.com/Tauwni) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/check-f16-interp-fallback-auto` --- ### 📝 Commits (2) - [`a82cc29`](https://github.com/ubiquitarianism/leonida/commit/a82cc29a69b57a1b3756d638d8c67147d59d9e7d) build.py, check.py: follow the device's per_vertex_inputs for the f16 interpolation fallback, as run_gpu_tests.py - [`1fb2371`](https://github.com/ubiquitarianism/leonida/commit/1fb2371746e43487c2ce008ad5119ee52aaaecd8) Merge main into fix/check-f16-interp-fallback-auto ### 📊 Changes **3 files changed** (+56 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+4 -3) 📝 `runtime/test/shaders/build.py` (+31 -5) 📝 `runtime/test/shaders/check.py` (+21 -3) </details> ### 📄 Description Claimed in the coordination issue as: TEST-CHECK-F16-INTERP-AUTO (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7180496597) ### What and why `scripts/run_gpu_tests.py` turns on `--f16-interp-fallback` by itself where `tools/vk_subgroup_info.py` reports `per_vertex_inputs: false` (MoltenVK can't convert `PerVertexKHR` inputs to Metal). `runtime/test/shaders/build.py` and `check.py` took it only from `LEONIDA_F16_INTERP_FALLBACK=1`. So the standalone `build.py` + `check.py` run that `docs/testing.md` describes fails two fixtures on a Mac: ``` ps_ij_computed vk_harness failed or returned no pixels ps_interp_f16_high vk_harness failed or returned no pixels ``` Both were translated with `PerVertexKHR` inputs that MoltenVK can't compile. With this change, `build.py` and `check.py` ask the same question as `run_gpu_tests.py`. The variable still forces the answer either way, and now also takes `0`. `build.py` caches the answer, as `run_gpu_tests.py` does. `docs/testing.md` is updated to match. ### Tested Apple M3, macOS 26.5.1. `build.py` + `check.py` on `main` with this change and the open fixes the run needs (#1444 so `build.py` gets past `cs_dpp_cmp`), test programs rebuilt: | | before | after | |---|---|---| | MoltenVK 1.4.2 | `ps_interp_f16_high`, `ps_ij_computed` FAIL | `ps_interp_f16_high` ok, `ps_ij_computed` SKIP | | KosmicKrisp (Mesa 26.3.1) | both SKIP (no `VK_KHR_fragment_shader_barycentric`) | `ps_interp_f16_high` ok, `ps_ij_computed` SKIP | | llvmpipe (Mesa 26.3.1) | both SKIP | `ps_interp_f16_high` ok, `ps_ij_computed` SKIP | These now match what `run_gpu_tests.py` reports on the same three drivers. No other fixture changes. `tests/test_run_gpu_tests.py`, `tests/test_shader_checks.py` and the docs tests are OK. GPUs tested: Apple M3 (10-core GPU), MoltenVK 1.4.2 and KosmicKrisp (Mesa 26.3.1), macOS 26.5.1 (25F80); llvmpipe (Mesa 26.3.1) AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2180
No description provided.