Commit Graph

2 Commits

Author SHA1 Message Date
a2f6613b63 rdna2spirv: keep branch destinations when lowering s_sethalt
AI-assisted by Codex.
2026-11-25 12:38:00 +00:00
5d440c8a6e rdna2spirv: translate s_sethalt before s_endpgm as the end of the wave (SHADER-SETHALT)
s_sethalt sets the wave's HALT bit to SIMM16[0]. Nothing clears it in a
translated dispatch, so s_sethalt 1 right before s_endpgm ends the wave
where the s_endpgm would, after the same memory writes, and s_sethalt 0
does nothing. Both are dropped. s_sethalt 1 with more code after it stays
refused. This was the last refusal of the 1.0.2.1 pipeline library.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:38:50 +05:00