vk_subgroup_info: take the barycentric fallback on a Raphael iGPU under AMD's 23.20.44 Windows driver (SHADER-BARY-RAPHAEL-OLD-AMD, TEST-RAPHAEL-7700-OLD-AMD) #986
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/986"
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?
Imported from ubiquitarianism/leonida. Originally posted by Snooozs on 2026-11-24T16:27:04Z.
Claimed in the coordination issue as: SHADER-BARY-RAPHAEL-OLD-AMD, TEST-RAPHAEL-7700-OLD-AMD (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137475906)
What and why
On a Ryzen 7 7700 iGPU (Raphael, RDNA2, PCI 1002:164E) with AMD's old Windows driver 31.0.22044.1 (compiler 23.20.44, Vulkan driverVersion 2.0.283),
ps_baryreads a wrong thirdBaryCoordKHRcomponent: 0.992 where 0.0039 is expected. It is the symptom already handled for gfx90c, and the barycentric fallback is correct here too, butbarycentric_fallback()covered gfx90c only.tools/vk_subgroup_info.py: the fallback is also selected for 1002:164E under AMD's proprietary driver up to the measured driverVersion 2.0.283. Newer or unknown versions, other RDNA2 IDs and RADV are unchanged.LEONIDA_BARY_FALLBACK=0still turns it off.make_game.py,run_gpu_tests.py,build.pyandcheck.pyread the answer from this tool.tests/test_vk_subgroup_info.py: the bound, the neighbours, and the query path that reads driverVersion.docs/testing.md: the GPU, driver and bound.gpu-test-results/Raphael-R7-7700-AMD-23.20.44.txt: the full result.The bound is the one driver I could measure; I do not know which later driver fixed it.
Possible textual conflict with #624 and #311, which edit the same file for another rule.
Tested
run_gpu_tests.py --disasm-dir tests/semantic/fixtures/disasmwithLEONIDA_PC_TAIL_UBO=1(the device has 128 push-constant bytes), test programs and scripts fromcf4c00cba:ps_barymaincf4c00cbaLEONIDA_BARY_FALLBACK=0Only the fixtures with a committed listing ran (no llvm-mc);
ps_persp_baryandps_ij_computedare not among them. 100 shaders translate and pass spirv-val in all three runs.vk_subgroup_info.pyanswersbarycentric_fallback: truefor the iGPU andfalsefor the RTX 5060 Ti.tests/test_vk_subgroup_info.py: 56 OK (the new cases fail without the rule).test_make_game_wave64,test_make_game_translator_flags,test_run_gpu_tests,test_shader_build_fallbacksand thetest_docs*files pass.check_no_game_data.pyon the changed files: clean.GPUs tested: AMD Radeon(TM) Graphics (Ryzen 7 7700 iGPU), AMD 31.0.22044.1, Windows 10 22H2; NVIDIA RTX 5060 Ti 621.01 (tool answer only)
AI-assisted: yes. Claude Code (a Haiku 5.5 subagent wrote the rule and its tests, Claude Opus 5.5 reviewed it and ran the GPU tests).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule)🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T22:10:11Z.
Reviewed
abf92dff: I ran tests/test_vk_subgroup_info.py on the PR tree (56 OK) and on main (54 OK); with the PR's test file copied onto main the new tests fail there, so they cover the new rule. compileall and tests/test_make_game_wave64.py pass on the PR tree. A barycentric_fallback probe on both trees shows the pre-existing cases identical after the change, and the new Raphael rule fires only at/below driverVersion 2.0.283 with the exact device+driver ID, never on None/0; query() JSON keys unchanged. No GPU run was possible; the hardware evidence is the committed results file. No finding. AI-assisted review.Recommendation: Merge
Imported from ubiquitarianism/leonida. Originally posted by Snooozs on 2026-11-26T10:27:26Z.
Merged
main(a73a57e13) into the branch (a90ae5171, no force push) to clear the conflict intools/vk_subgroup_info.py:mainnow checks the per-vertex barycentric feature against its extension once a device is chosen, and this branch adds the chosen driver version to the same tuple. Both are kept.tests/test_vk_subgroup_info.py(57 OK),tests/test_make_game_wave64.pyandmake_game.py --helppass on the merged tree. No GPU run after the merge. AI-assisted (Claude Code).Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T13:08:54Z.
Red/green: tests/test_vk_subgroup_info.py 105 failed on main, 57 passed with the PR.
Targeted batch of 30 PRs (their tests, the tests importing the changed modules, the docs tests, the translator suite) on main
a997a3c: no new failure, Windows 11 / Python.AI-assisted (Claude Code, Claude Opus 5.5)