upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/tiny_game_exit_code_test.cpp
diff options
context:
space:
mode:
authorwhoalin1 <207920491+whoalin1@users.noreply.github.com>2026-11-24 19:49:08 +0200
committerwhoalin1 <207920491+whoalin1@users.noreply.github.com>2026-11-25 18:45:22 +0200
commit5657240e3555586eb68589cb9051d8464935609c (patch)
treec18a3eb973b7bfffaac9e091c65f1c0fbdfcb6b2 /runtime/test/tiny_game_exit_code_test.cpp
parent9e7720c9e764211e0021aa23907d2d3ecd58963f (diff)
rdna2spirv: f16 interp deltas and toward-zero p2 narrow (SHADER-468)
Measured on the RDNA2 iGPU (gfx1036, tools/f16_interp_probe.py, 98,304 samples over 12 native draws): the SPI writes P10/P20 for a 16-bit channel as per-half f16 differences (round to nearest even), the weighted sum stays f32, and v_interp_p2_f16 narrows toward zero -- the driver's ISA runs the pair inside s_round_mode 0x000c, so the narrow is toward zero whatever the shader's own MODE writes are. The rdna2 model explains 98,274 of 98,304 samples; the previous translation (f32 deltas, nearest-even narrow) explains 62,226. - Gen.f16_round: f32 -> nearest-f16 value via f16_bits + UnpackHalf2x16 (integer-built bits, so no driver folds the round trip away, #512/#513); applied to the P1-P0 / P2-P0 deltas of 16-bit-channel reads in attribute(). - v_interp_p2_f16 narrows with f16_bits(rtz=True) and keeps the SHADER-430 partial-write high half via write_lo16. - vk_harness: scan both stages for Float16 / StorageInputOutput16 / Float64 capabilities (77 when the device lacks them), enable the matching Vulkan 1.1/1.2 features, VKH_PC_BYTES to shrink the push-constant range for hand-written fixtures, and VKH_SHADER_INFO to dump the driver's fragment disassembly. - tests/semantic/test_interp_f16_round.py: the two telling cases (f16 delta overflow to inf; toward-zero vs nearest-even tie). - tests/semantic/test_interp_p1lv_f16.py: reference oracle updated to the measured model (f16 deltas, f32 sum, toward-zero narrow). - docs/design.md: 16-bit interpolation row records the SHADER-468 measurements and remaining unverified items. Co-Authored-By: Devin <noreply@cognition.ai>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions