mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #311] [CLOSED] vk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed (RADV on gfx90c) #363
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#363
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/311
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10045📝 Commits (1)
baab2e8vk_subgroup_info: per_vertex_inputs needs VK_KHR_fragment_shader_barycentric listed📊 Changes
3 files changed (+28 additions, -10 deletions)
View changed files
📝
docs/testing.md(+6 -2)📝
tests/test_vk_subgroup_info.py(+14 -5)📝
tools/vk_subgroup_info.py(+8 -3)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in
#9677(claim), new item. Resubmits the fix of#8102, which was closed in the PR cleanup together with#8068(the other PR that gated the same field); neither was merged, andmaina8b7ddbstill has the bug.Depends on: none.
What and why
tools/vk_subgroup_info.pyreadsper_vertex_inputsfrom thefragmentShaderBarycentricfeature alone. RADV (Mesa 26.2.6) fills that feature with a one on a gfx90c iGPU (Vega 8, PCI 1002:15E7) that doesn't listVK_KHR_fragment_shader_barycentric: vulkaninfo shows no such extension, andvk_harnessrefuses the barycentric shaders with "the device has no VK_KHR_fragment_shader_barycentric". So:run_gpu_tests.pydoesn't turn--f16-interp-fallbackon by itself, andps_interp_f16_highskips instead of running through the fallback;make_game.pyreads the same field (runtime_gpu_per_vertex, and#9784adds another reader), so a build for this GPU would keepPerVertexKHRinputs the device can't run.The feature now counts only where the extension is listed too, the rule
vk_harnessalready uses.device_extensions()is called only when the feature bit is set and the driver isn't MoltenVK; an enumeration failure gives an empty set, so the answer is false and the f16 fallback is used.docs/testing.mdgets the gfx90c/RADV measurement in place of "RADV and other GCN 5 GPUs are not covered".Tested
AMD Radeon Vega 8 (Ryzen 7 5825U, gfx90c, GCN 5), RADV Mesa 26.2.6, CachyOS Linux, on
maina8b7ddb:python -I tools/vk_subgroup_info.py:per_vertex_inputstrueonmain,falsehere.python -I scripts/run_gpu_tests.py: 193/248 passed, 52 skipped onmain; 194/248 passed, 51 skipped here. The one change isps_interp_f16_highSKIP → PASS ("f16 low/high halves and f32 control within 2e-3");ps_ij_computedis then not translated (254/255), as withLEONIDA_BARY_FALLBACK=1onmain(the translator refuses computed I/J pairs under the fallbacks; the test skips either way). The three failures on this GPU (cs_imgload_tfe,cs_imgload_d16_tfe,cs_w64_exec_computed) are the same onmainand with this change.python -I tests/test_vk_subgroup_info.py: OK. The two new cases (feature without the extension, as RADV on gfx90c; feature with other extensions only) fail withmain's tool and pass here;FakeDevicenow lists the extension by default, as a driver with barycentrics does.tests/test_run_gpu_tests.py,tests/test_make_game_translator_flags.py,tests/test_docs_design_rows.py: OK.python -m compileall -q make_game.py tools testsclean;scripts/check_no_game_data.pyon the three files clean.No game files. AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.