From c5f1807515ec669ce428e150b40937be4a0a0fb7 Mon Sep 17 00:00:00 2001 From: OreoFR <29048345+OreoFR@users.noreply.github.com> Date: Wed, 25 Nov 2026 07:57:55 +0100 Subject: rdna2spirv: translate v_cmpx in DPP form (SHADER-VOPCX-DPP) Extend #957's DPP VOPC compare to v_cmpx: the same lane selection, with the result written to EXEC. v_cmpx prints no destination, so src0 is its first operand. Only the forms where every lane writes its bit are taken, as for v_cmp. 78 pipeline-library pixel shaders of 1.0.2.1 were refused for it; all 78 now translate and pass spirv-val. Co-Authored-By: Claude Opus 5.5 --- scripts/run_gpu_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/run_gpu_tests.py') diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index f87290ec6..60e968783 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py @@ -1205,7 +1205,7 @@ def run_suite(a, work: str) -> int: results.append((name,) + wavemask_check(vk_compute, spv, cs_env, w64_emulated())) elif name in ("cs_smem_vcc_base", "cs_store", "cs_signed_zero_nan", "cs_smem_soffset_imm", "cs_w32_lane_wrap", "cs_movrelsd_2", "cs_w32_permute", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap", "cs_w32_permlane_fi", "cs_exec_const", "cs_w32_mask_imm", "cs_w64_mask_imm", "cs_w32_lds_u8_d16", "cs_w32_lds_subdword", "cs_w32_lds_wide", "cs_w32_int_ext", "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops", "cs_wave64_ballot", "cs_wm_half_ops", "cs_wm_half_cmp", "cs_wm_bfm64", "cs_wm_scc_rfl", "cs_wqm_w64", "cs_wqm_w32", "cs_wqm_w64_half", "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", "cs_dpp_ops", "cs_dpp_bank", "cs_dpp_fi", - "cs_dpp_bound", "cs_dpp_cmp", "cs_dpp_w64", + "cs_dpp_bound", "cs_dpp_cmp", "cs_dpp_cmpx", "cs_dpp_w64", "cs_w64_mask_detect", "cs_w64x_readlane", "cs_w64x_writelane", "cs_w64x_readfirstlane", "cs_w64x_bpermute", "cs_w64x_permute", "cs_w64x_branch", "cs_w64x_ballot", "cs_w64x_wg128_branches", "cs_w64x_lds_raw", @@ -1274,6 +1274,7 @@ def run_suite(a, work: str) -> int: "cs_dpp_bank": [0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFC, 7, 7, 7, 7], "cs_dpp_fi": [1, 2, 3, 0x7777, 5, 6, 7, 0x7777], "cs_dpp_cmp": [3, 2, 3, 2, 1, 0, 1, 0], + "cs_dpp_cmpx": [1, 1, 0, 0, 3, 3, 2, 2], "cs_dpp_w64": [1, 0, 3, 2, 5, 4, 7, 6], # SHADER-99: -0 and NaN survive (SignedZeroInfNanPreserve, cs_signed_zero_nan.asm); 0 in out[4..7] # without it @@ -1352,7 +1353,7 @@ def run_suite(a, work: str) -> int: "cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_w32_permlane_fi", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_wrxchg2_ext", "cs_w32_wrxchg2st64", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec", "cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", - "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_dpp_cmp", "cs_w32_andn2_exec", + "cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_dpp_cmp", "cs_dpp_cmpx", "cs_w32_andn2_exec", "cs_w32_exec_computed") and not emulated and not partial if partial: cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="32" if emulated else "64") -- cgit v1.2.3