[PR #1518] cs_imgatomic_ext: use the volume T# key vk_store_test now expects (GPU-IMG-ATOMIC-EXT-VOLUME-TAG) #1546

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1518
Author: @PierreEbele
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: imgatomic-ext-volume-tag


📝 Commits (1)

  • 7bcb5ba cs_imgatomic_ext: use the volume T# key vk_store_test now expects (GPU-IMG-ATOMIC-EXT-VOLUME-TAG)

📊 Changes

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

View changed files

📝 runtime/test/shaders/cs_imgatomic_ext.asm (+2 -2)

📄 Description

cs_imgatomic_ext fails on main (f7838564) on every device:

FAIL  cs_imgatomic_ext      6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101

db19bbd3 gave the 4x4x4 volume in runtime/test/vk_store_test.cpp the D3D12 layer's whole-mip UAV tag (word 4 0x80000055, word 7 0xd7801800) and updated cs_imgatomic3d.asm to match. cs_imgatomic_ext.asm (#345) landed separately and still built the old 0x55 words in s12/s15. Its six 3D cases (swap/inc/dec/fmin/fmax/fcmpswap with glc, sint words 32..37) therefore missed the descriptor-table entry: the data registers kept their inputs and the volume was never touched.

This PR changes only those two s_mov_b32 lines, the same edit db19bbd3 made to cs_imgatomic3d.asm.

Tested on Mesa llvmpipe, Linux arm64. I ran python3 -I scripts/run_gpu_tests.py --build runtime/build/linux --filter cs_imgatomic natively, with LEONIDA_W64_EMULATE=1 and with LEONIDA_BARY_FALLBACK=1:

  • this branch: 3/3 passed in all three modes (cs_imgatomic, cs_imgatomic3d, cs_imgatomic_ext: all 64 words exact);
  • main's fixture: cs_imgatomic_ext fails as above (the full suite fails the same way in all three modes); the other two pass.

scripts/check_no_game_data.py is clean on the changed file.

Claimed in the coordination issue as: GPU-IMG-ATOMIC-EXT-VOLUME-TAG

AI-assisted.

🤖 Generated with Claude Code


🔄 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/1518 **Author:** [@PierreEbele](https://github.com/PierreEbele) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `imgatomic-ext-volume-tag` --- ### 📝 Commits (1) - [`7bcb5ba`](https://github.com/ubiquitarianism/leonida/commit/7bcb5ba529ae11e211fde82a652171b57e05328e) cs_imgatomic_ext: use the volume T# key vk_store_test now expects (GPU-IMG-ATOMIC-EXT-VOLUME-TAG) ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/cs_imgatomic_ext.asm` (+2 -2) </details> ### 📄 Description `cs_imgatomic_ext` fails on main (f7838564) on every device: ``` FAIL cs_imgatomic_ext 6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101 ``` db19bbd3 gave the 4x4x4 volume in `runtime/test/vk_store_test.cpp` the D3D12 layer's whole-mip UAV tag (word 4 `0x80000055`, word 7 `0xd7801800`) and updated `cs_imgatomic3d.asm` to match. `cs_imgatomic_ext.asm` (#345) landed separately and still built the old `0x55` words in s12/s15. Its six 3D cases (swap/inc/dec/fmin/fmax/fcmpswap with glc, sint words 32..37) therefore missed the descriptor-table entry: the data registers kept their inputs and the volume was never touched. This PR changes only those two `s_mov_b32` lines, the same edit db19bbd3 made to `cs_imgatomic3d.asm`. Tested on Mesa llvmpipe, Linux arm64. I ran `python3 -I scripts/run_gpu_tests.py --build runtime/build/linux --filter cs_imgatomic` natively, with `LEONIDA_W64_EMULATE=1` and with `LEONIDA_BARY_FALLBACK=1`: - this branch: 3/3 passed in all three modes (`cs_imgatomic`, `cs_imgatomic3d`, `cs_imgatomic_ext`: all 64 words exact); - main's fixture: `cs_imgatomic_ext` fails as above (the full suite fails the same way in all three modes); the other two pass. `scripts/check_no_game_data.py` is clean on the changed file. Claimed in the coordination issue as: GPU-IMG-ATOMIC-EXT-VOLUME-TAG AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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#1546
No description provided.