mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #966] rdna2spirv: keep DATA0 for equal paired LDS write offsets (SHADER-LDS-EQUAL-WRITES) #1003
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#1003
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/966
Author: @akimfomin
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:portbridge/paired-lds-data0📝 Commits (1)
9ae6f12rdna2spirv: keep DATA0 for equal paired LDS write offsets📊 Changes
4 files changed (+85 additions, -8 deletions)
View changed files
📝
docs/design.md(+1 -1)➕
tests/semantic/fixtures/lds_write2_equal_offsets.asm(+32 -0)➕
tests/semantic/test_lds_write2_equal_offsets.py(+39 -0)📝
tools/rdna2spirv.py(+13 -7)📄 Description
Claimed in the coordination issue as: SHADER-LDS-EQUAL-WRITES
What and why
For compute-shader
ds_write2andds_write2st64(b32 and b64), equal offsets now emit only the DATA0 store. Both operands are still validated. Distinct offsets store both values, and paired reads are unchanged. AMD RDNA 2 ISA §10.4.3, printed p. 96PortBridge linked THE-PRO-GAME’s finding in VIctory #1088 to the same lowering here. The XCL result uses the same rule.
Tested
a2892784: the hand-written fixture returned DATA1 in all five equal-offset cases, including the implicit zero-offset case. Existing paired read/write controls passed.9ae6f12, all 379 LDS semantic tests passed without skips, including the five address cases and three malformed-operand controls. The no-game-data guard passed.LLVM_MCpath issue. All nine tests in that file passed after normalizing the path. The final head was retested with the LDS suite and Vulkan fixture.GPUs tested: NVIDIA RTX 4070 Ti SUPER, driver 617.14, Windows 11 build 28000. All inputs are synthetic. AMD, retail inputs and the separate legacy geometry path were outside this check.
AI-assisted: yes, Codex assisted implementation and ran the checks.
Checklist
main(a2892784for the baseline comparison). GitHub reports a clean merge with currentmain.docs/design.mdcontract row.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.