upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorcxchhh <35392417+cxchhh@users.noreply.github.com>2026-11-22 09:41:50 +0000
committercxchhh <35392417+cxchhh@users.noreply.github.com>2026-11-22 09:41:50 +0000
commit8c4e3832d92ee7451f5b5337b47ace8e2f6daacb (patch)
tree9ce59dc034f611beee8cece8c92eb532fd0a1b2b /runtime/src/thread_stacks.cpp
parente7584c5207e44ed51472e6aa05c781f39ea975f6 (diff)
GPU fixtures for the CPU-only nlg, cvt_off, output-modifier and constant-modifier rules (TEST-175)
docs/design.md marked four translator rules "not GPU-verified": v_cmp(x)_nlg, v_cvt_off_f32_i4, the VOP3 output modifiers on v_fmac_f16 and v_interp_p2/mov_f32, and VOP3 FP modifiers on constants. This adds one pixel fixture per rule group, each writing four constant mrt0 words derived in its header: ps_cmp_nlg, ps_cvt_off, ps_fmac_f16_mods, ps_vop3_const_mods, ps_interp_f32_mods and ps_interp_mov_mods. The two interp fixtures are drawn with a new vertex shader, vs_interp_consts, whose params are constant over the triangle. Every word is a normal float or zero, so the R32G32B32A32_SFLOAT target can't change it. All six are wired into check.py and run_gpu_tests.py. tests/semantic/test_rule_gpu_fixtures.py checks that the interpreter, both runners and the headers agree. run_gpu_tests.py now skips only ps_interp_f16_high under --bary-fallback, as check.py does, rather than every PIXEL_VERTEX fixture. On a Tesla V100 (NVIDIA 580.95.05, Linux), all six write their words on 4096 of 4096 pixels, natively and with LEONIDA_W64_EMULATE=1 LEONIDA_BARY_FALLBACK=1. docs/design.md now cites them. The integer clamp row stays with quackottu's part of TEST-175, and the denormal-flush row still needs an RDNA1/2 part. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions