upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorCody Smith <cody@protopt.com>2026-11-23 22:34:01 -0800
committerCody Smith <cody@protopt.com>2026-11-23 22:34:02 -0800
commitd4eacf7d056d7cf928f1c67ee38fb2b76ce612ac (patch)
treef5aeccf8a806a18c3a27a1d7128e3be9d671860b /runtime
parenta960c06fd21e3d67d074fca8c70b99e1d6545bd7 (diff)
Restrict LDS byte-read fixture accesses to lane zero
Diffstat (limited to 'runtime')
-rw-r--r--runtime/test/shaders/cs_w32_lds_u8_d16.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/test/shaders/cs_w32_lds_u8_d16.asm b/runtime/test/shaders/cs_w32_lds_u8_d16.asm
index 70ba5568e..318dd0109 100644
--- a/runtime/test/shaders/cs_w32_lds_u8_d16.asm
+++ b/runtime/test/shaders/cs_w32_lds_u8_d16.asm
@@ -13,6 +13,8 @@
13; Run: vk_compute_test cs_w32_lds_u8_d16.spv 1 dump 13; Run: vk_compute_test cs_w32_lds_u8_d16.spv 1 dump
14; -> out[0..7] = 0xBEEF00FF 0x00FF1234 0xBEEFFF80 0xFF801234 0xBEEF007F 0x007F1234 0xBEEF0080 0xFFFF1234 14; -> out[0..7] = 0xBEEF00FF 0x00FF1234 0xBEEFFF80 0xFF801234 0xBEEF007F 0x007F1234 0xBEEF0080 0xFFFF1234
15; mattr: +wavefrontsize32,-wavefrontsize64 15; mattr: +wavefrontsize32,-wavefrontsize64
16; Only lane 0 accesses LDS and writes output; identical writes from all lanes would still race.
17v_cmpx_eq_u32_e32 0, v0
16v_mov_b32_e32 v2, 0 18v_mov_b32_e32 v2, 0
17v_mov_b32_e32 v3, 0x7f80ff01 19v_mov_b32_e32 v3, 0x7f80ff01
18ds_write_b32 v2, v3 20ds_write_b32 v2, v3
@@ -36,7 +38,6 @@ ds_read_u8_d16 v16, v1 offset:2
36v_mov_b32_e32 v1, 1 38v_mov_b32_e32 v1, 1
37ds_read_i8_d16_hi v17, v1 39ds_read_i8_d16_hi v17, v1
38s_waitcnt lgkmcnt(0) 40s_waitcnt lgkmcnt(0)
39v_cmpx_eq_u32_e32 0, v0
40v_mov_b32_e32 v21, 0 41v_mov_b32_e32 v21, 0
41buffer_store_dword v10, v21, s[0:3], 0 offen 42buffer_store_dword v10, v21, s[0:3], 0 offen
42v_mov_b32_e32 v21, 4 43v_mov_b32_e32 v21, 4