diff options
| author | simonbronk <275178677+simonbronk@users.noreply.github.com> | 2026-11-21 22:24:45 +0100 |
|---|---|---|
| committer | simonbronk <275178677+simonbronk@users.noreply.github.com> | 2026-11-21 22:33:25 +0100 |
| commit | 48adc7b9a599f19597311a1070a1421f82b2553c (patch) | |
| tree | add8b36ddb1208831ac09875e6477e2c71356d6f /runtime/src/tls_host.cpp | |
| parent | 6220fd078c6c45420580aeb9566669a134f04135 (diff) | |
Translator: v_perm_b32 sign selectors 8-11; integer ALU tests ps_ops7/ps_ops8
v_perm_b32 returned 0x00 for selectors 8-11. Per the RDNA ISa BYTE_PERMUTE
they give 0xff when bit 7 of byte 1, 3, 5 or 7 of {src0, src1} is set. Each
byte pick also shifted both sources by up to 56 bits (undefined in SPIR-V,
the select kept the right one); the shift is now (sel & 3) * 8 on the source
chosen by sel < 4.
New test shaders, checked on the GPU (check.py, run_gpu_tests.py) and in
tests/semantic with expected words derived from the ISA:
- ps_ops7: v_perm_b32 (byte picks, 0x00/0xff, sign selectors), v_alignbit_b32
with a shift of 36, v_med3_i32 vs v_med3_u32.
- ps_ops8: v_mul_hi_u32/i32, v_bcnt_u32_b32, v_ffbl_b32, v_ffbh_u32 (of 0),
v_xad_u32, v_add3_u32.
The semantic interpreter gains OpUMulExtended/OpSMulExtended,
OpUGreaterThanEqual and GLSL FindILsb, FindUMsb, UMax, SMin, UClamp, SClamp,
with direct tests; the unsupported-ext example moves from FindUMsb to Ldexp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/tls_host.cpp')
0 files changed, 0 insertions, 0 deletions