[PR #1309] [MERGED] test(shader): restrict wide LDS fixture to lane zero (TEST-LDS-WIDE-GPUAV) #1339

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1309
Author: @BadgersMC
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD

Base: main ← Head: fix/lds-wide-fixture


📝 Commits (1)

  • 32c0b4e test(shader): restrict wide LDS fixture to lane zero

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 runtime/test/shaders/cs_w32_lds_wide.asm (+2 -2)
📝 tests/semantic/fixtures/disasm/cs_w32_lds_wide.s (+1 -1)

📄 Description

Claimed in the coordination issue as TEST-LDS-WIDE-GPUAV.

What and why

The wide LDS fixture let all lanes write the same shared addresses. The output words matched, but Vulkan GPU-assisted validation reported six shared-memory races. Move the existing lane-zero EXEC mask before the first LDS write and mirror the instruction move in the checked-in disassembly. This preserves the eight expected words, including the zero sentinel immediately after the b96 write.

Tested

  • At baseline 5237898a, GPU-assisted validation reported six races with zero output mismatches. The patched fixture passed with zero validation errors and the same eight words. Both translated and passed spirv-val.
  • The handwritten shader rebuilt with LLVM 23.1.5 and produced byte-identical SPIR-V to the checked-in disassembly. The GPU test also passed with wave64 emulation disabled. The GPU-assisted tests used SPIRV-Tools v2026.4 and Khronos validation layer 1.4.369.
  • The full translator regression suite passed all 6,177 tests across 471 files. All four tests in test_lds_subdword_wide.py also passed in the focused run.
  • The no-game-data check and git diff --check passed.

GPUs tested: NVIDIA RTX 3060 Ti, driver 610.88, Windows 11. The test inputs are hand-written fixtures.

AI-assisted: yes.

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.

🔄 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/1309 **Author:** [@BadgersMC](https://github.com/BadgersMC) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `fix/lds-wide-fixture` --- ### 📝 Commits (1) - [`32c0b4e`](https://github.com/ubiquitarianism/leonida/commit/32c0b4e0205581298590b2f0ab3614faff9c4881) test(shader): restrict wide LDS fixture to lane zero ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/cs_w32_lds_wide.asm` (+2 -2) 📝 `tests/semantic/fixtures/disasm/cs_w32_lds_wide.s` (+1 -1) </details> ### 📄 Description Claimed in the coordination issue as [TEST-LDS-WIDE-GPUAV](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133128497). ### What and why The wide LDS fixture let all lanes write the same shared addresses. The output words matched, but Vulkan GPU-assisted validation reported six shared-memory races. Move the existing lane-zero EXEC mask before the first LDS write and mirror the instruction move in the checked-in disassembly. This preserves the eight expected words, including the zero sentinel immediately after the b96 write. ### Tested - At baseline `5237898a`, GPU-assisted validation reported six races with zero output mismatches. The patched fixture passed with zero validation errors and the same eight words. Both translated and passed `spirv-val`. - The handwritten shader rebuilt with LLVM 23.1.5 and produced byte-identical SPIR-V to the checked-in disassembly. The GPU test also passed with wave64 emulation disabled. The GPU-assisted tests used SPIRV-Tools v2026.4 and Khronos validation layer 1.4.369. - The full translator regression suite passed all 6,177 tests across 471 files. All four tests in `test_lds_subdword_wide.py` also passed in the focused run. - The no-game-data check and `git diff --check` passed. GPUs tested: NVIDIA RTX 3060 Ti, driver 610.88, Windows 11. The test inputs are hand-written fixtures. AI-assisted: yes. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:54 +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#1339
No description provided.