mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1026] [CLOSED] TEST-LDS-CMPST-WAIT: wait for the last LDS read in cs_lds_b64_cmpst #1063
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#1063
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/1026
Author: @yawn-animals
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:test-lds-cmpst-wait📝 Commits (1)
40a2b1cTEST-LDS-CMPST-WAIT: wait for the last LDS read in cs_lds_b64_cmpst📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
runtime/test/shaders/cs_lds_b64_cmpst.asm(+1 -0)📄 Description
Claimed in the coordination issue as: TEST-LDS-CMPST-WAIT (claim).
What and why
runtime/test/shaders/cs_lds_b64_cmpst.asmreadsv11withds_read_b32and uses it in the very next instruction,v_xor_b32_e32 v16, v10, v11, with nos_waitcnt lgkmcnt(0)in between.v_xorreadsv11before the LDS load returns, using the stale value from theds_write2st64_b64block. Word 7 becomes0x2468ABCD ^ 0x22220002 = 0x064AABCFinstead of0x3579BADC.This adds the one missing wait. The expected output and the translator are unchanged. A scan of the fixture found no other LDS read result used before a wait.
Tested
RX 6800 XT (gfx1030), Arch Linux, kernel 7.3.4, Mesa 26.3.1. This repository's
mainisfce586c. The fixture blob is0998d857before and400ff65cafter, identical to LeonidaReforge's before and after (LeonidaReforge/Leonida#166).main)tools/hw_oracle(Linux DRM launcher), the fixture body as a raw kernel*0x064aabcf, DIFF0x3579badc, MATCH (all 8 words)scripts/run_gpu_tests.py --filter cs_lds_b64_cmpst --require-passon RADV… 0xbbbb000b 0x3579badc* The only change for the raw-kernel ABI is the output store:
buffer_store_dword … s[0:3] … offenis respelled asglobal_store_dword … s[2:3].python -I tests/test_shader_checks.pyOK. The kernel log shows 0 ring timeouts and 0 page faults.AI-assisted. Synthetic fixture only.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.