rdna2spirv: buffer_load_format_d16_hi_x and buffer_store_format_d16_hi_x #172

Closed
Andretuta wants to merge 3 commits from upstream-pr/172 into main
Andretuta commented 2026-11-24 02:34:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:34:56Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465008656 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/172). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:34:56Z. --- > 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`.
aslan2142 commented 2026-11-24 19:19:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T19:19:05Z.


This carry-over of old upstream PR 9907 has been taken over in #858, so I'm closing this draft as #17 describes. The branch old-pr/9907 stays.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7141919513 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/172#issuecomment-7141919513). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T19:19:05Z. --- This carry-over of old upstream PR 9907 has been taken over in #858, so I'm closing this draft as #17 describes. The branch `old-pr/9907` stays. AI-assisted (Claude Code, Claude Opus 5.5).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!172
No description provided.