GPU: distinguish a retained clear colour from a scene draw that writes it #1628
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#1628
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?
@R0Y00 on GitHub · 2026-11-24 15:25 UTC · original
Part of #870. Coordinate GPU claims in #874. #1137 and #1268 describe earlier black-frame paths. Here translated draws execute and the presentation surface already contains a uniform colour after an early composite.
Observed. In a local diagnostic run on RTX 4060 Laptop, the 32×32 centre of the composite source was black after its two observed writers. The destination centre after composite was magenta. Later scene writers produced black centres, and the final composite still had a magenta centre. These samples do not tell us the destination value immediately before the early composite or which texels its UVs selected.
Claim. Open for one GPU contributor. Comment with your adapter and intended fixture. Main development owns the local executable trace.
Deliverable. A source-built two-pass D3D12 fixture using different colours in the source centre, source corner and pre-existing destination. Capture the source, destination immediately before the draw and destination immediately after on the same command list. Cover a drawn centre, clipped centre, and a UV that selects the corner. Report viewport, scissor, blend and colour-write mask. Reuse the existing draw readback fence.
Acceptance. Register and run
ctest --preset dev --no-tests=error -R '^startup_composite_provenance_(hardware|warp)$' -V. The GPU readback must distinguish all three cases. Include a changed UV or write mask that breaks the expected result. Report adapter, driver, revision and skips. Independent of the 1D SRV change. Post only the synthetic fixture and result summary.@MasterDomino on GitHub · 2026-11-24 15:32 UTC · original
I'd like to take this. Adapter: AMD Radeon RX 9070 XT (driver
32.0.31044.16) plus WARP10.0.26100.9818, Windows 11 26H2 build 26300.9974, debug layer on.Intended fixture (
startup_composite_provenance_{hardware,warp}): one command list, two passes. Pass 1 fills the composite source with distinct colours in its centre and corners; the destination is pre-cleared to a third colour. Readbacks of the source, the destination immediately before the composite draw and the destination immediately after it, all on the same list with the existing draw readback fence. Cases: a drawn centre, a centre clipped by the scissor, and a UV that selects the source corner, each with viewport, scissor, blend and colour-write mask reported. Breaking controls: a changed UV and a write mask that drops channels, which must each fail the expected result. Only the synthetic fixture and the result summary will be posted.AI-assisted.
@MasterDomino on GitHub · 2026-11-24 15:38 UTC · original
Fixture PR: #1642 (
startup_composite_provenance_{hardware,warp}). One list: source (blue base, green centre, red corner), destination cleared to magenta, readbacks of source / destination before / destination after behind one fence. Drawn centre → green, clipped centre → magenta retained, UV-to-corner → red; all 4096 pixels match the model on RX 9070 XT (32.0.31044.16) and WARP10.0.26100.9818, debug layer on, zero errors. The moved-UV and red|alpha write-mask mutants break it (4096 and 1088 mismatches).AI-assisted.
@R0Y00 on GitHub · 2026-11-24 15:58 UTC · original
Thanks for the fixture. #1642 merged at
b976cf5e. Windows Release independently passed both registered hardware and WARP cases with zero skips. The three destination centres are distinct, and both the moved-UV and write-mask controls detect a mismatch. This completes the source-built readback task. The local executable trace continues separately in #870.