upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 12:43:47 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 12:43:47 +0100
commit2ea73b2522170a699ae869bd90fa55143922010b (patch)
treef02daad53302eb01e8c18ddaed9e77618ac3e160 /scripts/run_gpu_tests.py
parentbb2e18421dac527374eb837c88b5063c5d96f81f (diff)
GPU test for v_mad_u32_u16, v_mad_i32_i16 and v_subrev_f16
Two pixel tests for ops that had CPU checks only. ps_valu16_mad: the u16 product plus S2 wraps at 32 bits, i16 sign-extends (also op_sel high halves), and the destination dword is overwritten. ps_valu16_subrev: S1 - S0 in _e32 and _e64 (neg, clamp) with the destination high half kept. Registered in check.py and run_gpu_tests.py and added as semantic fixtures with hand constants and a Python reference. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 3098df864..bc587d17b 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -1023,6 +1023,9 @@ def run_suite(a, work: str) -> int:
1023 "ps_vop3_const_mods": (0xC0000000, 0xBF800000, 0x3F800000, 0xAAAABC00), 1023 "ps_vop3_const_mods": (0xC0000000, 0xBF800000, 0x3F800000, 0xAAAABC00),
1024 "ps_interp_f32_mods": (0x3F800000, 0x00000000, 0x3F400000, 0x3F800000), # drawn with vs_interp_consts 1024 "ps_interp_f32_mods": (0x3F800000, 0x00000000, 0x3F400000, 0x3F800000), # drawn with vs_interp_consts
1025 "ps_interp_mov_mods": (0x3F800000, 0x3FC00000, 0x40000000, 0x3F400000), 1025 "ps_interp_mov_mods": (0x3F800000, 0x3FC00000, 0x40000000, 0x3F400000),
1026 # v_mad_u32_u16 / v_mad_i32_i16 and v_subrev_f16, which had CPU checks only (.asm headers)
1027 "ps_valu16_mad": (0x00000002, 0x00030002, 0x00008000, 0x00000004),
1028 "ps_valu16_subrev": (0xAAAABC00, 0xAAAAC000, 0xAAAA3C00, 0x42003800),
1026 } 1029 }
1027 if name in const_wants: 1030 if name in const_wants:
1028 ok, detail = check_pixel_const(raw, const_wants[name]) 1031 ok, detail = check_pixel_const(raw, const_wants[name])