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:17:54 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 17:17:54 +0100
commitd78546fc92469bffdd7312a9d9d8b9ef14037eae (patch)
treedcfd3a589a45b8711d79e38546bd5864a94eb98c /scripts/run_gpu_tests.py
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
rdna2spirv: apply the SDWA src_sel to an f16 inline float constant
In an f16 SDWA op, Gen.src_h returned a float inline constant as its f16 bits without the operand's src_sel. On RDNA2 the constant is the f16 value over a zero high half and src_sel then narrows it like a register: v_add_f16_sdwa d, 1.0, v src0_sel:WORD_1 reads +0.0 (measured on gfx1036). The translator added 1.0. GPU test ps_sdwa_f16_const (hand-derived words, measured on gfx1036) with a semantic fixture; it also covers an SGPR source and the integer path (v_cvt_f16_u16_sdwa of 1.0), which were already right. docs/design.md row. AI-assisted.
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 025504fb8..075c11e24 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -1138,6 +1138,7 @@ def run_suite(a, work: str) -> int:
1138 "ps_f16_const2": (0x42003D00, 0x3D004200, 0xAAAABC00, 3), 1138 "ps_f16_const2": (0x42003D00, 0x3D004200, 0xAAAABC00, 3),
1139 "ps_f16_pack": (0x34003C00, 0x38003400, 0x34000000, 0x44004200), 1139 "ps_f16_pack": (0x34003C00, 0x38003400, 0x34000000, 0x44004200),
1140 "ps_f16_pack_mods": (0x4400B400, 0xC4003400, 0x4400C200, 0xB400B400), 1140 "ps_f16_pack_mods": (0x4400B400, 0xC4003400, 0x4400C200, 0xB400B400),
1141 "ps_sdwa_f16_const": (0xAAAA3800, 0xAAAA1C00, 0xAAAA3E00, 0xAAAA73F0), # measured on gfx1036
1141 "ps_sff_imm": (2, 1, 20, 16), # SHADER-46: s_ff0/s_ff1 of an immediate 1142 "ps_sff_imm": (2, 1, 20, 16), # SHADER-46: s_ff0/s_ff1 of an immediate
1142 "ps_fnan_med3": (0x40A00000, 0xC0200000, 0xC0200000, 0x40600000), # measured on RDNA2 hardware 1143 "ps_fnan_med3": (0x40A00000, 0xC0200000, 0xC0200000, 0x40600000), # measured on RDNA2 hardware
1143 "ps_fnan_fract": (0x3F7FFFFF, 0x00003BFF, 0xC0200000, 0xC0200000), 1144 "ps_fnan_fract": (0x3F7FFFFF, 0x00003BFF, 0xC0200000, 0xC0200000),