upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/code_hooks_test.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 08:34:01 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 08:34:01 -0600
commit27c1673761cf479cf3e822f1353f20ad757bd2a3 (patch)
tree7a61fa994727fe97561978bce598bb6a1965f662 /runtime/test/code_hooks_test.cpp
parentec91d695ca5ffebbf327c2127ea49d89547a4e81 (diff)
d3d12: every title write-back range on one guarded page goes back (RT-TITLE-WRITEBACK-SAME-PAGE-RANGES)
DeviceState::write_back_titles handed each finished range to ShadowPages::write_back on its own. The first range that differed reopened its guarded page (kProtected cleared), and every later disjoint range on that page then read as written by the title and was dropped, though only the write-back itself had written there. Each shadow now takes all of its finished ranges in one call, sorted by address, and decides which pages are held once for all of them, before the first copy. The per-page decisions are allocated before the tracker's lock is taken. New test d3d12_title_window_write_back_ranges: 16 four-byte ranges 16 bytes apart on one guarded page of a title window. On main 1/16 reach the page (3/3 runs); with the fix 16/16, and the words between them keep the title's. Found by 73N1X in #1608. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions