Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion crates/xcl/src/hle/d3d12x/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pub(super) unsafe extern "system" fn execute_indirect(this: *mut c_void, sig: us
match bind_abi(this, list, pso, gfx) {
Ok(()) => {
if compute {
match super::real::dispatch_chain::whole(pso) {
match super::real::dispatch_chain::whole(pso, super::real::dispatch_chain::ChainWholeReason::Indirect) {
Ok(Some(whole)) => list.SetPipelineState(&whole),
Ok(None) => {}
Err(e) => {
Expand Down
8 changes: 6 additions & 2 deletions crates/xcl/src/hle/d3d12x/real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3596,6 +3596,7 @@ pub fn end_title(code: u32) -> ! {
});
let watchdog = rx.recv_timeout(std::time::Duration::from_secs(1)).unwrap_or(0);
crate::log::flush();
chain_whole_capture::flush_global();
// the title's threads stop first: with its fences at the maximum a running title thinks
// the GPU is done and resets command allocators the GPU still runs (Fortnite: a device
// hang at the end of a run)
Expand Down Expand Up @@ -4326,7 +4327,9 @@ unsafe fn translated_compute_pso_once(this: *mut c_void, f: PsoFn, desc: *const
if super::pso_async::lazy() && crate::gpu::recomp::dxc::defer() {
return Some(Err(()));
}
let compiled = match console_to_dxil_for(cs, Stage::Compute, 0, wave32_only(this)) {
let split_wave64 = wave32_only(this);
let mem_windows = crate::gpu::recomp::pso::mem_windows();
let compiled = match console_to_dxil_for(cs, Stage::Compute, 0, split_wave64) {
Ok(b) => b,
Err(e) => {
note_translation_error(format!("CS: {e}"));
Expand All @@ -4348,7 +4351,7 @@ unsafe fn translated_compute_pso_once(this: *mut c_void, f: PsoFn, desc: *const
(result.0 >= 0).then_some((rs, result))
});
if let Some(plan) = compiled.dispatch_chain.filter(|_| warm.is_none()) {
if let Some(rs) = dispatch_chain::build(this, f, d, riid, ppv, record, &dxil, &compiled.samplers, plan) {
if let Some(rs) = dispatch_chain::build(this, f, d, riid, ppv, record, &dxil, &compiled.samplers, plan, mem_windows, split_wave64) {
LAST_COMPUTE_RS.with(|c| c.set(rs));
note_pso_rs(*ppv, rs as *mut c_void);
super::dred::label(*ppv as usize, &[("cs", Some(cs))]);
Expand Down Expand Up @@ -4402,6 +4405,7 @@ unsafe fn translated_compute_pso_once(this: *mut c_void, f: PsoFn, desc: *const
Some(Ok(hr))
}

pub(super) mod chain_whole_capture;
pub(super) mod dispatch_chain;
pub(crate) use dispatch_chain::log_counts as log_dispatch_chain_counts;

Expand Down
Loading
Loading