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 17:21:18 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 17:21:18 +0100
commit7d370cdfbca638eb87d7a487d1a6886fbe946e6e (patch)
tree54698a9738a15315d44e6d59d9a2f37f65441bfb /scripts/run_gpu_tests.py
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
Tests: GPU test for the 32-bit integer VOPC compares
ps_vcmp_int32 runs v_cmp_{eq,ne,lt,le,gt,ge,f,t}_{u32,i32} in the e32 and e64 forms with inline constants and literals, on operands where signed and unsigned disagree. Words derived by hand in the .asm header; the same shader is a tests/semantic fixture with a plain-Python reference. AI-assisted.
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 025504fb8..2bb3c636d 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -392,6 +392,10 @@ PIXEL_ENV = {"ps_vcc_x2": {"VKH_SGPRS": "0x1000,0,16,0", "VKH_HEAP": "0x1000=0x1
392 "0x1028=0x1,0x102c=0,0x1030=0x7,0x1034=0x80000000,0x1038=0x7,0x103c=0," 392 "0x1028=0x1,0x102c=0,0x1030=0x7,0x1034=0x80000000,0x1038=0x7,0x103c=0,"
393 "0x1040=0x1,0x1044=0x5,0x1048=0x80000000,0x104c=0x5,0x1050=0x7,0x1054=0x5," 393 "0x1040=0x1,0x1044=0x5,0x1048=0x80000000,0x104c=0x5,0x1050=0x7,0x1054=0x5,"
394 "0x1058=0x7,0x105c=0x5"}, 394 "0x1058=0x7,0x105c=0x5"},
395 # 32-bit integer compares: operands from memory (derivations in the .asm header)
396 "ps_vcmp_int32": {"VKH_SGPRS": "0x1000,0,32,0",
397 "VKH_HEAP": "0x1000=0x1,0x1004=0,0x1008=0x80000000,0x100c=0x12345678,0x1010=0x3,"
398 "0x1014=0x5,0x1018=0,0x101c=0"},
395 # float NaN / fract rows measured on RDNA2 hardware (see the .asm headers) 399 # float NaN / fract rows measured on RDNA2 hardware (see the .asm headers)
396 "ps_fnan_med3": {"VKH_SGPRS": "0x1000,0,32,0", 400 "ps_fnan_med3": {"VKH_SGPRS": "0x1000,0,32,0",
397 "VKH_HEAP": "0x1000=0x7fc10001,0x1004=0x40e00000,0x1008=0x40a00000," 401 "VKH_HEAP": "0x1000=0x7fc10001,0x1004=0x40e00000,0x1008=0x40a00000,"
@@ -1121,6 +1125,7 @@ def run_suite(a, work: str) -> int:
1121 "ps_f32_mods": (0xC0256A01, 0x3F800000, 0x41E00000, 0x3FC00000), 1125 "ps_f32_mods": (0xC0256A01, 0x3F800000, 0x41E00000, 0x3FC00000),
1122 "ps_vcc_x2": (0x11223344, 0x55667788, 0, 0), 1126 "ps_vcc_x2": (0x11223344, 0x55667788, 0, 0),
1123 "ps_vcmpx_forms": (0xF05B2A48, 0xF05E8A12, 0xB174BE18, 0x15550000), # 14 v_cmpx forms (.asm header) 1127 "ps_vcmpx_forms": (0xF05B2A48, 0xF05E8A12, 0xB174BE18, 0x15550000), # 14 v_cmpx forms (.asm header)
1128 "ps_vcmp_int32": (0x963E52E8, 0x984DCEE8, 0xB9458EE8, 0xB73612E8), # u32/i32 compares (.asm header)
1124 "ps_med3_mods": (0x3F800000, 0x40400000, 0x40C00000, 0x3F400000), 1129 "ps_med3_mods": (0x3F800000, 0x40400000, 0x40C00000, 0x3F400000),
1125 "ps_scc_minmax": (0x00030205, 0x00030207, 0x00030209, 0x00030203), 1130 "ps_scc_minmax": (0x00030205, 0x00030207, 0x00030209, 0x00030203),
1126 "ps_scc_logic32": (0x0fff0fff, 0x000f000f, 0xf00ff00f, 0x36), 1131 "ps_scc_logic32": (0x0fff0fff, 0x000f000f, 0xf00ff00f, 0x36),