diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:09:39 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:09:39 -0500 |
| commit | 94a6cba5e7f913c4ae6bd5b8ac4786d962340977 (patch) | |
| tree | 0a19deae6e22d00e4baf9c4527db0811c3bdb8b6 /scripts/run_gpu_tests.py | |
| parent | 45ffc82680783008935390ad37b22571ce611aa2 (diff) | |
| parent | 676c6abae3ca07ca1d3498c26bb12b4e90e21c3e (diff) | |
Merge pull request #1299 from Vonsek
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 7ed073707..5ecd373b5 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -420,7 +420,14 @@ PIXEL_ENV = {"ps_vcc_x2": {"VKH_SGPRS": "0x1000,0,16,0", "VKH_HEAP": "0x1000=0x1 | |||
| 420 | "VKH_HEAP": "0x1000=0x7fc10001,0x1004=0x40e00000,0x1008=0x40a00000," | 420 | "VKH_HEAP": "0x1000=0x7fc10001,0x1004=0x40e00000,0x1008=0x40a00000," |
| 421 | "0x100c=0x7fc10001,0x1010=0x40600000,0x1014=0xc0200000"}, | 421 | "0x100c=0x7fc10001,0x1010=0x40600000,0x1014=0xc0200000"}, |
| 422 | "ps_fnan_fract": {"VKH_SGPRS": "0x1000,0,16,0", | 422 | "ps_fnan_fract": {"VKH_SGPRS": "0x1000,0,16,0", |
| 423 | "VKH_HEAP": "0x1000=0xaedbe6ff,0x1004=0x00008800,0x1008=0x7fc10001,0x100c=0xc0200000"}} | 423 | "VKH_HEAP": "0x1000=0xaedbe6ff,0x1004=0x00008800,0x1008=0x7fc10001,0x100c=0xc0200000"}, |
| 424 | # f32 VOPC with a NaN, 64-bit integer VOPC: inputs from memory (derivations in the .asm headers) | ||
| 425 | "ps_vcmp_f32_nan": {"VKH_SGPRS": "0x1000,0,16,0", | ||
| 426 | "VKH_HEAP": "0x1000=0x7fc10001,0x1004=0x3f800000,0x1008=0x40000000"}, | ||
| 427 | "ps_vcmp_64": {"VKH_SGPRS": "0x1000,0,64,0", | ||
| 428 | "VKH_HEAP": "0x1000=0x80000000,0x1004=0,0x1008=1,0x100c=0,0x1010=0xffffffff," | ||
| 429 | "0x1014=0xffffffff,0x1018=1,0x101c=0,0x1020=1,0x1024=0,0x1028=0x80000000," | ||
| 430 | "0x102c=0,0x1030=7,0x1034=5,0x1038=7,0x103c=5"}} | ||
| 424 | 431 | ||
| 425 | 432 | ||
| 426 | def check_flat(raw_path: str) -> tuple[bool, str]: | 433 | def check_flat(raw_path: str) -> tuple[bool, str]: |
| @@ -928,7 +935,7 @@ def run_suite(a, work: str) -> int: | |||
| 928 | "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load", | 935 | "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load", |
| 929 | "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent", | 936 | "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent", |
| 930 | "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_barrier_early_end", | 937 | "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_barrier_early_end", |
| 931 | "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_lds_b64_cmpst", | 938 | "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_lds_b64_cmpst", "cs_w32_andn2_exec", |
| 932 | "cs_mask_vgpr_exec"): | 939 | "cs_mask_vgpr_exec"): |
| 933 | cs_dump_wants = { | 940 | cs_dump_wants = { |
| 934 | "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000], | 941 | "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000], |
| @@ -1000,6 +1007,7 @@ def run_suite(a, work: str) -> int: | |||
| 1000 | "cs_w64x_partial": [40, 40, 528, 0, 0, 532, 539, 524820], | 1007 | "cs_w64x_partial": [40, 40, 528, 0, 0, 532, 539, 524820], |
| 1001 | "cs_w64x_partial_scmp": [0, 1, 0, 1, 1, 1, 1, 0], # s_cmp mask, -1 in a partial wave | 1008 | "cs_w64x_partial_scmp": [0, 1, 0, 1, 1, 1, 1, 0], # s_cmp mask, -1 in a partial wave |
| 1002 | "cs_w32_partial_scmp": [0, 1, 1, 0, 1, 1, 1, 1], # the same in a 20-thread wave32 | 1009 | "cs_w32_partial_scmp": [0, 1, 1, 0, 1, 1, 1, 1], # the same in a 20-thread wave32 |
| 1010 | "cs_w32_andn2_exec": [1, 8, 16, 2064, 2068, 3, 20, 1544], # s_andn2_saveexec/wrexec_b32 (.asm header) | ||
| 1003 | "cs_w32_sincos": [1, 1, 1, 1, 1, 1], # SHADER-88 (cs_w32_sincos.asm): angles in turns | 1011 | "cs_w32_sincos": [1, 1, 1, 1, 1, 1], # SHADER-88 (cs_w32_sincos.asm): angles in turns |
| 1004 | "cs_w64x_sbarrier": [605, 605, 686, 686, 3032, 3013, 3032, 3031], | 1012 | "cs_w64x_sbarrier": [605, 605, 686, 686, 3032, 3013, 3032, 3031], |
| 1005 | "cs_w64x_load_ballot_load": [43, 74, 75, 42, 42, 18, 41, 32], | 1013 | "cs_w64x_load_ballot_load": [43, 74, 75, 42, 42, 18, 41, 32], |
| @@ -1035,7 +1043,7 @@ def run_suite(a, work: str) -> int: | |||
| 1035 | "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_sincos", | 1043 | "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_sincos", |
| 1036 | "cs_lds_b64_cmpst", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec", | 1044 | "cs_lds_b64_cmpst", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec", |
| 1037 | "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", | 1045 | "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", |
| 1038 | "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi") and not emulated and not partial | 1046 | "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_w32_andn2_exec") and not emulated and not partial |
| 1039 | if partial and not emulated: | 1047 | if partial and not emulated: |
| 1040 | cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="64") | 1048 | cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="64") |
| 1041 | if name in WAVE32_LANE_DUMPS: # 32 lanes even without index.json, as check.py requests (#774) | 1049 | if name in WAVE32_LANE_DUMPS: # 32 lanes even without index.json, as check.py requests (#774) |
| @@ -1214,6 +1222,8 @@ def run_suite(a, work: str) -> int: | |||
| 1214 | # v_mad_u32_u16 / v_mad_i32_i16 and v_subrev_f16, which had CPU checks only (.asm headers) | 1222 | # v_mad_u32_u16 / v_mad_i32_i16 and v_subrev_f16, which had CPU checks only (.asm headers) |
| 1215 | "ps_valu16_mad": (0x00000002, 0x00030002, 0x00008000, 0x00000004), | 1223 | "ps_valu16_mad": (0x00000002, 0x00030002, 0x00008000, 0x00000004), |
| 1216 | "ps_valu16_subrev": (0xAAAABC00, 0xAAAAC000, 0xAAAA3C00, 0x42003800), | 1224 | "ps_valu16_subrev": (0xAAAABC00, 0xAAAAC000, 0xAAAA3C00, 0x42003800), |
| 1225 | "ps_vcmp_f32_nan": (0x0000376C, 0x0000FD5B, 0x0000D36C, 0x00000FE7), # from the .asm headers | ||
| 1226 | "ps_vcmp_64": (0x0000B3C4, 0x000091E6, 0x00006787, 0x00007C93), | ||
| 1217 | "ps_w64x_readlane": (0x40000079, 0x40000010, 0x40000064, 0x400000BE), # same expectation as check.py | 1227 | "ps_w64x_readlane": (0x40000079, 0x40000010, 0x40000064, 0x400000BE), # same expectation as check.py |
| 1218 | } | 1228 | } |
| 1219 | if skip := wide_pixel_skip(name, msg): # a 64-wide pixel stage the device could not give: nothing to judge | 1229 | if skip := wide_pixel_skip(name, msg): # a 64-wide pixel stage the device could not give: nothing to judge |