mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 23:38:37 +00:00
- Mesh shaders -> VK_EXT_mesh_shader: PSV0 limits/topology/group size, v5 = workgroup index, s3 = wave id << 24, NGG exports staged per thread and written after OpSetMeshOutputsEXT (GS_ALLOC_REQ counts). GPU-checked (VKH_MESH mode in vk_harness). - Geometry shaders ($GS_VoxelizeGeneric): LDS-ring inputs/outputs mapped to gl_in / staged slots, EMIT/CUT -> OpEmitVertex/OpEndPrimitive. GPU-checked (VKH_GS mode). - SCC is now set by s_and/or/xor/andn2/orn2/nand/nor/xnor/lshl/lshr_b32 (result != 0), s_add/sub_i32 and s_addk_i32 (signed overflow), s_min/max_u32; it was left stale before. GPU-checked. - buffer_store_format(_d16) encodes every table format (sub-dword elements via atomics); it silently stored nothing for most formats before. GPU-checked with vk_compute_test. - Far branches folded; d16 buffer loads; gather4_l(_o) emulation; gather offsets; 1D/a16 image stores; BITMASK_PERM swizzles; f64 add/convert; i24 mul/mad, alignbyte, xnor, ffbh_i32, swap, s_abs, s_bfm, 64-bit ordered/cmpx compares, 16-bit compares, 8/16-bit global loads, neg() operands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
541 B
NASM
23 lines
541 B
NASM
; SCC from s_and_b32 (zero -> 0), s_add_i32 (signed overflow -> 1), s_max_u32 (S0 > S1 -> 1), each followed by a branch.
|
|
; Expected mrt0 bits: 1, 1, 3, 0x80000000
|
|
s_mov_b32 s0, 0x80
|
|
s_and_b32 s1, s0, 0x7f
|
|
s_mov_b32 s2, 1
|
|
s_cbranch_scc0 1
|
|
s_mov_b32 s2, 2
|
|
s_mov_b32 s7, 0x7fffffff
|
|
s_add_i32 s3, s7, 1
|
|
s_mov_b32 s4, 1
|
|
s_cbranch_scc1 1
|
|
s_mov_b32 s4, 2
|
|
s_max_u32 s5, 5, 3
|
|
s_mov_b32 s6, 1
|
|
s_cbranch_scc0 1
|
|
s_mov_b32 s6, 3
|
|
v_mov_b32_e32 v0, s2
|
|
v_mov_b32_e32 v1, s4
|
|
v_mov_b32_e32 v2, s6
|
|
v_mov_b32_e32 v3, s3
|
|
exp mrt0 v0, v1, v2, v3 done vm
|
|
s_endpgm
|