Part of #870 #2860
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2860
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tedin7 on GitHub · 2026-11-26 14:41 UTC · original
What this unblocks: translated compute dispatches whose input buffers were written by the title (placed buffers that do not alias title memory) and dispatches with an unbound input run instead of being refused.
Problem
A translated compute dispatch reads its input buffers from GPU-backed ranges. When an input lies in a placed buffer that does not alias title memory (slot 133
copied_buffer), the desktop copy is a committed default buffer that holds zeros: the bytes the title wrote exist only in title memory. Today the dispatch is refused ("an input is in a placed buffer that does not alias title memory"). A second case is refused too: an input descriptor whose four words are all zero is an unbound (null) buffer, which the hardware reads as zeros, but the dispatch says "an input buffer descriptor has zero records".Proposal
Runtime only (
d3d12_draw.inl,d3d12_compute_dispatch.inl,d3d12_xs_device.cpp):X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT=1(opt-in): order is a GPU copy this list made, else a snapshot of at most 16 MiB copied from title memory at the dispatch. A later title write is not seen, and data a GPU pass wrote into that buffer is not either (documented indocs/experiments.md).Tests
startup_compute_dispatch_input(WARP and hardware):dispatch-input-snapshot(off: refused; on: all 320 words match; zero title memory runs on zeros),dispatch-input-null(not refused, reads zeros), and the existingdispatch-input-emptycontrol still refused.Out of scope
Recycling the shared upload pool (separate change), translator pieces.
Source: Microsoft D3D12 documentation (placed resources, upload heaps, raw buffer SRVs).
Real-hardware testing: @Makto94 - thanks for the help.
@tedin7 on GitHub · 2026-11-26 14:41 UTC · original
Claiming this; a Draft PR follows shortly.