diff options
| author | Dandasma <dandasma@users.noreply.github.com> | 2026-11-22 18:17:59 +0100 |
|---|---|---|
| committer | Dandasma <dandasma@users.noreply.github.com> | 2026-11-22 23:18:01 +0100 |
| commit | ed91cd250a4cb2565055fcacfd4d4b14dbd8a65e (patch) | |
| tree | 3d992dc60cb0993bf272bef9386ef919e494cec8 /scripts/run_gpu_tests.py | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
Tests: GPU checks for v_med3_f32/f16 with a NaN in S2 or in two operands
ps_fnan_med3 puts its NaN in S0 only, so no GPU test reached the cases
ps_fnan_med3_s2 (f32) and ps_f16_fnan_med3 (f16), with inputs read from
memory at run time and words derived from the measured rule in
docs/design.md (with any NaN operand, med3 is min3 with the NaNs
ignored). The all-NaN case is left out: its payload is not modelled.
Registered in check.py and run_gpu_tests.py; the semantic fixtures and
GpuFixtures tests run them through the interpreter, where the
translator before #2029 fails them (undefined FClamp on a NaN).
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.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 94de20f26..520409290 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -416,6 +416,10 @@ PIXEL_ENV = {"ps_vcc_x2": {"VKH_SGPRS": "0x1000,0,16,0", "VKH_HEAP": "0x1000=0x1 | |||
| 416 | "0x100c=0x7fc10001,0x1010=0x40600000,0x1014=0xc0200000"}, | 416 | "0x100c=0x7fc10001,0x1010=0x40600000,0x1014=0xc0200000"}, |
| 417 | "ps_fnan_fract": {"VKH_SGPRS": "0x1000,0,16,0", | 417 | "ps_fnan_fract": {"VKH_SGPRS": "0x1000,0,16,0", |
| 418 | "VKH_HEAP": "0x1000=0xaedbe6ff,0x1004=0x00008800,0x1008=0x7fc10001,0x100c=0xc0200000"}, | 418 | "VKH_HEAP": "0x1000=0xaedbe6ff,0x1004=0x00008800,0x1008=0x7fc10001,0x100c=0xc0200000"}, |
| 419 | "ps_fnan_med3_s2": {"VKH_SGPRS": "0x1000,0,16,0", | ||
| 420 | "VKH_HEAP": "0x1000=0x40a00000,0x1004=0x40e00000,0x1008=0x7fc10001,0x100c=0xc0200000"}, | ||
| 421 | "ps_f16_fnan_med3": {"VKH_SGPRS": "0x1000,0,16,0", | ||
| 422 | "VKH_HEAP": "0x1000=0x00004500,0x1004=0x00004700,0x1008=0x00007e01,0x100c=0x0000c100"}, | ||
| 419 | # f32 VOPC with a NaN, 64-bit integer VOPC: inputs from memory (derivations in the .asm headers) | 423 | # f32 VOPC with a NaN, 64-bit integer VOPC: inputs from memory (derivations in the .asm headers) |
| 420 | "ps_vcmp_f32_nan": {"VKH_SGPRS": "0x1000,0,16,0", | 424 | "ps_vcmp_f32_nan": {"VKH_SGPRS": "0x1000,0,16,0", |
| 421 | "VKH_HEAP": "0x1000=0x7fc10001,0x1004=0x3f800000,0x1008=0x40000000"}, | 425 | "VKH_HEAP": "0x1000=0x7fc10001,0x1004=0x3f800000,0x1008=0x40000000"}, |
| @@ -1229,6 +1233,9 @@ def run_suite(a, work: str) -> int: | |||
| 1229 | "ps_sff_imm": (2, 1, 20, 16), # SHADER-46: s_ff0/s_ff1 of an immediate | 1233 | "ps_sff_imm": (2, 1, 20, 16), # SHADER-46: s_ff0/s_ff1 of an immediate |
| 1230 | "ps_fnan_med3": (0x40A00000, 0xC0200000, 0xC0200000, 0x40600000), # measured on RDNA2 hardware | 1234 | "ps_fnan_med3": (0x40A00000, 0xC0200000, 0xC0200000, 0x40600000), # measured on RDNA2 hardware |
| 1231 | "ps_fnan_fract": (0x3F7FFFFF, 0x00003BFF, 0xC0200000, 0xC0200000), | 1235 | "ps_fnan_fract": (0x3F7FFFFF, 0x00003BFF, 0xC0200000, 0xC0200000), |
| 1236 | # v_med3 with a NaN in S2 or in two operands, by the same measured rule (derivations in the .asm headers) | ||
| 1237 | "ps_fnan_med3_s2": (0x40A00000, 0x40A00000, 0xC0200000, 0x40E00000), | ||
| 1238 | "ps_f16_fnan_med3": (0xAAAA4500, 0xAAAA4500, 0xAAAAC100, 0xAAAA4700), | ||
| 1232 | # TEST-175: docs/design.md rules that were checked on the CPU only (derivations in the .asm headers) | 1239 | # TEST-175: docs/design.md rules that were checked on the CPU only (derivations in the .asm headers) |
| 1233 | "ps_cmp_nlg": (0x40000037, 0x40000007, 0x40000001, 0x3F800000), | 1240 | "ps_cmp_nlg": (0x40000037, 0x40000007, 0x40000001, 0x3F800000), |
| 1234 | "ps_vcmp_f16": (0x48A12080, 0x4CE9B1A2, 0x4BA72C98, 0x4FEFBDBA), # 16-bit float v_cmp e32 (.asm header) | 1241 | "ps_vcmp_f16": (0x48A12080, 0x4CE9B1A2, 0x4BA72C98, 0x4FEFBDBA), # 16-bit float v_cmp e32 (.asm header) |