Repository navigation
Conversation
|
I checked GPU output parity for the indirect whole-pipeline fallback on RTX 5070 / NVIDIA 616.92 at head The guarded console compute program went through the production I repeated both controls in fresh processes with the translated cache disabled and enabled: four focused passes, zero skips. Settings included This validates the selected whole fallback and GPU results for this synthetic program. The harness does not execute the title's AI use: OpenAI Codex with GPT-6.2 Astra built and ran the fixture; Codex reviewed and prepared this report. |
|
Thanks for running the parity check through the production hook and AI use: Claude Code (Claude Opus 5.5) wrote this reply; Prime posted it. |
|
Combined Windows check of #3047, #3048, #3049, and #3050. I applied exact heads
The same nine test instances failed on both trees, including the shader-cache test; the combination added six passes and no new suite failure on this machine. I would not call the four drafts ready together yet: the two boundary failures below still need fixes. This test does not establish world-load RAM savings. I found a correctness gap in #3047's deferred whole shader. If Candidate #3047 fix and isolated regressiondiff --git a/crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs b/crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs
index 4f8f069e..2da19c2f 100644
--- a/crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs
+++ b/crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs
@@ -71,11 +71,12 @@ impl PipelineBuilder {
struct WholeSource {
console: Vec<u8>,
wave32: bool,
+ windows: u32,
}
impl WholeSource {
fn code(&self) -> Result<Vec<u8>, String> {
- crate::gpu::recomp::pso::console_to_dxil_for(&self.console, pso::Stage::Compute, 0, self.wave32).map(|c| c.dxil)
+ crate::gpu::recomp::pso::console_to_dxil_in(&self.console, pso::Stage::Compute, 0, self.wave32, self.windows).map(|c| c.dxil)
}
}
@@ -132,7 +133,7 @@ pub(super) unsafe fn build(this: *mut c_void, create: PsoFn, desc: &D3D12_COMPUT
let mut pieces = built.into_iter().collect::<Option<Vec<_>>>()?.into_iter();
let first = pieces.next()?;
let chain = Arc::new(Chain { builder, tail: pieces.collect(), words: plan.dwords_per_group,
- whole_source: WholeSource { console: console.to_vec(), wave32 }, whole: OnceLock::new(), build_whole: Mutex::new(()), whole_sent: Default::default() });
+ whole_source: WholeSource { console: console.to_vec(), wave32, windows: pso::mem_windows() }, whole: OnceLock::new(), build_whole: Mutex::new(()), whole_sent: Default::default() });
PROGRAMS.fetch_add(1, Ordering::Relaxed);
PIECES.fetch_add(plan.pieces.len() as u64, Ordering::Relaxed);
*result = first.into_raw();
@@ -351,11 +352,52 @@ mod tests {
}
Err(e) => panic!("the console program does not translate: {e}"),
};
- let source = super::WholeSource { console: blob.clone(), wave32: false };
+ let source = super::WholeSource { console: blob.clone(), wave32: false, windows: crate::gpu::recomp::pso::mem_windows() };
assert_eq!(source.code().unwrap(), first, "the DXIL the chain was split from");
assert!(source.console.len() < first.len(), "a chain keeps less than the DXIL: {} against {}", source.console.len(), first.len());
}
+ #[test]
+ fn deferred_whole_keeps_the_original_memory_window_mode() {
+ // The title-window setting is process-global; keep the variant comparison
+ // out of the parallel workspace test process.
+ const CHILD: &str = "XCL_TEST_DEFERRED_WHOLE_MODE_CHILD";
+ if std::env::var_os(CHILD).is_none() {
+ let status = std::process::Command::new(std::env::current_exe().unwrap())
+ .args(["--exact", "hle::d3d12x::real::dispatch_chain::tests::deferred_whole_keeps_the_original_memory_window_mode", "--nocapture", "--test-threads=1"])
+ .env(CHILD, "1")
+ .status()
+ .unwrap();
+ assert!(status.success(), "isolated memory-window regression failed");
+ return;
+ }
+ use crate::gpu::recomp::{pso, HEAP_WINDOWS};
+ use crate::gpu::recomp::pso::Stage;
+ use crate::gpu::xbox::tests::{fssm, sample};
+ let code: Vec<u8> = [
+ crate::gpu::rdna2::encode("GLOBAL_STORE_DWORD", "ENC_FLAT_GLBL", &[("ADDR", 0), ("DATA", 0), ("SADDR", 0)], None).unwrap(),
+ crate::gpu::rdna2::encode("S_ENDPGM", "ENC_SOPP", &[], None).unwrap(),
+ ].concat();
+ let mut f = fssm(&code, &[(6, 0)]);
+ f[0x138..0x13c].copy_from_slice(&4u32.to_le_bytes());
+ for offset in [0x13C, 0x140, 0x144] {
+ f[offset..offset + 4].copy_from_slice(&1u32.to_le_bytes());
+ }
+ let blob = sample(5, &[f]);
+ pso::set_title_windows(2 | HEAP_WINDOWS);
+ assert_eq!(pso::mem_windows(), 2 | HEAP_WINDOWS);
+ let (expected, source) = pso::in_switch_form(|| {
+ assert_eq!(pso::mem_windows(), 2);
+ let expected = pso::console_to_dxil_for(&blob, Stage::Compute, 0, false).unwrap().dxil;
+ let source = super::WholeSource { console: blob.clone(), wave32: false, windows: pso::mem_windows() };
+ (expected, source)
+ });
+ let ambient = pso::console_to_dxil_for(&blob, Stage::Compute, 0, false).unwrap().dxil;
+ assert_ne!(ambient, expected, "fixture must distinguish heap and switch forms");
+ assert!(source.code().unwrap() == expected, "whole form must use the chain's memory mode");
+ pso::set_title_windows(0);
+ }
+
const MB: u64 = 1 << 20;
#[test]For #3048, a separate focused regression shows that the opt-in driver-cache switch can deny a title-owned lookalike path. The #3049 heap-counter self-attribution was already reported, and #3050 has existing upload-cap and readback coverage. I did not duplicate those tests. I have not run a combined retail title, measured RAM or frame times, or produced clean-commit paired smoke blocks for these drafts. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), rustc 1.99.1 MSVC, SDK DXC 1.8.2502.11. AI use: Codex (GPT-6.2 Sol) combined the drafts, resolved the local conflict, ran both suites and the focused regressions, and drafted this report; Codex (GPT-6.2 Astra) independently traced the #3047 and #3048 code paths. |
|
Wine corroboration of @thehollowedone's deferred-window finding above, on standalone #3047 head A local ignored/fresh-process CPU regression builds a real synthetic memory-store program inside Wine11/Linux6.17, Rust1.98.1 Windows-MSVC target, DXC/dxil1.9.2609.5. Original fresh build32.77s; corrected source was freshly compiled33.62s in the intervening fixture build, then this isolated check reused that same binary (0.05s Cargo /0.03s test). Local paths:
This supports preserving the successful fallback choice/cache identity. It does not demonstrate a root-signature incompatibility—the source documents common bindings—or a retail crash, memory saving, Game-Init fence fix, or asynchronous Late-path correctness. Local production correction/test retained; no contribution PR. AI-assisted local verification. Completed retained-source GPU follow-through (same local mode correction)On The earlier absent-chain fixture was misconfigured: it omitted the FSSM Wave32 header (
Each process uses a distinct private disk-cache directory. The in-process translation cache remains enabled and its hit counts are asserted in both legs; this is not an all-caches-disabled test. No ExecuteIndirect, asynchronous |
|
I checked the previously untested asynchronous With The harness invokes AI use: OpenAI Codex with GPT-6.2 Astra built and ran the fixture; Codex reviewed and prepared this report. |
Refresh xcl-dev#3047 on the current NVIDIA base while preserving its worker protections. Keep smaller console shader sources instead of whole DXIL copies and save the original window and wave settings for later whole-form builds. The legacy worker-setting control fails as expected and all seven targeted module tests pass; clean-head retail and full workspace validation remain pending. Assisted-by: Codex (GPT-6)
79aaead to
3780227
Compare
A split compute chain now retains its smaller console shader source instead of an additional whole-program DXIL copy. When an indirect dispatch needs the whole form, it reconstructs it with the original wave mode and memory-window form. Part of #2688.
What is in it
54225f5884a94cd23b7aab3f703a7c975070aa77, preserving the current persistent worker, panic recovery, title-thread accounting and submission guard.mem_windows()value alongside wave32 at the initial translation. The later worker usesconsole_to_dxil_inwith those saved settings; it does not recompute thread-local switch/heap selection.e429936cstill retainsChain::whole_code. Shaders: share owned bytecode across derived and pending pipelines #3091 covers shared SDK-derived bytecode; D3D12.X: pipelines that share a shader share one copy of its bytes #827 covers async descriptor interning; Recompiler: count split shader pieces in the NVIDIA cache budget #3103 covers cache admission accounting. Those are distinct allocation owners. This updates the existing PR, not a new competing implementation.Tested
cargo test --locked -p xcl --lib --target-dir <isolated-target> --no-run: both control and corrected binaries built.cargo test --locked -p xcl --lib --target-dir <isolated-target> hle::d3d12x::real::dispatch_chain::tests:: -- --nocapture --test-threads=1: 7 passed, 0 failed, 0 ignored, 1,801 filtered; no SKIPPED messages.the_whole_worker_preserves_each_programs_memory_windowswith--exactgave 0 passed, 1 failed, 0 ignored, 1,807 filtered; no skips. It reconstructed the wrong0x104memory-window form. This is a behavioral control, not a run of the untouched old PR head.Regression run
Pending new paired clean-head main/PR title runs for
37802271a56db9201209b801cc15fe9fa09ab83b. The old79aaead0smoke results are historical and do not validate this refresh.Not tested
AI use
The original retention change was written with Claude Code (Claude Opus 5.5), as recorded in the previous description. Codex (GPT-6) reviewed duplication and worker identity, refreshed the change, added and ran the focused control/tests, and updated this PR at Prime's request.
Optional temporary Discord for coordinating contributor work, testing and comparing results: https://discord.gg/gK3y7WRRY