diff options
| author | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-27 10:17:58 +0100 |
|---|---|---|
| committer | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-27 10:18:31 +0100 |
| commit | 8e8fe24c4b43bdade990ab6d892491c755f63ed5 (patch) | |
| tree | 970fd49e4181c923175803b158060f313cf5e04d /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | 555cf92a1909a6b3c03f1830368dc7a9cd1f884a (diff) | |
d3d12: a stream-pool request that runs into windows gets one mapping over them, not a zero-size view (RT-TITLE-WINDOW-RETIRE)
#1920 stops a new pool extent at the next mapping in either view and, in
d78b0e90a, refuses a mapping shorter than the request: such a request
gets a zero-size view (loads 0, stores dropped). That keeps the views from
reaching past their copies, which the first version of this fix did not,
but a refusal is a regression for requests main served: a V# or a root
view (64 KiB, kRootViewBytes) that crosses from one extent into the next,
or starts inside one and ends past it. Stream-pool extents sit next to
each other, so these are common. Retail runs (local, RTX 5080): our
first version, which gave such requests a short mapping, crashed in the
title in one run (m176); with one mapping over the request instead, runs
m177-m179 ran without one. The crash's cause was not established.
At #1920's two refusals of a request longer than what would serve it
(the extent clipped by clip_title_pool_extent, or the mapping holding its
first byte), resolve_pool_memory now tries, after #1920's reuse,
cover_pool_request: one mapping over the request and every window it
reaches, each whole, in both views (title_pool_cover). It is entered with
the new TitleVaAliases::replace_twin, since add_twin refuses an overlap;
the windows it replaces are retired at the next submission like any
window nothing answers from (previous commit), and their bytes are not
charged to the budget twice meanwhile. With a range in the way that is not
a window (a slot-133 buffer, a geometry copy), or pages that are not
readable, #1920's refusal stands. #1920's own refusal when the window
cannot be made or entered is unchanged.
TitleVaAliases::resolve and resolve_title_memory already ask again for a
range that ends before the view (#1920); vsharp_address did not, so a
V# whose base lies in a short range was refused without asking: it now
asks resolve_title_memory first.
Tests: #1920's pass unchanged (their seam cases cross a range that is
not a window, which still gets a zero-size view). title_window_plan: the
cover takes a window whole in both views, refuses a buffer in the way and
past the cap, and replace_twin enters it where add_twin refuses.
d3d12_title_window_orphans: a 64 KiB CBV across two extents' seam gets
one 448 KiB mapping, a valid V# and the right words on the GPU, and the two
extents are retired at the next submission; without the cover its V# base
is 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions