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:
authorbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-30 23:02:53 -0600
committerbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-30 23:02:53 -0600
commit12ff308a834982a4a81ebc2bef305c686b31045e (patch)
tree28830334701d8429739754030b06db8c4e851901 /runtime/src/thread_stacks.cpp
parent86c30fcea9ff77e123c7ad605f3194551c8d197c (diff)
d3d12-shader: decode instruction fields and effects once in ir::build
For a program with v_writelane_b32/v_readlane_b32, unspill has to walk every instruction to find parked scalars, decoding fields and computing effects for each, and then build walks them again doing both. unspill now returns a cache indexed by instruction (name, fields, effects), and build takes it. The cache is sound because unspill only rewrites list in place and only after it has already scanned everything; any instruction unspill rewrites has its cache entry cleared, and build recomputes effects after its own parked-scalar substitution. Programs without a lane save or restore, and any program where unspill_scan bails, get no cache and decode exactly as before. Same values, same errors, same order. DXIL-identity over the full shader archive needs game files; checked here with the leonida-shader unit tests and the hand-written translator semantic suite. AI-assisted: yes
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions