GPU: distinguish a retained clear colour from a scene draw that writes it #1621

Closed
opened 2026-11-24 15:25:50 +00:00 by R0Y00 · 3 comments
R0Y00 commented 2026-11-24 15:25:50 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:25:50Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6585266241 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1628). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T15:25:50Z. --- 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 commented 2026-11-24 16:03:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:32:49Z.


I'd like to take this. Adapter: AMD Radeon RX 9070 XT (driver 32.0.31044.16) plus WARP 10.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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136210092 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1628#issuecomment-7136210092). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T15:32:49Z. --- I'd like to take this. Adapter: AMD Radeon RX 9070 XT (driver `32.0.31044.16`) plus WARP `10.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 commented 2026-11-24 16:03:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:38:01Z.


Fixture PR: https://github.com/R0Y00/Xbox2Windows/pull/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 WARP 10.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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136354291 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1628#issuecomment-7136354291). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T15:38:01Z. --- Fixture PR: https://github.com/R0Y00/Xbox2Windows/pull/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 WARP `10.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 commented 2026-11-24 16:03:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:58:41Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136923570 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1628#issuecomment-7136923570). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T15:58:41Z. --- 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.
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#1621
No description provided.