upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorstar41905453-coder <star41905453-coder@users.noreply.github.com>2026-11-25 21:59:18 +0000
committerstar41905453-coder <star41905453-coder@users.noreply.github.com>2026-11-25 21:59:18 +0000
commit04290dd2d12e027ddfbd82ea6e482999610f279f (patch)
treeb50d6c9bc5bc9e10edf931b4e5a4413ee7096868 /runtime/src/bcpack.cpp
parent9f9a7c5f30f8559c52675780cf84004571b8d6e5 (diff)
d3d12: a window's GPU writes go back to the title's pages (RT-TITLE-WINDOW-WRITE-BACK)
A window of the title's memory is a read-side mirror refreshed before every submission, so a UAV or raw write into one landed in the copy and the title never saw it. At the world start that is the WRITE_INVALID device loss of #1537 (QemmHD, 160 s into the load, past the cap): the culling compute writes through addresses that name title memory, and nothing ever reads the result back into the pages. The layer now keeps every title range a submission's bindings reach (the resolve path, so root views, table V#s and created views alike) and copies those ranges from the copy to the title's pages at the start of the next refresh, before the forward copy. A page the title wrote in between takes the title's newer bytes and its GPU result is dropped; the tracker already knows those pages (guarded, hot and clean). Caps: 8,192 ranges and 64 MiB a submission, logged once; LEONIDA_TITLE_WRITEBACK=0 turns it off. Test: d3d12_title_window_write_back, a dispatch through a root UAV at the title's pages: the written words reach the pages, hold across two submissions, and a title write survives the next forward copy. No game files. Item: RT-TITLE-WINDOW-WRITE-BACK (claimed in #1608) Wine against llvmpipe.
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions