upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authoreIBart0 <eIBart0@users.noreply.github.com>2026-11-21 22:40:42 +0000
committereIBart0 <eIBart0@users.noreply.github.com>2026-11-21 22:24:31 -0300
commitdbb33196812b5ba6faf7779139811754c71ac656 (patch)
treea16e76b14890696d16634efb63fb288053633dd2 /runtime/test/gameinput_test.cpp
parentc432cdce127ed2d22a99aa6ef57d91db4a10b5bb (diff)
Shader: pack d16 image sample/gather results with integer f32->f16 RTE
Work around an amdvlk64 pipeline-creation crash (0xC0000005 on RX 9070 XT) triggered when GLSL.std.450 PackHalf2x16 on an OpImageSampleExplicitLod d16 result feeds a structured loop (OpLoopMerge inside OpSelectionMerge) using OpGroupNonUniformAny. Replace PackHalf2x16 at the two d16 image_gather4*/image_sample* sites in tools/rdna2spirv.py with a branchless pure-integer IEEE-754 binary16 RTE packer (Gen.f32_to_f16_int / Gen.pack_f16_pair_int). Leave all other PackHalf2x16 call sites unchanged. Add unit tests covering edge cases and a 58,368-value sweep across all 256 exponents (tests/test_d16_pack.py), SPIR-V translation/validation tests for d16 image_sample and image_gather4 (tests/test_translate.py), and a synthetic GPU sample shader (runtime/test/shaders/ps_texture_sample_d16.asm).
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions