HLE: a view mapped during PageWindow stays clean until window drop #3481
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3481
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?
@playcations on GitHub · 2026-11-27 07:27 UTC · original
Separate follow-up requested in the discussion of #2566: a title view mapped after a DirectStorage
PageWindowopens can remain clean after streamed bytes are visible, until that window drops. This is the pre-drop interval left outside #2566's pre-image fix; it is not the already-reported after-the-fact saved-byte regression.Reproduced on exact PR2566 head
89a4b63df5e75252cb58202fdf81f0ca03474161, based on main63bcca43c6a00a758510398fa43096ce7e4f7df0, with a deterministic CPU-only integration probe through the realxmemmapping and GPU write-watch code:page_windowwhile no title view shows it.0x22throughwindow.bytes(); the title mapping reads0x22.Tracked::clean()is still true and nothing is saved.The pre-drop assertion that the tracker must already be dirty fails. A positive control that holds
kernel_will_writefor the late view before tracking/taking it passes: it stays dirty during the write and retains no false pre-image. Both cases release their tracker and mappings before making the final assertions.This demonstrates the unreported interval. It does not execute a GPU copy-back or establish an observed gameplay overwrite. The risk described in the earlier review is that copy-back sees a clean tracker during that interval. A fix needs late mappings to participate in the active physical write, or needs to defer their copy-back until the write is reported; reporting only at window drop leaves this interval.
Environment: Ubuntu 26.04.1, Wine 11.22 Staging; Windows/MSVC-target HLE test binary built with Rust 1.98.1/cargo-xwin. Filter
modules::xmem::tests::late_window_: 1 passed, 1 failed at the intended pre-drop assertion. The container exposed no GPU and mounted no game data.For observation only, the private harness widens visibility of
watch,Tracked, and its existingtrack/take/clean/arm/savedAPIs; it does not alter their memory behavior. Those visibility changes are not proposed as a public API. Complete synthetic harness:Private integration harness patch
AI-assisted with Codex GPT-6.1 Sol. Checked the existing issues, claims and open PageWindow PRs; #2504 and #2566 cover the existing-view/post-write paths, but I found no separate issue for this remaining interval.
@kotekompotek on GitHub · 2026-11-27 08:34 UTC · original
Fixed in #3488 — based on plain main since the pre-drop failure exists there independently of #2566. The issue's exact probe fails before ("late title view is still clean after streamed bytes landed, before drop") and passes after; full victory-hle suite green, victory-gpu regressions: none. Note for landing order: this and #2566 touch the same physical-write area — whichever lands second needs a routine rebase.