mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #2129] [MERGED] d3d12: a window's GPU writes go back to the title's pages (RT-TITLE-WINDOW-WRITE-BACK) #2134
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2134
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2129
Author: @star41905453-coder
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142
Base:
main← Head:rt-title-window-write-back📝 Commits (4)
04290ddd3d12: a window's GPU writes go back to the title's pages (RT-TITLE-WINDOW-WRITE-BACK)c5359a4d3d12: the window write-back waits for the submission that wrote (RT-TITLE-WINDOW-WRITE-BACK)fc1593ed3d12: the same write back covers a slot-133 shadow (RT-TITLE-WINDOW-WRITE-BACK)5fa864ed3d12: bound the write-back queue and say when a batch goes back unfenced (RT-TITLE-WINDOW-WRITE-BACK)📊 Changes
6 files changed (+400 additions, -2 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+12 -0)📝
docs/linux_proton.md(+4 -0)📝
runtime/CMakeLists.txt(+7 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+144 -1)📝
runtime/src/title_va_alias.h(+24 -0)📝
runtime/test/d3d12_title_va_test.cpp(+209 -1)📄 Description
Closes the world-start stop of #1537 (QemmHD's WRITE_INVALID, about 160 s into the load): a title window is a read-side mirror, so a UAV or raw write into one landed in the copy and the title never saw it.
What it does
LEONIDA_TITLE_WRITEBACK=0turns it off.It also covers the slot-133 case: a placed buffer whose pages the driver will not import is a shadow too, and a write through it landed in the copy exactly the same way. The pages there are title memory, the buffer's alias resolves through the same noter and the tracker carries the range, so the mechanism needed nothing new — only proof,
d3d12_placed_write_back.Test —
d3d12_title_window_write_back(new ctest entry,--window-writeback): a dispatch through a root UAV at the title's own pages. The pages stay untouched until the next submission, then hold exactly the words the shader wrote, across two submissions, and a title write survives the next forward copy. No game files.Run — Linux, Wine 10, Mesa llvmpipe (no GPU on this box). The 21 failures of a full 448-test run are environmental and were confirmed by running the same list on unmodified
main(9f9a7c5f3): every one fails there too, most withWARP reference unavailable, and the title tests pass there. Nothing in this diff causes a failure thatmaindoes not already have.d3d12_title_va,d3d12_title_va_shadow,d3d12_geometry_views,d3d12_title_window_cap,d3d12_title_window_write_back,d3d12_placed_write_back: pass.ctest -R 'write_back|title|shadow|alias|arena|stream': 20/20 pass.main(baseline above); 7 of themxmem/file_system/bcrypt_rng/root_sigare Wine gaps, the rest sayWARP reference unavailable.gta6rt --runoftiny_asyncthrough the rebuilt loader:PASS, exit 0.What is still wanted: a retail
--runpast the cap on a GPU (the package is 208 GiB and this box has 36), withLEONIDA_DEVICE_FAULT=1if it still dies.Item: RT-TITLE-WINDOW-WRITE-BACK, claimed in #1608.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.