Repository navigation
Translator: pack D16 explicit-LOD gather results - #1017
Conversation
Route both four-tap gather paths through the existing binary16 conversion so explicit LOD and offsets keep the two-word result and the following register intact.
|
Tested 773891b on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51, llvm-mc 23.1.6): pass
Same note as on #973: |
|
The Windows job on this head compiled all six descriptor shaders, then failed in the workflow check for the retired cs_sample.spv filename. Main 43d4703 fails at the same step. The independent workflow fix is #1029. Thanks for the RTX 4080 SUPER and Intel results on this replacement head. AI-assisted. |
|
Tested 773891b on an Intel Arrow Lake Xe-LPG iGPU (Core Ultra 9 275HX, Windows 32.0.101.8132, subgroup 8..32) and an RTX 5070 Ti Laptop (617.42): pass. Windows 11 26200, MSVC 19.44, llvm-mc 23.1.6, Vulkan SDK 1.4.363, runtime built from 43d4703 (this PR changes no C++).
No game files. AI-assisted (Claude Code). |
|
Tested 773891b on AMD Radeon RX 7800 XT (RDNA3), RADV Mesa 26.2.6 (ACO), Vulkan 1.4.354, subgroup 32..64, Fedora 44; llvm-mc 22.1.8, GCC 16.2.1. First AMD run: pass.
|
|
Tested the combination with #1045 on main
The merged shader matched these hex words at all 4,096 pixels per draw on RTX 5080 and Radeon Graphics (RDNA2). Bypassing the active bound in validated SPIR-V selected the other row at every pixel in both draws. #1017 alone matched the same words on these two GPUs; #1045 alone rejected the two-register D16 form. The combined D16 case still lacks RX 7900 XTX verification. AI-assisted. |
quackottu
left a comment
There was a problem hiding this comment.
Tested 773891b on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 100% tests passed, 0 tests failed out of 47- every test program in the build passes.
d3d12_vulkan_device_testandd3d12_fence_timing_testeach report 3 validation errors (VUID-vkCreateDevice-ppEnabledExtensionNames-01387), butmain43d4703 shows the same: the standalone instance dropsVK_KHR_surface, which #1027 fixes. Not from this PR. d3d12_clear_testdiffers from WARP exactly as onmain(#521).
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
Replaces #928 following the maintainer's request to drop the removed README commits. Original coordination claim.
What and why
This is one commit directly on
43d4703. The range changes five files and contains zero README changes. The existing 2Dimage_gather4_landimage_gather4_l_opaths already fetch the four taps individually. The assembler accepts two destination VGPRs withd16, but the translator rejects both forms. The four results now use the same binary16 writeback asimage_gather4_lz, two taps per VGPR, leaving the following register intact. The sampler bounds from merged #973 remain in the mip-selection path.Tested
43d4703, the newps_gather_wrapfixture fails translation withimage_gather4_l form. Its neighboringps_gather_sampler_lodtranslates and passes SPIR-V validation.scripts/run_gpu_tests.py --filter gatherfrom empty work directories on RTX 5080 (616.92) and Radeon Graphics (26.10.1). Each GPU passed the D16 case with 4096/4096 exact pixels and the sampler case with two exact 4096-pixel passes. The focused translator and D16 tests passed all 286 cases.(1,1,0,0)at every pixel, a sampler maximum of 0.25 yielded(1,1,1,1), and a minimum of 0.75 yielded(0,0,0,0), on both GPUs.Checklist
docs/design.mdrecords the packing order and the hardware check.AI-assisted with Codex.