Shaders: load DXC from host paths shadowed by console mounts #827
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/833"
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 JFyuhong on 2026-11-24T06:26:01Z.
A Windows SDK on
D:passed launcher preflight, but the title process searched the game's mountedD:for DXC. On this machine the title presented black frames until the SDK DLLs were copied to another drive. Related to the shader-cache path fix in #331.What is in it
Tested
scripts/test.ps1(debug workspace build and tests, four test threads): 714 reported passed, 0 failed, 41 ignored. Two GPU tests reportedSKIPPED(no native wave64). The optionalXCL_SAMPLE_*inputs were unset.cargo test --release -p xcl --test e2e title_loads_host_dxc_under_a_console_mount -- --exact --nocapture: 0 passed / 1 failed on main with the new test (compiler DLL not found), 1 passed / 0 failed on this branch.D:\Windows Kits\10\bin\10.0.26100.0\x64and displayed the player selection screen. A longer run reached 1,517 PresentX calls and hit the previously reported loading crash atgame_scarlett_master.exe+0x23cf683after 229 s (#675).Regression run
Release builds, read-only title mount, same working DXC directory on C: for both runs. Both used
scripts/smoke.ps1 -Game W:\game_scarlett_master.exe -Seconds 60.Main
PR
Not tested
AI use
Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T06:55:02Z.
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@beaa245:All green: loading DXC from host paths shadowed by console mounts builds and runs, the workspace has no new failure against
mainon this box (737 passed there), and nothing else changes verdict. Restored the tree afterwards; no game data, hardware adapter, no Wine.AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T08:09:37Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
9e24a1fonto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 705 passed, 11 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit ofgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(new flake, see #718 addendum). DXC host-path shadowing tests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by gavinnolan on 2026-11-24T17:54:47Z.
Hit this on my machine and this PR fixes it.
Setup: Windows 11 Home, NVIDIA GeForce RTX 2060 (driver 595.79), i7-10750H, 16 GB. XCL, DXC and the game are all on
D:(XCL inD:\dev\xcl, DXC 1.9.2609 inD:\dev\tools\dxc\bin\x64, game inD:\GTA6.Xbox.v1.0.2.1), so the defaultD:console mount shadows them.On
main(9e3831e): withXCL_DXC_DIR=D:\dev\tools\dxc\bin\x64, and again withdxcompiler.dll+dxil.dllcopied next toxcl.exeinD:\dev\xcl\target\release, XCL skipped both and fell back to the Windows SDK:With this PR merged onto
main9e3831e(clean merge), sameXCL_DXC_DIR:No "older than 1.8" warning. 180 s run of the retail title (
scripts/smoke.ps1, release build of the local merge): exit 0x0, 4376 frames, 0 device removals, 0 crashes, peak commit 15034 MB.upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
Imported from ivall/xcl. Originally posted by thaqiart139-alt on 2026-11-24T22:48:58Z.
Test report for this PR's head
9e24a1f, merged intomain689f2db(no conflicts), on AMD RDNA2 with native 64-lane waves and on a 32-lane NVIDIA card.Tested
XCL_ADAPTER.cargo test --workspace --no-fail-fast -- --test-threads=4:main689f2dbmain, from #1679's new fuzz tests, and both are already reported on #1679:fuzz_validate_and_gpu_0to_3(CreateComputePipelineState:0x8007000E)fuzz_validate_and_gpu_1(seed 540: res[833] = 0x7, CPU 0x6)title_loads_host_dxc_under_a_console_mount.SKIPPED tests (the same on
mainand with this PR)gpu::recomp::lower::tests:a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpugpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu, and the wave64 cases of itsf16/f32/f64/integer_programs_on_the_gpugpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwarelower_dxil's f16 arithmetic, f16 packed and f32 conversions: refused ("its #1426 semantics differ from the console's")heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)pso_measurement_compiles_an_exact_synthetic_record(Windows Developer Mode is off)gpu::dxil::geometry_tests::gpu_geometry_direct_records,emitted_ms_primitive_attribute_reaches_the_pixel_shader,emitted_ms_ps_draw_a_triangle,gpu_geometry_mode_es_gs_strip,gpu_geometry_mode_es_gs_strip_with_branches,gpu_mesh_mode_two_passeslower_dxil's f16 arithmetic, f16 packed and f32 conversions: refused, as aboveheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)pso_measurement_compiles_an_exact_synthetic_record(Developer Mode is off)Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:38:32Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
upstream-sync referenced this pull request2026-11-25 14:08:43 +00:00
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:15:39Z.
Triage (#1607) – head
9e24a1f#1769 and #2101 (open) solve the same problem, a console drive mount shadowing XCL's DXC folder, a different way: they exempt xcl.exe's folder,
XCL_DXC_DIRand the Agility SDK folder from the mount withVfs::own_folderin host.rs. This PR instead runs DXC's lookup and fingerprinting under the hooks' thread-local guard (vfs_hooks::with_host_io), so the Agility SDK folder is not covered.No problems found in the diff. The branch conflicts with main.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.