diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 14:20:49 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 14:20:49 +0100 |
| commit | f380834f908282da1fcf272ee5853ecd295b4f9e (patch) | |
| tree | 80206915962e7ff0680d15dab5f303f9029d9f36 /runtime/test/clzero_patch_test.cpp | |
| parent | f5c3ea2e0f3ec7a77e5fb89d30779198a82c38a9 (diff) | |
d3d12: a write-back's later runs in a tile its faulting copy reopened still go back (RT-WRITEBACK-TILE-REOPEN)
ShadowPages::write_back decided page by page, inside its loop, whether a page's GPU result goes back. A copy
that faults on another guard (a geometry watch cell) makes the handler reopen the whole 64 KiB tile on the
write-back's own thread (reopen_range, under the lock #2418 lets it reuse), which clears kClean and kProtected
there. The runs after it in the tile then read as written by the title: their GPU results were dropped from
a batch already taken off the queue, and the next forward copy put the title's older bytes over them.
The decision is now taken for every page of the range before the first copy, into a host-heap vector the
tracker keeps. A page the title wrote before the write-back (not guarded and not clean after the asking)
is still held, so the title's words win as before.
Test: d3d12_title_window_write_back_fault_tile (d3d12_title_va_test --window-writeback-fault-tile), the
#2418 fault case with a second dispatch on the third page of the tile and a title write on the second.
Found by DadaCap's review of #2418.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/clzero_patch_test.cpp')
0 files changed, 0 insertions, 0 deletions