diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-26 22:06:10 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-26 22:06:10 +0100 |
| commit | 0894ecd1747e22cd501f7811d57326c37241a03b (patch) | |
| tree | 5b18b5c36569a14a96f8c7cb592ea156c6dc003c /runtime/src/bcpack.cpp | |
| parent | fac8b4bb903b6988bd616e8874e77fa026858ffb (diff) | |
d3d12: the title write-back asks the write watch first and copies back only the bytes a copy changed
write_back_titles() runs at the start of the shadow refresh, before ShadowPages::refresh() asks the write watch,
so a hot page still carried kClean from the last asking and the title's writes since then were copied over
with the older copy. write_back() now asks first (the asking moves into ask_written_locked(), shared with
refresh()), holds pages whose mapping changed, that a kernel write may be filling, or that xmem aliases, and
copies back only the 256-byte pieces where a copy differs from the title's bytes: a read-only binding writes
nothing and its pages stay guarded, and of two copies of the same bytes only the one that differs is written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions