Repository navigation
Conversation
…o_u16, max_u16, min_i16, min_u16 Sixteen hand-derived words covering op_sel/op_sel_hi, 16-bit wrap, clamp saturation and signed vs unsigned compares, plus a CPU fixture test. AI-assisted.
|
Tested Independent Vulkan check of Rebuilt the harnesses at this head and ran
The three targeted semantic tests and fixture regeneration check also passed. The GPU run covers these two registered fixtures. AI-assisted verification. |
|
Tested 1491e6e on NVIDIA GeForce RTX 3090 (Ampere, subgroup 32..32), driver 610.88 (Vulkan 1.4.341), Windows 11 Pro 26300: pass. The PR's diff applied cleanly to
|
|
Tested 1491e6e on AMD Radeon RX 9060 XT (RDNA4), AMD driver 26.10.44 (LLPC, Vulkan driver 2.0.395), Windows 11 Pro 10.0.26300, subgroup 32..64: pass.
Test programs: an MSVC 14.44 build of 4eb6155, this PR's base. The PR changes no C++ or CMake, so they are what its head builds; the translator, runner and The two checks above are NVIDIA (32-wide); this one is an AMD card with native 64-wide subgroups, RDNA4. I did not repeat the negative control. No game files. AI-assisted (Claude Code). |
|
Tested 1491e6e on AMD Radeon RX 7900 XTX (RDNA3, Navi 31), AMD driver 26.11.2, Vulkan 1.4.359, Windows 11: pass.
Tools: llvm-mc 21.1.8 (WSL), Vulkan SDK 1.4.363.0, MSVC 14.44. |
|
Tested Ran
2/2 passed. The full suite from this branch also passes: 169/182 passed, 13 skipped (same set: 12 D3D12-run fixtures plus |
|
Tested 1491e6e on AMD Radeon RX 9070 (RDNA4, subgroup 32..64), AMD 26.10.1 (LLPC), Vulkan 1.4.359, Windows 11 26300: pass. Python 3.12.10, llvm-mc 21.1.8, Vulkan SDK 1.4.363.0; harness programs built from
|
Conflicts: runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py AI-assisted.
runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py AI-assisted.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested 3c96d2b (merge base aa2988c) on NVIDIA GeForce RTX 5080, Linux 580.65.06: pass Tested the PR head merged with current main
Line-by-line against my main run (results that differ from main):
Not run: the full AI-assisted (Claude Code). |
|
Tested
Not run: AI-assisted (Claude Code). |
Requested by Lucas · project thread
Claimed in the coordination issue as: #1902 (comment)
What and why
GPU tests for the packed 16-bit integer VOP3P ops that only had CPU checks and that no other open PR runs on a GPU:
v_pk_add_i16,v_pk_sub_u16,v_pk_mad_i16,v_pk_mul_lo_u16,v_pk_max_u16,v_pk_min_i16,v_pk_min_u16.v_pk_add_u16,v_pk_sub_i16,v_pk_mad_u16andv_pk_max_i16are left to #1850; the constants' high halves under op_sel stay with SHADER-352.tools/valu_fuzz.pyhas no packed integer ops.Two wave32 dumps,
cs_w32_pk_int16_aand_b(a dump holds eight words), 16 words in all. Lane 0 stores one word per case, derived by hand from the ISA in each.asmheader:op_sel:[1,0,1] op_sel_hi:[0,1,0]; u16 mul_lo wrap; u16 mul_lo with crossed op_sel/op_sel_hi.llvm-mc -mcpu=gfx1013accepts all forms used. It also acceptsneg_lo/neg_hion these integer ops (the translator rejects them).Registered like
cs_w32_new_ops(check.py, run_gpu_tests.py, regen_fixtures.py, fixtures under tests/semantic/fixtures/disasm), plustests/semantic/test_pk_int16_fixture.py: runs both fixtures inspirv_mini_interp, compares with a plain-Python model and with the hand constants, and checks that both runners expect the same words. No translator change.Tested
run_gpu_tests.py --filter cs_w32_pk_int16: 2/2 pass, both shaders spirv-val clean.selandselhiin the translator's packed-int16 branch makes both tests FAIL on the 5080 (reverted).python -m unittest discover -s tests/semantic: 1674 tests OK.regen_fixtures.py --checkclean.python -I tests/test_shader_checks.pyOK.AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (No translator rule changed.)