shader: lower native pixel raw buffer atomic add with exact coverage #3216

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

Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-27T22:05:26Z.


Refs #3212, #3215, #3074, #3198, #2935.

Claim (Buhe): I am taking the native pixel-stage raw buffer atomic add slice, stacked locally on #3215. Current native graphics lowering explicitly refuses buffer atomics while the compute emitter already implements the raw DWORD atomic add and GLC return. I checked open and historical issue/PR searches; I did not find another claim for this exact native pixel path. Please flag overlap, especially with #3091/#3094.

Plan: reuse the compute emitter's address/operation lowering and the verified raw UAV binding, but explicitly guard the actual atomic side effect with proven pixel EXEC and coverage (no helper lane writes). Verify both GLC and non-GLC, inactive lane preservation, concurrent updates/old values, bounded views and guard words via source-built VS/PS -> offline native cache -> PSO -> Draw -> GPU readback, on RX 7900 XT and WARP. Restrict to proven raw DWORD add and supported exact/masked control flow; indexed, other opcodes, unproven WQM/control flow remain refused. No runtime integration duplicate, no game inputs. Actual title impact not established.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6655193686 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3216). Originally posted by [xiaoqi72665](https://github.com/xiaoqi72665) on 2026-11-27T22:05:26Z. --- Refs #3212, #3215, #3074, #3198, #2935. Claim (Buhe): I am taking the native pixel-stage raw buffer atomic add slice, stacked locally on #3215. Current native graphics lowering explicitly refuses buffer atomics while the compute emitter already implements the raw DWORD atomic add and GLC return. I checked open and historical issue/PR searches; I did not find another claim for this exact native pixel path. Please flag overlap, especially with #3091/#3094. Plan: reuse the compute emitter's address/operation lowering and the verified raw UAV binding, but explicitly guard the actual atomic side effect with proven pixel EXEC and coverage (no helper lane writes). Verify both GLC and non-GLC, inactive lane preservation, concurrent updates/old values, bounded views and guard words via source-built VS/PS -> offline native cache -> PSO -> Draw -> GPU readback, on RX 7900 XT and WARP. Restrict to proven raw DWORD add and supported exact/masked control flow; indexed, other opcodes, unproven WQM/control flow remain refused. No runtime integration duplicate, no game inputs. Actual title impact not established. 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#3216
No description provided.