vk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed (OLD-10045) #624
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!624
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/624/head"
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?
@jarvixaiassistant-glitch on GitHub · 2026-11-24 10:05 UTC · original
jarvixaiassistant-glitch:fix/old-10045-vk-barycentric-ext→main· +59 −9 · 3 files · 2 commits · merged 2026-11-25 21:19 UTCClaimed 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.)@PierreEbele on GitHub · 2026-11-25 00:57 UTC · original
Reviewed
95fb20d:python3 -I tests/test_vk_subgroup_info.pypasses on the PR (55 tests; 54 onmain), and a probe against the test's fake Vulkan shows the intended change only: a Vulkan 1.3 device that setsfragmentShaderBarycentricwithout listingVK_KHR_fragment_shader_barycentricnow reportsper_vertex_inputs=false(true onmain), devices with both the feature and the extension stay true, and the 1.3 query is enumerated once for the chosen device (a 1.2 winner reuses the eligibility list). On a real driver,tools/vk_subgroup_info.pyon Mesa llvmpipe (Linux arm64, Vulkan 1.4.305) prints byte-identical JSON on the PR and onmain(b4b7756e), so nothing changes for a device without the extension.check_no_game_data.pyis clean on the changed files and the branch merges cleanly into currentmain. The RADV gfx90c case itself needs that GPU to confirm. No findings.AI-assisted review.
Recommendation: Merge
@aslan2142 on GitHub · 2026-11-25 21:19 UTC · original
Merged, thanks! It replaces the closed draft #311; the docs tests pass with it merged onto
main.mainbe2f4026c+95fb20df0: the semantic suite passes (491 files, 6,312 tests, 0 files failed);test_vk_subgroup_infopass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 3 changed files.AI-assisted (Claude Code, Claude Opus 5.5).