From 48ab3bc613d38820d1d54a6522bc969ea84ca512 Mon Sep 17 00:00:00 2001 From: bmjask <> Date: Thu, 26 Nov 2026 15:45:15 -0800 Subject: [PATCH] D3D12.X: own sparse upload staging bytes Retain the owned staging payload needed by the coordinated upload protocol without exposing the superseded serialized commit wrapper. Assisted-by: Codex (GPT-5.6-sol) --- crates/xcl/src/hle/d3d12x/sparse.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/xcl/src/hle/d3d12x/sparse.rs b/crates/xcl/src/hle/d3d12x/sparse.rs index 42ccff17ab..f530f6abf7 100644 --- a/crates/xcl/src/hle/d3d12x/sparse.rs +++ b/crates/xcl/src/hle/d3d12x/sparse.rs @@ -697,6 +697,15 @@ impl Drop for UploadReservation { } } +/// Private owned stand-in for a future mapped staging allocation. Keeping the copied bytes here +/// makes it impossible for the record/execute callback to retain a borrowed title-memory view. +#[allow(dead_code)] +struct OwnedUploadStaging { + range: UploadRingRange, + bytes: Box<[u8]>, +} + + #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub(super) enum PreparationOutcome { Ready,