mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #986] 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) #1022
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#1022
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/986
Author: @Snooozs
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:bary-raphael-old-amd📝 Commits (3)
c016defvk_subgroup_info: take the barycentric fallback on a Raphael iGPU under AMD's 23.20.44 Windows driver (SHADER-BARY-RAPHAEL-OLD-AMD)abf92dfgpu-test-results: Ryzen 7 7700 iGPU on AMD's 23.20.44 Windows driver (TEST-RAPHAEL-7700-OLD-AMD)a90ae51Merge main into bary-raphael-old-amd📊 Changes
4 files changed (+92 additions, -7 deletions)
View changed files
📝
docs/testing.md(+5 -0)➕
gpu-test-results/Raphael-R7-7700-AMD-23.20.44.txt(+20 -0)📝
tests/test_vk_subgroup_info.py(+37 -0)📝
tools/vk_subgroup_info.py(+30 -7)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.