[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

Open
opened 2026-11-26 20:19:50 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • c016def vk_subgroup_info: take the barycentric fallback on a Raphael iGPU under AMD's 23.20.44 Windows driver (SHADER-BARY-RAPHAEL-OLD-AMD)
  • abf92df gpu-test-results: Ryzen 7 7700 iGPU on AMD's 23.20.44 Windows driver (TEST-RAPHAEL-7700-OLD-AMD)
  • a90ae51 Merge 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_bary reads a wrong third BaryCoordKHR component: 0.992 where 0.0039 is expected. It is the symptom already handled for gfx90c, and the barycentric fallback is correct here too, but barycentric_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=0 still turns it off. make_game.py, run_gpu_tests.py, build.py and check.py read 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/disasm with LEONIDA_PC_TAIL_UBO=1 (the device has 128 push-constant bytes), test programs and scripts from cf4c00cba:

passed ps_bary
main cf4c00cba 96/97 FAIL, third component 0.9921875 for 0.00390625
this change 97/97 PASS, 4096/4096
this change, LEONIDA_BARY_FALLBACK=0 96/97 FAIL, same values

Only the fixtures with a committed listing ran (no llvm-mc); ps_persp_bary and ps_ij_computed are not among them. 100 shaders translate and pass spirv-val in all three runs.

vk_subgroup_info.py answers barycentric_fallback: true for the iGPU and false for 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_fallbacks and the test_docs* files pass. check_no_game_data.py on 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

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/986 **Author:** [@Snooozs](https://github.com/Snooozs) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `bary-raphael-old-amd` --- ### 📝 Commits (3) - [`c016def`](https://github.com/ubiquitarianism/leonida/commit/c016def791407d70463147f63112b78ec5a75b72) vk_subgroup_info: take the barycentric fallback on a Raphael iGPU under AMD's 23.20.44 Windows driver (SHADER-BARY-RAPHAEL-OLD-AMD) - [`abf92df`](https://github.com/ubiquitarianism/leonida/commit/abf92dff5f28a87fc715af62e09f6004bc3a2003) gpu-test-results: Ryzen 7 7700 iGPU on AMD's 23.20.44 Windows driver (TEST-RAPHAEL-7700-OLD-AMD) - [`a90ae51`](https://github.com/ubiquitarianism/leonida/commit/a90ae5171bd68aa22f26096b5d683b039befbaed) Merge main into bary-raphael-old-amd ### 📊 Changes **4 files changed** (+92 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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_bary` reads a wrong third `BaryCoordKHR` component: 0.992 where 0.0039 is expected. It is the symptom already handled for gfx90c, and the barycentric fallback is correct here too, but `barycentric_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=0` still turns it off. `make_game.py`, `run_gpu_tests.py`, `build.py` and `check.py` read 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/disasm` with `LEONIDA_PC_TAIL_UBO=1` (the device has 128 push-constant bytes), test programs and scripts from cf4c00cba: | | passed | `ps_bary` | |---|---|---| | `main` cf4c00cba | 96/97 | FAIL, third component 0.9921875 for 0.00390625 | | this change | 97/97 | PASS, 4096/4096 | | this change, `LEONIDA_BARY_FALLBACK=0` | 96/97 | FAIL, same values | Only the fixtures with a committed listing ran (no llvm-mc); `ps_persp_bary` and `ps_ij_computed` are not among them. 100 shaders translate and pass spirv-val in all three runs. `vk_subgroup_info.py` answers `barycentric_fallback: true` for the iGPU and `false` for 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_fallbacks` and the `test_docs*` files pass. `check_no_game_data.py` on 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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator rule) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1022
No description provided.