From 5c50099cd7aba25729fe141dcfac8d8ed6513d27 Mon Sep 17 00:00:00 2001 From: bmjask <> Date: Thu, 26 Nov 2026 06:36:04 -0800 Subject: [PATCH] Tests: seed resubmit lifetime identity The resubmit fixture manually published LastSubmit without first capturing the exact list address lifetime that note_resubmits requires. Exercise the real begin-submit reservation path before publishing the synthetic incomplete submit so the Windows test checks the detector rather than a stale fixture. Assisted-by: Codex (GPT-5.6-sol) --- crates/xcl/src/hle/d3d12x/alloc_pool.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/xcl/src/hle/d3d12x/alloc_pool.rs b/crates/xcl/src/hle/d3d12x/alloc_pool.rs index 21c1466c95..665352f455 100644 --- a/crates/xcl/src/hle/d3d12x/alloc_pool.rs +++ b/crates/xcl/src/hle/d3d12x/alloc_pool.rs @@ -2479,6 +2479,9 @@ mod tests { let (alloc, list) = (ids.as_mut_ptr() as usize, ids.as_mut_ptr() as usize + 1); let queue = 0x10usize as *mut c_void; created_on(list, alloc, D3D12_COMMAND_LIST_TYPE_DIRECT.0); + // A real first submission captures the list's exact address lifetime before it + // publishes LastSubmit. Seed that identity before constructing the synthetic submit. + drop(begin_submit(&[list as *mut c_void]).unwrap()); { let mut g = STATE.lock().unwrap(); let s = g.as_mut().unwrap();