Launcher: resolve relative XCL_DATA_ROOT before starting the host #3083
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3083"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Gevroska on 2026-11-28T00:58:12Z.
A relative
XCL_DATA_ROOTcaused the launcher to writeboot.jsonrelative to its own working directory. The host starts in the game directory, so it tried to open the same relative path from there and exited before starting the guest.What is in it
boot.json. The launcher and host use the same absolute directory.boot.json.XCL_DATA_ROOT.Tested
36c542ad28609c694381b0fb0d2e332281f63efb.Libtest totals 1465 passed, 0 failed, 47 ignored, 0 filtered out
27 explicit runtime skip messages
SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64
SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))
The native suite summary has 27 structured skip messages. The raw output also records two bundled debug-layer cases skipped because the SDK layer was unavailable. The bundled relative-path regression ran and passed.
SKIPPEDlines, including repeat notices. The hardware run above exercised the excluded fixture.6089122afailed the relative-root launch with0x07C10001before guest entry. The fixed relative launch completed all 50 bundled guest checks and presented one frame. Both absolute-root controls completed the same 50 checks and one present.Regression run
The matched release smoke uses the same offline title, RTX 3080, DXC and 60-second duration. Both arms start from separate copies of the same partial DXIL cache, use on-demand shader compilation with
XCL_PREPARE=0, and receive no input. Full archive preparation exceeded the baseline startup allowance before guest entry.Not tested
AI use
I checked, reviewed, and approved this PR myself.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T02:08:03Z.
Tested
Clean
36c542ad28609c694381b0fb0d2e332281f63efbon Windows 11 25H2 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 (PCI8086:56a0, driver32.0.101.9175), Rust 1.100.1 MSVC debug, and DXC/DXIL 1.9.2602.17.I reran the pinned stock launcher and bundled test title with
xcl.exe run L:\<fixture-game> -- --hello,XCL_ADAPTER=A770, andXCL_DUMP_SHADERS=1. Both runs started from fresh launcher working directories on C:, with the fixture on a separate NTFS volume (L:). The first usedXCL_DATA_ROOT=data. The control set it to an absolute C: path. The shared Arc lock covered both runs, and the launcher/host, guest executable, fixture DLL, and wrapper hashes matched before, during and after the lock.boot.jsoncontained the expected absolute C: data directory and L: game and executable paths. The host initialized the physical Arc A770 before loading the bundled DLL, and the guest reached its final summary. The L: fixture tree was unchanged.CreateMasteringVoicereturned0x80070490. Both runs failed the sameRSSetDepthBiasXreadback, with a blue top-right pixel where the fixture expected green. Host and launcher each returned 1, and neither report recorded a crash. The wrapper exited 0 after collecting both native statuses.CreateSwapChainForHwnderror0x887A0022and recorded 0 actual presents in each run.Not tested
Base revision, retail titles, interactive display or audio output, performance, and the full workspace suite.
AI use
T3 Code through the Codex harness (
gpt-6.2-sol) verified fixture provenance, ran the cross-volume checks, and wrote this report.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:28:12Z.
Triage (#1607) – head
36c542aNo open or merged PR resolves a relative
XCL_DATA_ROOT(#1173 is about dot-only title names).launcher.rs:run_with_uimakesdata_dirabsolute before the host starts in the game directory, and the e2e test now runs with a relativeXCL_DATA_ROOTand checksboot.json'sdata_dir, so it fails without the fix. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T12:24:42Z.
merge-check
base:
493dbd3dd0head:
36c542ad28merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2900 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (+16/-3). The bug is real:
data_root()(launcher.rs~11) returnsXCL_DATA_ROOTas given, theboot.jsonpath built from it reaches the host throughXCL_HOST, and the host starts with the game folder as its working directory (spawn_host(cmdline, &root, ...)), so a relative path resolves there instead.std::path::absolute(~305-315) is the right tool: a plain drive path with no\\?\prefix, and the folder doesn't have to exist, unlikecanonicalize. Only the launcher reads the variable (shaders.rs~69 just keeps it out of a hash). Findings (minor): the regression test (e2e.rs~141-142, ~177) runs insidetest_title_runs_and_game_folder_is_untouched, which CI skips (ci.yml~54), so only GPU machines run it; it ran in the suite here. Fine: it resolves beforexcl.tomlandboot.jsonare used, and the README line matches.smoke.ps1passes an absolute path, so no smoke run.performance: no smoke run (the default path doesn't reach this change); not measured. Launcher-only, and
smoke.ps1passes an absolute data root. Its regression test runs insidetest_title_runs_and_game_folder_is_untouched, which passed here (CI skips it). The first run of this merge lost the lib test binary to the knownuma_drivercoherent-window abort; this is the rerun.verdict: safe to merge
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T17:25:38Z.
merge-check
base:
6bfb5c5153head:
36c542ad28merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 0 failed, 51 ignored (base: 2904 passed, 0 failed, 51 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none
review: read the whole diff (3 files, +16 -3). No findings.
run_with_uimakes a relativedata_root().join(title)absolute withstd::path::absolutebefore it opensxcl.tomlor writesboot.json. The host, started in the game folder, then gets an absolutedata_dir.data_root()(main.rs:117,133,137:last-game.txt,last-console.txt) run in the launcher's own working directory, so a relative root is right there. No other code readsXCL_DATA_ROOT:shaders.rs:69only leaves it out of the warm-settings hash.launcher.rswith this PR's e2e change makese2e::test_title_runs_and_game_folder_is_untouchedfail. The host printscannot read data\XCL.TestTitle\cache\boot.json: The system cannot find the path specified. (os error 3), which is the bug the PR describes. With the fix it passes, in the suite above. Good.performance: none: one path resolution at launch.
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)