upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.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:35:24 -0300
commit4fa8336202f432a8b9f5b6c6dd723093b7772777 (patch)
tree1ba3fe15779fa597c14ede3f66958f9d450dd134 /runtime/src/thread_stacks.cpp
parent43d470316ec6cbcd64002bc3792998d9f5745dac (diff)
Translator: gather LOD ties select the upper mip (SHADER-152)
#973 clamps the explicit-gather LOD to the S# bounds and records that, at exactly 0.5 with bounds [0,1], 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/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions