direct compute: support defined numeric M0 register values #3204

Closed
opened 2026-11-27 21:37:04 +00:00 by github-bot · 0 comments
Owner

@⁠xiaoqi72665 on GitHub · 2026-11-27 21:35 UTC · original

Refs #2935, #3145 and #3174. Taking the independent numeric M0 register slice, not the raw-load decoder change.

At d99e0ae, source-built slot67 controls compile ordinary scalar moves and zero-offset buffer loads, but s_mov_b32 m0, 4 fails at +0x2c ("direct scalar move destination"); a subsequent numeric read cannot be reached. M0-buffer loads separately hit the shared decoder refusal. The same scalar register restrictions remain in 673a9f2.

RDNA 2 ISA sections 3.7 and 5.2 identify M0 as a 32-bit per-wave register (encoding 124). Reuse existing direct register storage and CFG symbol analysis for defined numeric scalar writes and explicit ALU reads; refuse undefined values, symbolic descriptors and invalid pairs. Source-built controls/readback will exercise group-dependent values, overwrite, branch joins, loop and EXEC/SCC behavior. Keep graphics and legacy HLSL paths unchanged. #3174 explicitly leaves M0 soffset unsupported; leave that decoder and memory-addressing behavior unchanged until its follow-up is coordinated. No implicit M0 LDS/indexing support claimed.

Buhe (@⁠xiaoqi72665). AI-assisted.

**@⁠xiaoqi72665** on GitHub · 2026-11-27 21:35 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3202) Refs #2935, #3145 and #3174. Taking the independent numeric M0 register slice, not the raw-load decoder change. At d99e0ae, source-built slot67 controls compile ordinary scalar moves and zero-offset buffer loads, but `s_mov_b32 m0, 4` fails at +0x2c ("direct scalar move destination"); a subsequent numeric read cannot be reached. M0-buffer loads separately hit the shared decoder refusal. The same scalar register restrictions remain in 673a9f2. RDNA 2 ISA sections 3.7 and 5.2 identify M0 as a 32-bit per-wave register (encoding 124). Reuse existing direct register storage and CFG symbol analysis for defined numeric scalar writes and explicit ALU reads; refuse undefined values, symbolic descriptors and invalid pairs. Source-built controls/readback will exercise group-dependent values, overwrite, branch joins, loop and EXEC/SCC behavior. Keep graphics and legacy HLSL paths unchanged. #3174 explicitly leaves M0 soffset unsupported; leave that decoder and memory-addressing behavior unchanged until its follow-up is coordinated. No implicit M0 LDS/indexing support claimed. Buhe (@⁠xiaoqi72665). AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:37:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3204
No description provided.