upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/code_hooks_test.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-29 08:55:32 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-29 09:25:40 -0500
commitcd5ee1107944b5f30dd4d4b3b8c7475a61ab2894 (patch)
treec06d5dafee66d3c2573e6d803b0d65b291507476 /runtime/test/code_hooks_test.cpp
parent091bfa8d4d7fea6620dd40c9e3f23ce18c5bc344 (diff)
rdna2spirv(r9b): unconditional CS/MS LDS bounds, PS EarlyFragmentTests, mesh epilogue & PS quad swizzle
Round 9b translator fixes for rendering correctness and Mandy d3d12/ parity: 1. Unconditional CS & MS LDS OOB bounds (Mandy 21633b328 parity): - Record g.lds_declared from PSV0.shared for MS and RSRC2.LDS_SIZE for CS. - Whenever g.lds_declared > 0 (opt-out --no-lds-bounds), set g.lds_dwords = g.lds_bound = min(g.lds_declared, 16384) so every LDS read, write, sub-dword, wide, and atomic op goes through lds_access() (OOB reads return 0, OOB writes/atomics dropped instead of wrapping). 2. PS DB_SHADER_CONTROL bit 12 EarlyFragmentTests (Mandy f33940415/bf479a3cd): - Add fssm_header.db_shader_control() reading u32 at E + 0x138 (0x24C for rec = 0xB0; 3,023/12,101 corpus PS have bit 12 DEPTH_BEFORE_SHADER set). - Emit OpExecutionMode %main EarlyFragmentTests (opt-out --no-early-depth) and record early_depth in shader_meta when bit 12 is set and the PS does not export depth/stencil (no exp mrtz, DB_SHADER_CONTROL & 0x7 == 0, no OSG1 SV_Depth*/SV_StencilRef). 3. Defensive mesh epilogue & PS helper-lane quad swizzle: - MeshEXT and --mesh-compute epilogues explicitly write CullPrimitiveEXT = true (1) and (0, 0, 0) when %mli < %msp and !%ms_has_prim. - Lower quad-local ds_swizzle_b32 in PS via OpGroupNonUniformQuadBroadcast / OpGroupNonUniformQuadSwap (GroupNonUniformQuad capability) so Vulkan 2x2 helper invocations participate on AMD RADV while EXEC-masked lanes still read 0. Verified: compileall, check_no_game_data.py, 6,674/6,674 semantic tests (0 failures), 200/200 corpus slice (200/200 spirv-val), plus targeted LDS MS (5/5), LDS CS (60/60), early-depth PS (120/120), and PS quad-swizzle (50/50) corpus slices (100% spirv-val). AI-assisted.
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions