Repository navigation
Conversation
…src_scc (TEST-593) The "Scalar/buffer memory" rules for FidelityFX FSR4's FSPX programs (ItsNotRexed#2000) were CPU-checked only. cs_fspx_slist runs s_buffer_load_dwordx8/x16 into lists ending in vcc_lo,vcc_hi and a V# loaded into [s104,s105,vcc_lo,vcc_hi] used by s_buffer_load_dword and buffer_load_dword; cs_fspx_src_scc reads src_scc from VALU and SALU with SCC 1 and 0. Both pass on an RTX 3070 Ti. llvm-mc 21 cannot assemble those lists (and with gfx1013 cannot decode them; only LLVM 23 prints them, for gfx1030-class targets, docs/fspx.md), so run_gpu_tests.py's assemble_to_s now passes an instruction line that already carries `; encoding: [...]` to the translator as written and assembles the rest, checking one assembled instruction per other line. The five lines carry their machine words: llvm-mc's encoding of the same instruction on a nearby range, with the register field moved. Fixtures without such lines assemble exactly as before. Unit tests cover the split, the order, and the count check; the docs/design.md row says GPU-checked.
|
Independently tested |
|
Tested The two TEST-593 fixtures also ran on the RTX 5070 Ti with NVIDIA 620.73.04. Both Vulkan modules validated and every checked word matched, including the VCCTuple tails and src_scc. AI-assisted, synthetic inputs only. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): No problems found. ctest on the RTX 4080 SUPER: 129/129 passed. Intel UHD 770 ctest: only the two known base failures, d3d12_descriptor (fixed by #2948) and d3d12_subgroup (fixed by #2934). d3d12_present failed once in the full Intel run but passes 3/3 when run alone on Intel, so it is load-related, not this PR. |
Item: TEST-593 (claim).
docs/design.md's "Scalar/buffer memory" row covers the rules #2000 added for FidelityFX FSR4's FSPX programs: LLVMVCCTuplescalar lists ending invcc_lo,vcc_hiand thesrc_sccoperand. They were CPU-checked bytests/semantic/test_fspx_rules.pyonly. This adds two single-thread compute fixtures toscripts/run_gpu_tests.py's dump tests.cs_fspx_slist: the heap is seeded with 16 dwords0xf5f00000 + i, a RAW V# at 0x80, and two data words.s_buffer_load_dwordx8 [s100,…,s105,vcc_lo,vcc_hi]: s100, s105, vcc_lo, vcc_his_buffer_load_dwordx16 [s92,…,s105,vcc_lo,vcc_hi]: s92, vcc_hi[s104,s105,vcc_lo,vcc_hi], thens_buffer_load_dwordthrough it0xcafe1234buffer_load_dwordat 40xbeef5678cs_fspx_src_scc:v_add_nc_u32 src_scc + 20with SCC 1 gives 21, and with SCC 0 (afters_add_u32clears it) gives 20;s_mov_b32 src_sccgives 1;s_add_u32 10, src_sccgives 11.Runner change:
llvm-mc21 can't assemble these lists ("registers in a list must be of the same kind";s[100:107]is out of range), and withgfx1013it can't decode them either. Perdocs/fspx.md, only LLVM 23 prints them, forgfx1030-class targets. Soassemble_to_snow passes an instruction line that already carries; encoding: [...]to the translator as written, and assembles the rest. It checks thatllvm-mcgave one instruction per remaining line and fails with a clear message if not. Fixtures without such lines assemble exactly as before. The five verbatim lines carry their real machine words:llvm-mc's encoding of the same instruction on a nearby range, with the register field moved (SMEM SDATA to 100/92/104, SBASE to 52, MUBUF SRSRC to 26). The fixture header documents this.Tested
Windows 11, NVIDIA GeForce RTX 3070 Ti (driver 610.88),
llvm-mc21.1.8, SPIRV-Tools v2026.4:run_gpu_tests.py --filter cs_fspx: both PASS with exactly the words above. The listing handed to the translator has all five instructions in thevcc_lo,vcc_hiform.tests/test_run_gpu_tests.py(four new tests: the split, the source order, the count check, a plain fixture): OK.tests/test_run_gpu_tests_paths.py: OK.docs/design.mdrow now says GPU-checked; all four docs tests pass.No game files. AI-assisted (Claude Code).