Wine: safe file-backed XMem and compiler fixes for RTX 4060 Laptop #1226
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1226"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by pickles976 on 2026-11-28T15:59:21Z.
Summary
Add opt-in, copy-safe disk backing for Wine physical pages, together with two credited compiler prerequisites. On an RTX 4060 Laptop (8 GiB VRAM), 16 GiB system RAM, Linux 6.17 / Wine 11 / NVIDIA 590.48.1, the user observed correctly-looking rendered imagery with this combination. Rendering was very laggy. This is not a claim of controllable gameplay, complete rendering correctness, 30 FPS, or long-run stability.
Tested production source is based on
e7d8150defa7713b6f839561c45da9a26aa88620; the four commits separate borrowed compiler changes, Wine backing integration, and documentation. Lab observers, assets, saves and captures are not included.Changes and attribution
13bc184ed3: adapt #1103 (1a35cb316a8f3ef8019299d73daa61b9ca3e96a8) to evaluate lane-mask decisions iteratively instead of exhausting the compiler stack. This credits the existing owner proposal, not a new independent discovery; it can be merged separately.f26bce985d: adapt Marvisak/VIctory#2309,ec845d633b47e4f98789a8f0353c172f3070d942, for single-latch DXIL loops/phi rewrites, preserving normalization through folding. No enlarged worker stacks or shader-acceptance changes.bc8ce50fc2: adapt the backing policy from Marvisak/VIctory#2519,646c17cc666f7f92464768cb8de45ac814558820, to this fork's aliases, retained DirectStorage windows and native import paths. Backing is opt-in; default pagefile behavior remains unchanged. Creation failure is an allocation failure, not a silent RAM fallback. File-backed/stale-generation sections cannot be imported natively; eligible handles are duplicated under the registry lock. CPU/GPU copy paths remain available.72657763d9: document setup, evidence and limitations indocs/linux-proton.md.Configuration tested
Fork
apps/victory/src/play.rssettings retained, with:Use a real disk filesystem for the configured cache/physical-pages directory, not tmpfs. Optional
[paths].physical_pages_dirselects an absolute directory outside the checkout. Final ordinary release deletes the backing; killing the whole Wine scope can leave named files, so never delete files belonging to a live process.Series S / requested 720p internal and 1080p output, no DLSS/frame generation. The fork's existing BVH-builder disable, ambient-lighting estimates and two shader exclusions remain. No new shader skips, watchdog bypass or safety-limit increases. All title runs retained 9 GiB/512 MiB scope memory/swap limits and external GPU/RAM/disk stops.
Verification
Windows-MSVC builds used Rust 1.98.1 and Wine. Relevant GPU checks and the rendering run used app-local stock assertion-enabled vkd3d-proton
2576c0b4adfae4a, not the installed diagnostic-relaxed pair. Physical NVIDIA adapter selected; no WARP certification.fdd56d97a806bcca: baseline emitted and SDK-validated but stack-overflowed/timed out during native PSO creation. Modified source emits, SDK-validates and creates the native PSO on stock vkd3d at normal stack size (2.115 s). Original-program dispatch is not claimed.8b2fc58820110515e878b1e79722bc8e7fa28ae2baca37816aad8be215f3f0f2. Stock d3d12/core SHA256:fc2bbef02509fb11c334cc96dd211f64def94bb7b4eb82082a4808e6e0549543/9356501320114773be279506644aabd9a1717ff451d480ac802a4fd4e94b2576.The opt-in hardware regression is reproducible with
VICTORY_TEST_PAGE_DIRpointing to a writable disk directory visible to the Windows process, then the Wine-configured Cargo runner:Remaining bottleneck and limits
The 2026-11-28 15:48:40 UTC trial produced the user's rendering observation. Scheduled screenshots missed that scene. This is not a matched A/B isolating which patch enabled it; caches/input timing differed between runs.
memory.events max/ OOM / OOM-killfull avg10at ~200 sTitle and DirectStorage threads repeatedly waited in
folio_wait_bit_common/balance_dirty_pages. This supports a paging/writeback bottleneck, not inode-specific attribution or a GPU-only explanation. The supervisor stopped the run around 202 s after its kernel-journal query exceeded three seconds; this is not a diagnosed title crash. Exact-interval kernel logs contain no GPU fault/reset or OOM signature. A denied/proc/PID/syscallobserver read generated audit messages; removed from the local observer afterward.Earlier runs stopped on two-second
nvidia-smideadlines and recovered after shutdown. The #1199 / canonical #542 workaround alone did not eliminate that symptom. Do not relax the guards or treat those timeouts as proven GPU execution hangs.Next useful work is bounded streaming/reclaimable-memory demand, with matched frame/stage measurements—not raising the cap. Raw logs and proprietary captures remain local; this report contains the reproducible methods and measured results only.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by pickles976 on 2026-11-29T11:05:43Z.
Safety follow-up from our custom local performance integration, not clean current main and not an established regression of this Wine-support PR.
At2026-11-29T10:42:51Z the Intel display GPU reported:
The forcewake warning/call trace was in the error-capture path. The failed GPU context was Xwayland on Intel Raptor Lake-P UHD8086:a7a8; the game was rendering on the RTX4060 Laptop. Platform: Ubuntu kernel6.17.0-40, GNOME/Wayland, Xwayland2:23.2.6-1ubuntu0.8, Mesa25.2.8-0ubuntu0.24.04.4, Mutter46.2-1ubuntu0.24.04.18, NVIDIA590.48.1, Wine11, stock app-local vkd3d2576c0b4adfae4a. No kernel/driver setting changed.
This run used saved rendereraba888182c (SHA2562e1d7c3138bd9aa26cb37bbe3b73072e7753c8c72ba40496e92daa32f8978a9e); local source77b8fe08 adds tests/docs/comments only. The changed setting was the existing registered-copy allowance768MiB, after a real quota-exhaustion/disk-alias coherence gate passed. That does not establish that this setting caused the Intel hang. Texture/shader/resolution policies and all external guards stayed unchanged.
The kernel-fault monitor stopped the scope; launcher155.13s/137. NVIDIA peak5119MiB, availableRAMminimum3722.5MiB, diskminimum11.939GiB, scopepeak9GiB/max1103/oom0. All152 native guard queries completed(max800.62ms), independent observermax525.49ms; this was not the NVIDIA memory cutoff or a native telemetry deadline. Last150s image was a rendered cutscene, not gameplay/FPS proof. Scope is inactive/dead, and only four snapshot/inode-matched unheld generated backing files were reclaimed.
All GPU/title experiments on this host are now parked. A previous trial with another runtime also recorded an Intel desktop hang, but shared causality is unproved. No unchanged reproduction, higher limit, shader bypass, or display-stack stability claim. The root-only GPU error state could not be captured without user authorization; raw GPU dumps may contain private contents and will remain local. Exact kernel/desktop metadata/resources/stop evidence: nvidia-fork-trial-20261129T104020Z/{kernel-final.log,desktop-driver-metadata.json,verified-summary.json,error-capture-attempts.json,backing-cleanup.json}.
Subsequent private error-state inspection
The user has now captured the root-only i915 error state locally. Raw dump, decoded buffers and images remain private; no GPU workload was restarted. Offline decoding ran with device nodes hidden and network disabled.
The saved active context is Intel rcs0 / Xwayland, not a NVIDIA title-shader instruction pointer. The captured batch head is at an end-of-batch PIPE_CONTROL cache flush/post-sync write following a rectangle draw. A flush can wait for preceding work: this does not identify the initiating shader, memory or driver defect. The old IGT decoder mislabels some Gen12 packet fields; the relevant packet lengths/fields were checked against Mesa25.2.8 Gen120 definitions, not accepted from those legacy annotations.
The dump also confirms the pre-existing boot setting
i915.enable_guc=0and execlists submission. No boot/driver setting was changed by this trial or investigation. The dump capture timestamp is45ms after the last x11grab PNG modification; kernel hang logging follows later. This temporal association is not proof that screenshot capture caused the fault. Another Raptor Lake-P report has failures with both GuC enabled and disabled (different hardware/signature): https://github.com/ublue-os/bazzite/issues/6029 . Do not treat a GuC toggle as a verified remedy.The performance/gameplay safety hold remains. Further work belongs in Intel/Mesa/Xwayland driver triage with the private dump, not another unchanged title trial or a higher memory limit.