mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #2192] make_game, vk_subgroup_info: auto-enable --bary-fallback without VK_KHR_fragment_shader_barycentric #2198
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#2198
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/2192
Author: @robot00f
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:feat/make-game-bary-fallback-no-ext📝 Commits (2)
5a82e80make_game, vk_subgroup_info: auto-enable --mesh-compute without VK_EXT_mesh_shaderf1b4616make_game, vk_subgroup_info: auto-enable --bary-fallback without VK_KHR_fragment_shader_barycentric📊 Changes
9 files changed (+252 additions, -50 deletions)
View changed files
📝
README.md(+6 -3)📝
docs/design.md(+2 -2)📝
make_game.py(+45 -15)📝
scripts/run_gpu_tests.py(+2 -1)📝
tests/test_make_game_argparse.py(+1 -0)📝
tests/test_make_game_translator_flags.py(+84 -7)📝
tests/test_make_game_wave64.py(+1 -0)📝
tests/test_vk_subgroup_info.py(+67 -1)📝
tools/vk_subgroup_info.py(+44 -21)📄 Description
Summary
Auto-enable
--bary-fallbackinmake_game.py(andscripts/run_gpu_tests.py) whentools/vk_subgroup_info.pyselects a GPU withoutVK_KHR_fragment_shader_barycentric(fragmentShaderBarycentric) that supportsgeometryShader(such as NVIDIA Pascal / GTX 1050 Ti, Intel Gen9.5, and older GCN):vk_subgroup_info.pyreportedper_vertex_inputs: falseon Pascal (turning on--f16-interp-fallback), whilebarycentric_fallbackonly checked for driver bugs on devices that do advertiseVK_KHR_fragment_shader_barycentric(Mesa ANV and AMD Windows ongfx90c), returningfalseon Pascal and leaving rawBaryCoordKHRpixel shaders untranslated unless--bary-fallbackorLEONIDA_BARY_FALLBACK=1was passed manually.VkPhysicalDeviceFeatures.geometryShader(offset32in the existingVkPhysicalDeviceFeatures2query) alongsideVK_KHR_fragment_shader_barycentricintools/vk_subgroup_info.py, exposing"fragment_shader_barycentric"and"geometry_shader", and set"barycentric_fallback"totruewhennot fragment_shader_barycentric and geometry_shader(MoltenVK hasgeometry_shader == falseand staysfalse).VK_KHR_fragment_shader_barycentricreason distinctly from the Mesa ANV / AMDgfx90cdriver-bug message inmake_game.py, preservingLEONIDA_BARY_FALLBACK=0/1, explicit--bary-fallback, andkeep_recorded_fallbackon transient probe failures.README.md,docs/design.md, and unit tests intests/test_vk_subgroup_info.pyandtests/test_make_game_translator_flags.py.Validation
19045, driver582.28):python -I tools/vk_subgroup_info.pynow reports"fragment_shader_barycentric": false, "geometry_shader": true, "per_vertex_inputs": false, "barycentric_fallback": true, "mesh_shader": false.python -I tests/test_vk_subgroup_info.py,python -I tests/test_make_game_translator_flags.py,python -I tests/test_make_game_wave64.py,test_docs_*,test_text_write_line_endings.py(all OK).python -I scripts/check_no_game_data.py(clean).Depends on: #1885
Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7182727159
AI-assisted: yes (Antigravity, Gemini 4 Carbon)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.