[PR #172] [CLOSED] rdna2spirv: buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_x #224

Closed
opened 2026-11-26 20:17:11 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/172
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/9907


📝 Commits (3)

  • 544ca75 rdna2spirv: buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_x
  • 18cb4f0 Merge remote-tracking branch 'origin/main' into HEAD
  • 5bedfa6 Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

3 files changed (+119 additions, -7 deletions)

View changed files

📝 docs/design.md (+1 -0)
➕ tests/semantic/test_buffer_format_d16_hi.py (+100 -0)
📝 tools/rdna2spirv.py (+18 -7)

📄 Description

Carried over from old PR 9907 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9907, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
LouisRiverstone: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_x raised Unsupported, while the other buffer_*_format_d16_* forms are translated. RDNA2 ISA (MUBUF):

  • The load decodes one component as buffer_load_format_d16_x does (to f16 for a float format, to a saturated 16-bit integer for an integer one) and writes it to bits 31:16 of vdata, keeping bits 15:0. d16_x writes 15:0 and keeps 31:16.
  • The store takes the component from bits 31:16 of vdata, where d16_x takes 15:0.

Re-submission of #1885. #1885 was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current main.

Checked on #1885 by: tylerstraub (RTX 5090), josevictorp (Linux 6.8), itsonlysimbo (RTX 4070), TreXito (RTX 3060 Ti), tedin7 (RTX 5080), Mast3rL (RX 9070), tunczzz (RTX 5070 Ti), DenRakEiw (Windows 11), bobcatchris (RX 7900 XTX), JRamos1993 (RTX 5090), lukasas74 (RTX 5080), TG0000 (RX 6800) and 2 more.

No game files.

AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with main.


🔄 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/172 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/9907` --- ### 📝 Commits (3) - [`544ca75`](https://github.com/ubiquitarianism/leonida/commit/544ca75a54edb18f62ad752d18d5835e465e77fc) rdna2spirv: buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_x - [`18cb4f0`](https://github.com/ubiquitarianism/leonida/commit/18cb4f0a8ede680d2aac2b567ae83819a224c73c) Merge remote-tracking branch 'origin/main' into HEAD - [`5bedfa6`](https://github.com/ubiquitarianism/leonida/commit/5bedfa66791199f42352e787882de9af244909eb) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **3 files changed** (+119 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -0) ➕ `tests/semantic/test_buffer_format_d16_hi.py` (+100 -0) 📝 `tools/rdna2spirv.py` (+18 -7) </details> ### 📄 Description > Carried over from **old PR 9907** by `LouisRiverstone` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9907`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `LouisRiverstone`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): `buffer_load_format_d16_hi_x` and `buffer_store_format_d16_hi_x` raised `Unsupported`, while the other `buffer_*_format_d16_*` forms are translated. RDNA2 ISA (MUBUF): - **The load** decodes one component as `buffer_load_format_d16_x` does (to f16 for a float format, to a saturated 16-bit integer for an integer one) and writes it to **bits 31:16** of `vdata`, keeping bits 15:0. `d16_x` writes 15:0 and keeps 31:16. - **The store** takes the component from **bits 31:16** of `vdata`, where `d16_x` takes 15:0. Re-submission of `#1885`. `#1885` was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current `main`. Checked on `#1885` by: tylerstraub (RTX 5090), josevictorp (Linux 6.8), itsonlysimbo (RTX 4070), TreXito (RTX 3060 Ti), tedin7 (RTX 5080), Mast3rL (RX 9070), tunczzz (RTX 5070 Ti), DenRakEiw (Windows 11), bobcatchris (RX 7900 XTX), JRamos1993 (RTX 5090), lukasas74 (RTX 5080), TG0000 (RX 6800) and 2 more. No game files. AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with `main`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:11 +01:00
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#224
No description provided.