mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1631] [MERGED] d3d12: test that a view past the title-window cap is never the raw VA (RT-TITLE-WINDOW-OVERFLOW) #1646
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#1646
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/1631
Author: @Tyrannys
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:title-window-overflow📝 Commits (3)
6d66718d3d12: title memory past the window cap names a zeroed scratch window (RT-TITLE-WINDOW-OVERFLOW)2c7440fMerge main into title-window-overflow02d719cMerge main into title-window-overflow; keep only the window-cap test📊 Changes
2 files changed (+110 additions, -0 deletions)
View changed files
📝
runtime/CMakeLists.txt(+4 -0)📝
runtime/test/d3d12_title_va_test.cpp(+106 -0)📄 Description
Claimed in the coordination issue as: RT-TITLE-WINDOW-OVERFLOW (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154369840)
Now test-only
This PR first added a zeroed scratch window for title memory past
LEONIDA_TITLE_WINDOWS_MB, so the GPU would never get the title's raw VA (#1537: one read of it loses the device). Main has since fixed the runtime side another way, inba626820e: past the cap (or with the arena full) a title address is backed by the persistent geometry copy, or else every view writer writes a zero-size V# (no base, no records: loads 0, stores dropped). The raw VA never comes out. That also covers the review points about a shared, writable scratch and the 16 MiB arena reserve, so the scratch window is dropped and the runtime and docs followmain.What is left is the test, because main had none that dispatches through an over-cap title address:
d3d12_title_window_caprunsd3d12_title_va_test --window-capwithLEONIDA_TITLE_WINDOWS_MB=0. Two CBVs of different pages of private title memory are written zero-size (base 0, 0 records, never the raw VA), no window is made, and a dispatch through one reads 64/64 zero words with no validation errors. No game files.Tested
Windows 11, RTX 4070 SUPER, RelWithDebInfo, on
main384abe5b0merged in:d3d12_title_window_cap,d3d12_title_va,d3d12_title_va_shadow,d3d12_geometry_views,d3d12_unmapped_vsharp,d3d12_title_index_window,d3d12_title_vertex_window,d3d12_api_descriptor_copy(_off),d3d12_rebound_*,title_va_alias,title_window_plan,title_window,geometry_views: 20/20 pass.The real-boot results earlier in this thread (QemmHD, sodove, whoalin1) were for the scratch-window version, not for main's route.
AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.