upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
author465d6a0eac <465d6a0eac@users.noreply.github.com>2026-11-22 03:35:24 -0300
committer465d6a0eac <465d6a0eac@users.noreply.github.com>2026-11-22 03:37:17 -0300
commitc22798eed5a4f0f6e2a8242aec363a1271712613 (patch)
treeb4e72f82169bc6170ba87dd449d8832e9b2e2db9 /runtime/test/queue_proxy_test.cpp
parent48ad23f0262452b6c3d09db98941bfedb8e9684d (diff)
Translator: gather LOD ties select the upper mip (SHADER-152)
native OpImageGather Lod (VK_AMD_texture_gather_bias_lod) selected mip 1 on Radeon Graphics 26.10.1 while the emulation's RoundEven selected mip 0. image_gather4_l(_o) now picks the mip as Floor(clamp(LOD) + 0.5): ties go up like the native draw, and every non-tie LOD selects the same mip as before. The [0, levels-1] clamp is unchanged. Tests: 232 gather sites in the 16 corpus shaders that use image_gather4_l/_o now emit FAdd+Floor instead of RoundEven and still assemble and pass spirv-val (16/16 translated, 16/16 valid, 946 fetches unchanged); a 200-shader corpus slice is 200/200 translated and valid before and after; the full suite passes (3498 passed, 61 skipped). The 0.5 rule is the Radeon measurement; the guest's own gfx1013 tie behaviour is still not hardware-verified.
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions