Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/xcl/src/hle/d3d12x/alloc_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down