mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #282] fix(rdna2spirv): order image_sample, image_gather4, image_bvh and ignore ds_nop in --wave64-emulate #334
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#334
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/282
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10011📝 Commits (1)
1826e88fix(rdna2spirv): order image_sample, image_gather4, image_bvh and ignore ds_nop in --wave64-emulate📊 Changes
3 files changed (+80 additions, -5 deletions)
View changed files
📝
tests/semantic/test_w64x_scalar_load_order.py(+75 -0)📝
tools/rdna2spirv.py(+4 -4)📝
tools/wave64_emulate_opt.py(+1 -1)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Summary
Fixes two memory-ordering gaps in
--wave64-emulate(tools/rdna2spirv.pyand its mirrortools/wave64_emulate_opt.py):image_sample*,image_gather4*, andimage_bvh*as"mem"reads: BothGen.x_memory_order()(tools/rdna2spirv.py:5717) and_x_memory_order_access()(tools/wave64_emulate_opt.py:777) trackedimage_load,image_store, andimage_atomic, but omittedimage_sample,image_gather4, andimage_bvh. Under--wave64-emulate, animage_store/buffer_storefollowed byimage_sample*/image_gather4*/image_bvh*(or vice versa) stayed in the same round without a barrier between the two 32-lane halves.ds_nopparity: Adds"ds_nop"toGen.x_memory_order()'s ignore tuple (tools/rdna2spirv.py:5713), matching_x_memory_order_access()(tools/wave64_emulate_opt.py:773) sods_nopno longer marks LDS read+write dirty.Testing
image_store -> image_sample_lz), WAR (image_sample_lz -> image_store), and mirror-parity (image_sample*,image_gather4*,image_bvh*,ds_nop) tests intests/semantic/test_w64x_scalar_load_order.py. Before the fix, bothimage_storeandimage_sample_lzlanded in the same round (%blk0) with no separating barrier and_x_memory_order_access("image_sample")returnedNone.-W default -W error::ResourceWarning):python -I -W default -W error::ResourceWarning tests/semantic/test_w64x_scalar_load_order.py: 8/8 OKpython -I -W default -W error::ResourceWarning tests/semantic/test_wave64_emulate_opt.py: 30/30 OKspirv-as --target-env vulkan1.2+spirv-val --target-env vulkan1.2(0 errors).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.