Files
mandy/runtime/test/shaders/vs_ids.asm
Mulkku 987e8471ee Fix RDNA2 wave masks and flat inputs
Preserve whole-wave mask operations, saved EXEC values and flat
pixel inputs when generating SPIR-V. Keep a dispatch-loop fallback
alongside structured control flow and share the descriptor probe.

Add reproducible GPU fixtures for these cases and exercise the
control-flow and mask analyses in CI.
2026-11-21 16:56:54 +02:00

18 lines
639 B
NASM

; Vertex shader for the pixel tests that need more than one input: a full-screen triangle from the vertex index
; (v0), param0 = (u, v, 0, 1) with u and v running 0..2 over the triangle (0..1 over the image), and
; param1 = the integer 0x101 + vertex index in all four components, as raw bits.
v_lshlrev_b32_e32 v1, 1, v0
v_and_b32_e32 v1, 2, v1
v_and_b32_e32 v2, 2, v0
v_cvt_f32_u32_e32 v1, v1
v_cvt_f32_u32_e32 v2, v2
v_fma_f32 v3, v1, 2.0, -1.0
v_fma_f32 v4, v2, 2.0, -1.0
v_mov_b32_e32 v5, 0
v_mov_b32_e32 v6, 1.0
exp pos0 v3, v4, v5, v6 done
exp param0 v1, v2, v5, v6
v_add_nc_u32_e32 v7, 0x101, v0
exp param1 v7, v7, v7, v7
s_endpgm