direct compute: support defined numeric M0 register values #3202

Closed
opened 2026-11-27 21:35:21 +00:00 by xiaoqi72665 · 0 comments
xiaoqi72665 commented 2026-11-27 21:35:21 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-27T21:35:21Z.


Refs #2935, #3143 and #3172. 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. #3172 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6654813099 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3202). Originally posted by [xiaoqi72665](https://github.com/xiaoqi72665) on 2026-11-27T21:35:21Z. --- Refs #2935, #3143 and #3172. 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. #3172 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.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#3202
No description provided.