mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #624] [MERGED] vk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed (OLD-10045) #667
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#667
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/624
Author: @jarvixaiassistant-glitch
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/old-10045-vk-barycentric-ext📝 Commits (2)
de286bfvk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed95fb20dvk_subgroup_info: reuse Vulkan 1.2 extensions and defer 1.3 query until chosen📊 Changes
3 files changed (+59 additions, -9 deletions)
View changed files
📝
docs/testing.md(+6 -2)📝
tests/test_vk_subgroup_info.py(+39 -5)📝
tools/vk_subgroup_info.py(+14 -2)📄 Description
Claimed in the coordination issue as: OLD-10045
What and why
Carries forward
old-pr/10045(draft #311) ontomain(21625bca8), preservingMatheus Fermiano's original commit verbatim perCONTRIBUTING.mdand adding one focused hardening commit on top:Matheus Fermiano): Updatestools/vk_subgroup_info.pysoper_vertex_inputsrequiresVK_KHR_fragment_shader_barycentricto be listed in the device's extension list (in addition tofragmentShaderBarycentricand non-MoltenVK), preventing false positives on drivers like RADV (Mesa 26.2.6) on gfx90c Vega 8 (PCI 1002:15E7) that set the feature bit without exposing the extension; adds unit tests intests/test_vk_subgroup_info.pyand documents the measurement indocs/testing.md.JARVIX): Avoids redundantvkEnumerateDeviceExtensionPropertiescalls duringquery():extensionsset already enumerated for Vulkan 1.2 eligibility (VULKAN_12_REQUIRED_EXTENSIONS) instead of callingdevice_extensions(vk, d)a second time on the same device.device_extensions()call until after the highest-ranked winning device is selected (avoiding extension enumeration on lower-ranked Vulkan 1.3 devices superseded later in the loop).test_per_vertex_inputs_reuses_vulkan12_extensions_and_defers_vulkan13covering Vulkan 1.2 single-enumeration reuse (with and withoutVK_KHR_fragment_shader_barycentric) and Vulkan 1.3 deferred enumeration when an integrated GPU precedes a discrete GPU.Tested
All synthetic unit/docs/CI checks and live dual-GPU Vulkan queries on Windows 11 x64, Python 3.12.14, Node v24.19.0 (no game files):
python -I tests/test_vk_subgroup_info.py -v— 55/55 passedpython -I tools/vk_subgroup_info.py(NVIDIA GeForce RTX 3090, driver 621.01, Vulkan 1.4.357):per_vertex_inputs: true,barycentric_fallback: false,max_push_constants_size: 256LEONIDA_VK_DEVICE=AMD python -I tools/vk_subgroup_info.py(AMD Radeon(TM) Graphics gfx90c Cezanne0x1638, driver 26.5.2, Vulkan 1.3.260):per_vertex_inputs: true,barycentric_fallback: true,max_push_constants_size: 128python -I tests/test_ci_registration.py— 15/15 passedpython -I tests/test_runtime_paths.py— 5/5 passedpython -I scripts/check_no_game_data.py— passed (0 forbidden tracked extensions)python -m compileall -q make_game.py tools tests— passedpython -I tests/test_text_write_line_endings.py,tests/test_report_paths.py,tests/test_i18n_index.py, and alltests/test_docs_*.py— passednode --test tests/test_viewer_streaming.cjs— passedGPUs tested: NVIDIA GeForce RTX 3090 (Windows 11, driver 621.01, Vulkan 1.4.357) and AMD Radeon(TM) Graphics gfx90c
0x1638(Windows 11, driver 26.5.2, Vulkan 1.3.260) viatools/vk_subgroup_info.pyAI-assisted: yes (JARVIX multi-model team: Antigravity + DeepSeek-V4-Pro + NVIDIA NIM Nemotron-3-Ultra-550B)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (N/A — Vulkan physical-device capability query only; no shader-translator rule changed.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.