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:
authorShadman PC <iamanthonytony@gmail.com>2026-11-22 18:18:06 +0600
committerShadman PC <iamanthonytony@gmail.com>2026-11-22 19:29:17 +0600
commit77506e2f6dd0f6f148adda0619ee24ca59fa5a1d (patch)
tree98ec8b3633bdebcbfd7858520bf717e226fbe8c3 /runtime/test/queue_proxy_test.cpp
parenta0acd33d77babe67a28e398b2936a9f735a50f5d (diff)
perf(translator): track s_mov_b64, s_movk_i32 and SGPR copies in sgpr_imm
buffer_bounds evaluates mode = None if lit3 is None else lit3 >> 28 & 3 to fold the OOB_SELECT mode into a single static bounds-check branch at translate time. When lit3 is unknown, it falls back to run-time extraction (OpBitFieldUExtract), 3x OpIEqual comparisons, and 6x cascading OpSelect instructions. Previously, self.sgpr_imm only recorded literals from s_mov_b32. Shaders routinely load 64-bit descriptor pairs using s_mov_b64, or 16-bit sign-extended mode words using s_movk_i32, or copy preloaded constants via SGPR moves. - In mov64, track immediate constants for both low and high SGPRs when desc_cache_ok(), and propagate copies from known SGPR pairs. - In s_mov_b32, propagate known scalar immediates on SGPR-to-SGPR moves. - In s_movk_i32, record the sign-extended 16-bit immediate in sgpr_imm. Added tests in tests/semantic/test_buffer_oob_select.py verifying that s_mov_b64, s_movk_i32, and SGPR copy moves eliminate run-time OOB mode extraction and fold into static mode paths.
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions