Files
mandy/runtime/test/shaders/ps_uniform_branch.asm
NotRexed bd2dd1c874 Translator: compute shaders, LDS, wave-uniform branches, typed image stores; all VS/PS failure groups
- Compute: FSSM word 0x138 is COMPUTE_PGM_RSRC2 (user SGPRs, workgroup-id enables, thread-id VGPRs,
  LDS size), 0x13C..0x144 the group size; checked against 2,689 CS. GPU-checked with vk_compute_test.
- LDS as a Workgroup array (reads/writes/read2/write2/st64/sub-dword/atomics/cmpst), ds_bpermute,
  s_barrier as a workgroup control barrier.
- s_cbranch_vccz/vccnz/execz/execnz decided wave-wide (OpGroupNonUniformAny); v_cmp writes 0 for
  inactive lanes. GPU-checked.
- image_store for 2D/2D array/3D with float/uint/sint views picked from the T# FORMAT at run time.
- Raw barycentric reads via BaryCoordKHR (321 PS), POPS via fragment-shader interlock, image_sample_o
  offsets, fma_f16 op_sel, 64-bit v_cmpx, vcc_lo scalar loads, s_addk to specials, undeclared vertex
  components, normalized-encoding re-anchoring, array image_get_lod/gather4_lz, image_sample_l LOD on
  arrays (was reading the layer).
- Duplicate vector/pointer type declarations merged; vk_harness enables barycentrics/interlock/maintenance8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:59:41 -05:00

11 lines
396 B
NASM

; Wave-uniform s_cbranch_vccz: lanes with i > 0.27 set VCC; a wave with any set lane runs the scalar add for
; all its lanes. Expected: bit=1 pixels export s5 = 8; some bit=0 pixels (same wave) also 8; the rest 7.
v_cmp_lt_f32 vcc_lo, 0x3e8a3d71, v0
s_mov_b32 s5, 7
s_cbranch_vccz 1
s_add_u32 s5, s5, 1
v_mov_b32 v3, s5
v_cndmask_b32_e64 v4, 0, 1, vcc_lo
exp mrt0 v3, v4, v0, v0 done vm
s_endpgm