mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[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
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2180
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
a82cc29build.py, check.py: follow the device's per_vertex_inputs for the f16 interpolation fallback, as run_gpu_tests.py1fb2371Merge 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.pyturns on--f16-interp-fallbackby itself wheretools/vk_subgroup_info.pyreportsper_vertex_inputs: false(MoltenVK can't convertPerVertexKHRinputs to Metal).runtime/test/shaders/build.pyandcheck.pytook it only fromLEONIDA_F16_INTERP_FALLBACK=1. So the standalonebuild.py+check.pyrun thatdocs/testing.mddescribes fails two fixtures on a Mac:Both were translated with
PerVertexKHRinputs that MoltenVK can't compile.With this change,
build.pyandcheck.pyask the same question asrun_gpu_tests.py. The variable still forces the answer either way, and now also takes0.build.pycaches the answer, asrun_gpu_tests.pydoes.docs/testing.mdis updated to match.Tested
Apple M3, macOS 26.5.1.
build.py+check.pyonmainwith this change and the open fixes the run needs (#1444 sobuild.pygets pastcs_dpp_cmp), test programs rebuilt:ps_interp_f16_high,ps_ij_computedFAILps_interp_f16_highok,ps_ij_computedSKIPVK_KHR_fragment_shader_barycentric)ps_interp_f16_highok,ps_ij_computedSKIPps_interp_f16_highok,ps_ij_computedSKIPThese now match what
run_gpu_tests.pyreports on the same three drivers. No other fixture changes.tests/test_run_gpu_tests.py,tests/test_shader_checks.pyand 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
mainand merges cleanly.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.