mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1334] [CLOSED] rdna2spirv: zero the tfe/lwe status VGPR on image_load and image_load_mip (OLD-10022) #1364
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#1364
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/1334
Author: @ambroseautomation
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:carry/old-10022-image-load-tfe-zero📝 Commits (1)
c778ef9rdna2spirv: zero the tfe/lwe status VGPR on image_load and image_load_mip📊 Changes
3 files changed (+113 additions, -10 deletions)
View changed files
📝
docs/design.md(+1 -1)➕
tests/semantic/test_image_load_tfe.py(+95 -0)📝
tools/rdna2spirv.py(+17 -9)📄 Description
Summary
Coordination item:
OLD-10022(carry-forward ofold-pr/10022, preserving original authorNikita Romanovich).Problem & Root Cause
On RDNA2,
image_loadandimage_load_mipwithtfeorlwewrite a trailing status VGPRvdata[data_vgprs](wheredata_vgprs = (popcount(dmask) + 1) // 2underd16, elsepopcount(dmask)) with0on resident accesses for active lanes while preserving inactive lanes. Previouslytools/rdna2spirv.pydid not zero that trailing status VGPR, leaving stale values in the status register.Implementation
tools/rdna2spirv.pyto write0to the trailingtfe/lwestatus VGPR onimage_loadandimage_load_mip(respectingd16packed register count and activeEXEClanes).Typed image loadsrow indocs/design.md.tests/semantic/test_image_load_tfe.pycoveringtfe,lwe, coherent/mip loads, andd16packed offset calculation.Tests Run
Environment: Windows 11 Pro 64-bit, Python 3.12.10, synthetic fixtures only (no game data).
python -I -m py_compile tools/rdna2spirv.py tests/semantic/test_image_load_tfe.py— PASSpython tests/semantic/test_image_load_tfe.py -v— 3/3 PASSpytest tests/test_docs_links.py -v— 16/16 PASSpython -I scripts/run_semantic_tests.py tests/semantic— 472 files, 6,180 tests, 0 files failed (519 s, 16 jobs)python -I scripts/check_no_game_data.py docs/design.md tests/semantic/test_image_load_tfe.py tools/rdna2spirv.py— PASSDisclosure
AI-assisted: yes (carry-forward, rebase onto current
main, and full semantic suite verification; original implementation by Nikita Romanovich).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.