Repository navigation
Conversation
|
Windows / NVIDIA check at Environment: Windows 11 Pro 26200, Python 3.15.2, NVIDIA GeForce RTX 3080 (Ampere, 32-wide subgroup), driver 616.92 (Vulkan 1.4.351),
I did not run the full semantic suite on this head, only the two files the diff touches. |
|
Tested Independent GPU check passed at
This covers translated shader execution for uniform inputs on a 32-lane NVIDIA subgroup. AI-assisted GPU check (Codex). AI-assisted verification. |
|
Tested ce72421 (on its base
AI-assisted (Claude Code). |
|
Tested RTX 3080 (driver 615.71.09, Vulkan 1.4.351), identical to what current
RTX 5080: not run this time. The card is holding ~15.6 GB for another job on this box, so I skipped it rather Tests you changed: One thing to know so my numbers are not read as yours: current Machine: Linux Mint 22 (Ubuntu 24.04 base), |
|
Tested
AI-assisted (Claude Code). Synthetic test shaders only, no game files. |
|
Tested ce72421 on RTX 5070, driver 621.01, Windows 11 Pro 26300, MSVC 14.44 (build_runtime.ps1), Vulkan SDK 1.4.363, Python 3.11, llvm-mc 23.1.6 (conda-forge
Baseline on No game files. AI-assisted (Claude Code). |
|
Tested ce72421 on NVIDIA GeForce RTX 3070, driver 620.70.06, Linux (Bazzite, Fedora 45 base, kernel 7.3.3): pass
AI-assisted run (Claude Code); counts only, no game data. |
|
Tested Merged with
Current No game files. AI-assisted (Claude Code). |
Claimed in #3796: #3796 (comment)
What and why
Gen.cmp_class(tools/rdna2spirv.py:3266) read the class-mask operand (a[-1]) throughself.src_u(a[-1])for all three float widths (f32,f16,f64). On RDNA2 (gfx1036, previously measured viatools/sdwa_diff.py --oracle hwand pinned intests/test_sdwa_diff.py:58),v_cmp(x)_class_f16encodes float inline constants in the mask operand as 16-bit binary16 values in the low half over a zero high half (0.5->0x00003800,1.0->0x00003C00,-2.0->0x0000C000,0.15915494->0x00003118) beforesdwa_srcselection.Reading
a[-1]viaself.src_uencoded those constants as binary32 (0x3F000000,0x3F800000,0xC0000000,0x3E22F983), which broke:_sdwasub-dword mask selects (e.g.,src1_sel:WORD_1of1.0read0x3F80instead of0, andsrc1_sel:BYTE_3of-2.0read0xC0instead of0;sdwa_diff.py --family f16 --ops v_cmp_class_f16 --programs 500failed 12/500 onmain), and_e64masks using fractional inline float constants such as0.15915494(1/(2*pi)).Changing line 3266 to
self.src_h(a[-1]) if ty == "f16" else self.src_u(a[-1])makesv_cmp(x)_class_f16handle float inline constants consistently for both operands (src_hfalls back tosrc_ufor VGPR/SGPR/integer immediates while preservingsdwa_sel). Also updateddocs/design.md(v_cmp_class_f16contract row) and removed the staleon main that is v_cmp_class_f16skip note fromtools/sdwa_diff.py.Tested
python -I tools/sdwa_diff.py --family f16 --ops v_cmp_class_f16 --programs 500:12 mismatchesonmain(4c52ce27) ->500 pass, 0 mismatch, 0 skippedafter fixpython -I tools/sdwa_diff.py --programs 500:492 pass, 0 mismatch, 8 skipped(8 f16 NaN reference skips)python -m unittest -v tests/semantic/test_alu_cmp_class_f16_f64.py:5 tests OK(covers_sdwaBYTE_3/BYTE_1/WORD_1and_e64/v_cmpx_class_f16_e64with0.15915494, validated withspirv-val+spirv_mini_interp)python -m unittest -v tests/test_sdwa_diff.py:20 tests OK(added0.5 src1_sel:BYTE_1,1.0 src1_sel:WORD_1, and-2.0 src1_sel:BYTE_3assertions)pytest -q tests/test_text_write_line_endings.py tests/test_semantic_translator_use.pycleanChecklist
CONTRIBUTING.md).docs/design.mdupdated with verification basis.AI-assisted.