mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1920] RT-STREAM-POOL-KEEP-VA-ALIASES: preserve live mappings when mirroring stream pools #1928
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#1928
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/1920
Author: @lixonik
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/stream-pool-keep-va-aliases📝 Commits (1)
c088fd5Keep live VA mappings when mirroring a stream pool📊 Changes
5 files changed (+156 additions, -54 deletions)
View changed files
📝
runtime/shims/d3d12_vulkan_device.cpp(+34 -51)📝
runtime/src/title_va_alias.h(+63 -3)📝
runtime/src/title_window_plan.h(+13 -0)📝
runtime/test/title_va_alias_test.cpp(+36 -0)📝
runtime/test/title_window_plan_bounds_test.cpp(+10 -0)📄 Description
Claimed in the coordination issue as: RT-STREAM-POOL-KEEP-VA-ALIASES
What and why
A stream-pool extent was checked for an existing mapping at its first byte. A live mapping could start later on either side of the pair. Publishing the entire extent then evicted that mapping, even if the new request only needed the free area before it. The runtime now limits new extents to the intersection of the CPU and GPU gaps. Registration checks both sides under one lock and publishes the pair together. Reusing the other view's mapping also stops at the next live range.
If a competing mapping appears while the copy is allocated, that mapping takes precedence. The unused backing follows the device's existing allocation lifetime.
This is on the stream-pool path reported during world start. The effect on a retail boot has not been measured.
Tested
title_va_alias_test,title_window_plan_testandtitle_window_plan_bounds_testpassed. The new overlap assertion failed against the original alias table.title_va_alias_testandtitle_window_plan_bounds_testpassed.python -I -B scripts/run_semantic_tests.py tests/semantic: 6,261 tests across 489 files, zero failures.GPUs tested: n/a (synthetic CPU tests)
AI-assisted.
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.