[PR #1067] docs/design: contract row for the image fetch status VGPR (tfe/lwe), a resident read leaves it unchanged (SHADER-1266-DESIGN-ROW) #1104

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1067
Author: @syntaxixr
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: docs/design-tfe-status


📝 Commits (1)

  • 2981ead docs/design: contract row for the image fetch status VGPR (tfe/lwe): a resident read leaves it unchanged (SHADER-1266)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 docs/design.md (+1 -0)

📄 Description

Claimed in the coordination issue as: SHADER-1266-DESIGN-ROW (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139494723).

This is the follow-up @aslan2142 named when merging #892: a docs/design.md contract row saying that a resident image_load with tfe leaves the status VGPR unchanged, so the zeroing change does not come back.

The new row, Image fetch status (tfe, lwe) (SHADER-1266), comes right after "Typed image loads" and records:

  • where the status VGPR is (vdata[n], with n the data VGPR count, packed two per VGPR under d16), that the translator writes nothing there, and that read_before_write_vgprs still counts it as a destination;
  • not to write 0 there (#98, draft #291), and that with #291 both fixtures fail again (2111);
  • the native evidence (gfx1036 raw dispatch: 48 kernels, 192 lanes, three seeds) and the LLVM SIISelLowering reasoning, from #98 and #892;
  • the GPU fixtures and how they catch any write ((v8 ^ 0x3e8) | (v12 ^ 0x7d0)), and the GPUs and drivers they pass on in #892;
  • the forms that raise Unsupported with tfe/lwe, read from tools/rdna2spirv.py: image_store, a16 gather/sample with offsets, a16 image_get_lod, 3D image_sample_d/_cl, and the d16 3D image_load_mip.

Tested: every tests/test_docs_*.py and tests/test_i18n_index.py passes (the docs-only CI set), and scripts/check_no_game_data.py docs/design.md is clean. Docs only, no game files. AI-assisted.


🔄 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/1067 **Author:** [@syntaxixr](https://github.com/syntaxixr) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/design-tfe-status` --- ### 📝 Commits (1) - [`2981ead`](https://github.com/ubiquitarianism/leonida/commit/2981ead67734a662833a881d32672d9061e9e493) docs/design: contract row for the image fetch status VGPR (tfe/lwe): a resident read leaves it unchanged (SHADER-1266) ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -0) </details> ### 📄 Description Claimed in the coordination issue as: SHADER-1266-DESIGN-ROW (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139494723). This is the follow-up @aslan2142 named when merging #892: a `docs/design.md` contract row saying that a resident `image_load` with `tfe` leaves the status VGPR unchanged, so the zeroing change does not come back. The new row, **Image fetch status (`tfe`, `lwe`) (SHADER-1266)**, comes right after "Typed image loads" and records: - where the status VGPR is (`vdata[n]`, with n the data VGPR count, packed two per VGPR under `d16`), that the translator writes nothing there, and that `read_before_write_vgprs` still counts it as a destination; - not to write 0 there (#98, draft #291), and that with #291 both fixtures fail again (2111); - the native evidence (gfx1036 raw dispatch: 48 kernels, 192 lanes, three seeds) and the LLVM `SIISelLowering` reasoning, from #98 and #892; - the GPU fixtures and how they catch any write (`(v8 ^ 0x3e8) | (v12 ^ 0x7d0)`), and the GPUs and drivers they pass on in #892; - the forms that raise `Unsupported` with `tfe`/`lwe`, read from `tools/rdna2spirv.py`: `image_store`, `a16` gather/sample with offsets, `a16` `image_get_lod`, 3D `image_sample_d`/`_cl`, and the d16 3D `image_load_mip`. Tested: every `tests/test_docs_*.py` and `tests/test_i18n_index.py` passes (the docs-only CI set), and `scripts/check_no_game_data.py docs/design.md` is clean. Docs only, no game files. AI-assisted. --- <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#1104
No description provided.