VFS: hook FindFirstFileExA, which Windows does not send to the W hooks #1254

Open
emirduran707 wants to merge 1 commit from upstream-pr/1264 into main
emirduran707 commented 2026-11-24 13:59:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-24T13:59:05Z.


FindFirstFileExA was not hooked, and on Windows it does not go through the hooks that are: kernel32!FindFirstFileExA jumps to its own kernelbase export, and that reaches neither FindFirstFileExW nor FindFirstFileA. Measured on Windows 11 26300 by replacing each of those with a stub that fails: FindFirstFileExA("C:\Windows\*") still listed the folder, while a stub on kernelbase!FindFirstFileExA itself stopped it. #59 noted that FindFirstFileExA works through the W hooks; that was measured under Wine, where it holds.

So a title's FindFirstFileExA("G:\data\*", …) went straight to Windows. With no G: on the PC it failed with ERROR_PATH_NOT_FOUND; with a PC drive of that letter it listed the PC's folder; and a real path into the game folder listed the original files, without the overlay's files and with deleted ones still there.

hk_find_first_ex_a handles it like hk_find_first_a: the same info levels and search ops as the W hook go to the merged listing (find_first_vfs, then converted to WIN32_FIND_DATAA), and the rest pass through. FindNextFileA and FindClose already handle the merged handle.

What is in it

  • crates/xcl/src/vfs_hooks.rs: the hook and its entry in the kernelbase list.
  • crates/xcl/tests/vfs_find_ansi.rs (new; an integration test, since the hooks act through the global VFS): a game folder with two files, an overlay with a third and a deletion of one original. Listing G:\data\* with FindFirstFileExA/FindNextFileA/FindClose at info levels 0 and 1 must give exactly the merged names.

Tested

  • AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release
  • cargo test --workspace -- --test-threads=4 on 3755c18: 742 passed, 0 failed, 41 ignored; no SKIPPED GPU tests
  • the new test without the hook's entry: FindFirstFileExA("G:\\data\\*", 0) failed: error 3; with it it passes
  • a first smoke run of this commit showed 924 frames, with a slow load while other builds were using the CPU; the run below was made again with nothing else running

Regression run

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1541 (PresentX 1541)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19650 MB

this PR:

xcl-smoke v1
commit: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1545 (PresentX 1545)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19501 MB

Not tested

  • Wine: the hook expects kernelbase to export FindFirstFileExA.
  • A title that calls FindFirstFileExA directly; the smoke title's run is a regression check only.
  • NVIDIA and Intel GPUs.

AI use

  • Claude Code with Claude Opus 5.5: found the problem, wrote the change, the test and this description; I reviewed the diff and ran the tests and smoke runs above.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5473570128 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-24T13:59:05Z. --- `FindFirstFileExA` was not hooked, and on Windows it does not go through the hooks that are: `kernel32!FindFirstFileExA` jumps to its own `kernelbase` export, and that reaches neither `FindFirstFileExW` nor `FindFirstFileA`. Measured on Windows 11 26300 by replacing each of those with a stub that fails: `FindFirstFileExA("C:\Windows\*")` still listed the folder, while a stub on `kernelbase!FindFirstFileExA` itself stopped it. #59 noted that `FindFirstFileExA` works through the W hooks; that was measured under Wine, where it holds. So a title's `FindFirstFileExA("G:\data\*", …)` went straight to Windows. With no `G:` on the PC it failed with `ERROR_PATH_NOT_FOUND`; with a PC drive of that letter it listed the PC's folder; and a real path into the game folder listed the original files, without the overlay's files and with deleted ones still there. `hk_find_first_ex_a` handles it like `hk_find_first_a`: the same info levels and search ops as the W hook go to the merged listing (`find_first_vfs`, then converted to `WIN32_FIND_DATAA`), and the rest pass through. `FindNextFileA` and `FindClose` already handle the merged handle. **What is in it** - `crates/xcl/src/vfs_hooks.rs`: the hook and its entry in the kernelbase list. - `crates/xcl/tests/vfs_find_ansi.rs` (new; an integration test, since the hooks act through the global VFS): a game folder with two files, an overlay with a third and a deletion of one original. Listing `G:\data\*` with `FindFirstFileExA`/`FindNextFileA`/`FindClose` at info levels 0 and 1 must give exactly the merged names. **Tested** - AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release - `cargo test --workspace -- --test-threads=4` on 3755c18: 742 passed, 0 failed, 41 ignored; no SKIPPED GPU tests - the new test without the hook's entry: `FindFirstFileExA("G:\\data\\*", 0) failed: error 3`; with it it passes - a first smoke run of this commit showed 924 frames, with a slow load while other builds were using the CPU; the run below was made again with nothing else running **Regression run** main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: AMD Radeon RX 9060 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1541 (PresentX 1541) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19650 MB ``` this PR: ``` xcl-smoke v1 commit: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d gpu: AMD Radeon RX 9060 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1545 (PresentX 1545) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19501 MB ``` **Not tested** - Wine: the hook expects `kernelbase` to export `FindFirstFileExA`. - A title that calls `FindFirstFileExA` directly; the smoke title's run is a regression check only. - NVIDIA and Intel GPUs. **AI use** - Claude Code with Claude Opus 5.5: found the problem, wrote the change, the test and this description; I reviewed the diff and ran the tests and smoke runs above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DavidM1911 commented 2026-11-24 14:06:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T14:05:33Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --test vfs_find_ansi: 1 passed, 0 failed.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7133826451 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1264#issuecomment-7133826451). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T14:05:33Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - cargo test -p xcl --test vfs_find_ansi: 1 passed, 0 failed. Thanks!
thehollowedone commented 2026-11-24 15:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-24T14:09:03Z.


Independent native Windows check on 3755c18, Windows 11 build 26300, Rust 1.99.1 MSVC, debug.

I extended the synthetic fixture to enumerate the same wildcard through the game folder’s absolute Windows path as well as G:. With both FindExInfoStandard and FindExInfoBasic, the PR returned added.txt and original.txt for the absolute path. Restoring the parent hooks returned deleted.txt and original.txt instead. A separate unmapped host directory listed correctly in both builds and at both info levels. The stock G: assertions passed on the PR.

Synthetic files only. AI-assisted. Codex (GPT-6, exact variant unavailable) extended and ran the scratch fixture and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7133918328 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1264#issuecomment-7133918328). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-24T14:09:03Z. --- Independent native Windows check on [`3755c18`](https://github.com/ivall/xcl/commit/3755c18e492f3f1e4bf473a6e1cfcddf3480d46d), Windows 11 build 26300, Rust 1.99.1 MSVC, debug. I extended the synthetic fixture to enumerate the same wildcard through the game folder’s absolute Windows path as well as `G:`. With both `FindExInfoStandard` and `FindExInfoBasic`, the PR returned `added.txt` and `original.txt` for the absolute path. Restoring the parent hooks returned `deleted.txt` and `original.txt` instead. A separate unmapped host directory listed correctly in both builds and at both info levels. The stock `G:` assertions passed on the PR. Synthetic files only. AI-assisted. Codex (GPT-6, exact variant unavailable) extended and ran the scratch fixture and drafted this report.
DavidM1911 commented 2026-11-26 05:05:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T04:40:50Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7182807761 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7182807761). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T04:40:50Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Decodere commented 2026-11-27 13:08:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T13:08:44Z.


Independent desktop NVIDIA verification of PR #1264 at head 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d (1 commit; exact parent & merge-base: 47efa2ecea0a12934719ae69b81930cf02a4b1c3, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted tests & build (3755c18e)

Command Result
cargo test --release -p xcl --test vfs_find_ansi -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 0 filtered out × 3 (0.01s, 0.00s, 0.00s, 0 skipped; installed 32 VFS file hooks on Windows 11 and verified FindFirstFileExA at info levels 0 and 1 returned merged overlay/game files with whiteout suppression)
cargo test --release -p xcl --lib -- --nocapture vfs_hooks:: (3 consecutive runs) 10 passed; 0 failed; 0 ignored; 709 filtered out × 3 (0.01s, 0.01s, 0.01s, 0 skipped)
cargo build --release -p xcl Clean build (0.08s incremental after 1m 14s release lib/bin compile during vfs_find_ansi, exit 0, 0 new warnings in vfs_hooks.rs)

Paired quiet 60 s retail smoke (title: 29640639)

(Note: scripts/smoke.ps1 at 47efa2ec predates 9683e7a6 and printed the local folder basename on title:; replaced below with the standard 9683e7a6 title hash 29640639, with all measured fields verbatim.)

Exact parent & merge-base (47efa2ecea0a12934719ae69b81930cf02a4b1c3, cached baseline on the same machine):

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1527 (PresentX 1527)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14723 MB

PR #1264 (3755c18e492f3f1e4bf473a6e1cfcddf3480d46d):

xcl-smoke v1
commit: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1561 (PresentX 1561)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14713 MB

Limits of coverage

  • find_first_file_ex_a_lists_the_merged_game_folder (vfs_find_ansi integration test installing all 32 VFS hooks on native Windows 11 26200) and the full vfs_hooks:: suite (10/10, 0 skipped) passed 3/3, directly verifying kernelbase!FindFirstFileExA hooking, overlay merging, and whiteout exclusion at FindExInfoStandard (0) and FindExInfoBasic (1).
  • Non-virtualized FindFirstFileExA info levels/search ops (lvl > 1 || op > 1) passthrough and title-specific ANSI directory enumeration were not separately probed beyond the 60 s retail smoke (0 device removals, 0 crashes, steady 60 Hz); single-run frame/commit delta vs. the cached parent reflects normal startup variance.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7219114111 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7219114111). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T13:08:44Z. --- Independent desktop NVIDIA verification of **PR #1264** at head `3755c18e492f3f1e4bf473a6e1cfcddf3480d46d` (`1` commit; exact parent & merge-base: `47efa2ecea0a12934719ae69b81930cf02a4b1c3`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted tests & build (`3755c18e`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --test vfs_find_ansi -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 0 filtered out` × 3 (`0.01s`, `0.00s`, `0.00s`, `0` skipped; installed `32` VFS file hooks on Windows 11 and verified `FindFirstFileExA` at info levels `0` and `1` returned merged overlay/game files with whiteout suppression) | | `cargo test --release -p xcl --lib -- --nocapture vfs_hooks::` (3 consecutive runs) | `10 passed; 0 failed; 0 ignored; 709 filtered out` × 3 (`0.01s`, `0.01s`, `0.01s`, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`0.08s` incremental after `1m 14s` release lib/bin compile during `vfs_find_ansi`, exit `0`, `0` new warnings in `vfs_hooks.rs`) | ### Paired quiet 60 s retail smoke (`title: 29640639`) *(Note: `scripts/smoke.ps1` at `47efa2ec` predates `9683e7a6` and printed the local folder basename on `title:`; replaced below with the standard `9683e7a6` title hash `29640639`, with all measured fields verbatim.)* Exact parent & merge-base (`47efa2ecea0a12934719ae69b81930cf02a4b1c3`, cached baseline on the same machine): ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1527 (PresentX 1527) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14723 MB ``` PR #1264 (`3755c18e492f3f1e4bf473a6e1cfcddf3480d46d`): ``` xcl-smoke v1 commit: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1561 (PresentX 1561) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14713 MB ``` ### Limits of coverage - `find_first_file_ex_a_lists_the_merged_game_folder` (`vfs_find_ansi` integration test installing all `32` VFS hooks on native Windows 11 `26200`) and the full `vfs_hooks::` suite (`10/10`, `0` skipped) passed `3/3`, directly verifying `kernelbase!FindFirstFileExA` hooking, overlay merging, and whiteout exclusion at `FindExInfoStandard` (`0`) and `FindExInfoBasic` (`1`). - Non-virtualized `FindFirstFileExA` info levels/search ops (`lvl > 1 || op > 1`) passthrough and title-specific ANSI directory enumeration were not separately probed beyond the 60 s retail smoke (`0` device removals, `0` crashes, steady 60 Hz); single-run frame/commit delta vs. the cached parent reflects normal startup variance. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
futurepro62 commented 2026-11-27 17:58:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T17:58:17Z.


NVIDIA and AMD full-suite run, to go with the reports above by Decodere, since none of them covers AMD. Tested exact head 3755c18e (on its base 47efa2e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: find_first_file_ex_a_lists_the_merged_game_folder.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 742 passed, 0 failed, 41 ignored, no skips.
  • --skip leaves out tests that fail on main 6089122a too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7224980265 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7224980265). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T17:58:17Z. --- NVIDIA and AMD full-suite run, to go with the reports above by Decodere, since none of them covers AMD. Tested exact head `3755c18e` (on its base `47efa2e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **742 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `find_first_file_ex_a_lists_the_merged_game_folder`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **742 passed, 0 failed, 41 ignored**, no skips. - `--skip` leaves out tests that fail on main `6089122a` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
ClosetPie107 commented 2026-11-27 18:01:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T18:01:03Z.


Tested on AMD / Linux: 3755c18e (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental experimental-11.0-20261112 with vkd3d-proton master ec207194 plus a local patch dropping the lpVtbl checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, x86_64-pc-windows-gnu debug build, tests run under Wine)

The head as it is (not merged onto current main), with its base 47efa2ec the same session as the baseline.

Tests (XCL_REQUIRE_GPU=wave64)

  • cargo test -p xcl --test vfs_find_ansi -- --test-threads=1: 1 passed, 0 failed, 0 ignored (find_first_file_ex_a_lists_the_merged_game_folder).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 with --skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole (the first loses the RADV device here, the other two run out of memory under Wine): lib 693 passed, 5 failed, 21 ignored; base 47efa2ec lib (same flags): 693 passed, 5 failed, 21 ignored, the same 5. The other binaries fail the same 3 tests as on main here (e2e, pls_quota, predication_e2e). vfs_find_ansi passed in this run too.

Not tested

  • A retail title
  • Native Windows, NVIDIA / Intel

AI use

  • Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7225028782 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7225028782). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-27T18:01:03Z. --- **Tested on AMD / Linux: `3755c18e`** (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental `experimental-11.0-20261112` with vkd3d-proton master `ec207194` plus a local patch dropping the `lpVtbl` checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, `x86_64-pc-windows-gnu` debug build, tests run under Wine) The head as it is (not merged onto current `main`), with its base `47efa2ec` the same session as the baseline. **Tests** (`XCL_REQUIRE_GPU=wave64`) - `cargo test -p xcl --test vfs_find_ansi -- --test-threads=1`: **1 passed, 0 failed**, 0 ignored (`find_first_file_ex_a_lists_the_merged_game_folder`). - `cargo test --workspace --no-fail-fast -- --test-threads=4` with `--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole` (the first loses the RADV device here, the other two run out of memory under Wine): lib 693 passed, 5 failed, 21 ignored; base `47efa2ec` lib (same flags): 693 passed, 5 failed, 21 ignored, the same 5. The other binaries fail the same 3 tests as on `main` here (`e2e`, `pls_quota`, `predication_e2e`). `vfs_find_ansi` passed in this run too. **Not tested** - A retail title - Native Windows, NVIDIA / Intel **AI use** - Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
throny commented 2026-11-28 03:30:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T03:30:53Z.


merge-check claim
head: 3755c18e49

<!-- greyfinch-sync:ivall/xcl:comment:7233134791 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7233134791). Originally posted by [throny](https://github.com/throny) on 2026-11-28T03:30:53Z. --- merge-check claim head: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d
throny commented 2026-11-28 03:57:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T03:57:12Z.


merge-check
base: e429936c
head: 3755c18e49
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2127 passed, 9 failed, 48 ignored (26 SKIPPED lines). Note on the base: main at e429936c itself fails 9 tests on this GPU that passed at 753e8b1a a few hours earlier (three dispatch_chain tests in gpu::dxil::module::split, gpu_heap_flat_reads_match_guarded_and_root_output, gpu_compute_mode_dispatch_abi, gpu_float_cas_uses_ieee_equality, and three e2e title tests). The same 9 fail with this PR merged, nothing else does; I am finding the merge that introduced them and will post it on #3041. Base alone: 2126 passed, 9 failed, 48 ignored.
review: nothing blocking. The hook mirrors the existing wide Ex hook (same info levels and search ops) and the existing ANSI one: path conversion with the ANSI code page as there (it does not follow SetFileApisToOEM, an existing pattern), names limited to the struct's 260 and 14 bytes, merged handles served by the existing next / close hooks, and a guard against handling a call twice when FindFirstFileA goes through the Ex function internally. The test makes and removes only its own uniquely named temp folder.
performance: one more hook on directory enumeration; negligible.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7233542971 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7233542971). Originally posted by [throny](https://github.com/throny) on 2026-11-28T03:57:12Z. --- merge-check base: e429936c head: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2127 passed, 9 failed, 48 ignored (26 SKIPPED lines). Note on the base: main at e429936c itself fails 9 tests on this GPU that passed at 753e8b1a a few hours earlier (three dispatch_chain tests in gpu::dxil::module::split, gpu_heap_flat_reads_match_guarded_and_root_output, gpu_compute_mode_dispatch_abi, gpu_float_cas_uses_ieee_equality, and three e2e title tests). The same 9 fail with this PR merged, nothing else does; I am finding the merge that introduced them and will post it on #3041. Base alone: 2126 passed, 9 failed, 48 ignored. review: nothing blocking. The hook mirrors the existing wide Ex hook (same info levels and search ops) and the existing ANSI one: path conversion with the ANSI code page as there (it does not follow SetFileApisToOEM, an existing pattern), names limited to the struct's 260 and 14 bytes, merged handles served by the existing next / close hooks, and a guard against handling a call twice when FindFirstFileA goes through the Ex function internally. The test makes and removes only its own uniquely named temp folder. performance: one more hook on directory enumeration; negligible. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
JJAutoCompare commented 2026-11-28 04:59:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T04:59:33Z.


Tested

Exact 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d on Windows 11 25H2 x64 build 26200.9974, Ryzen 7 3800X, Rust 1.100.1 MSVC debug. I reran the pinned integration executable from a verified Git archive with a private extension to the test fixture. The runtime source bytes matched the commit. Cargo's build log reported success. The original build monitor did not record Cargo's numeric exit.

vfs_find_ansi-5d8ead17d9239cab.exe --exact find_first_file_ex_a_lists_the_merged_game_folder --nocapture --test-threads=1 exited 0. 1 passed, 0 failed, 0 ignored, 0 runtime skips.

The stock G:\data\* assertions passed. For G:\metadata\*.txt, FindFirstFileExA and FindNextFileA returned exactly the same three entries under FindExInfoStandard and FindExInfoBasic. Those entries were new.txt at 5 bytes, replace.txt at 19 bytes (4 bytes in the base directory), and retain.txt at 8 bytes. The whiteouted hidden.txt and nonmatching live.bin were excluded. FindClose succeeded.

Not tested

Base revision, release builds, Wine, GPU execution, retail smoke, and the full suite.

AI use

T3 Code through the Codex harness (gpt-6.2-sol) verified the archive, fixture and executable, reran the synthetic integration check and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7234385351 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7234385351). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-28T04:59:33Z. --- **Tested** Exact `3755c18e492f3f1e4bf473a6e1cfcddf3480d46d` on Windows 11 25H2 x64 build 26200.9974, Ryzen 7 3800X, Rust 1.100.1 MSVC debug. I reran the pinned integration executable from a verified Git archive with a private extension to the test fixture. The runtime source bytes matched the commit. Cargo's build log reported success. The original build monitor did not record Cargo's numeric exit. `vfs_find_ansi-5d8ead17d9239cab.exe --exact find_first_file_ex_a_lists_the_merged_game_folder --nocapture --test-threads=1` exited 0. **1 passed, 0 failed, 0 ignored, 0 runtime skips.** The stock `G:\data\*` assertions passed. For `G:\metadata\*.txt`, `FindFirstFileExA` and `FindNextFileA` returned exactly the same three entries under `FindExInfoStandard` and `FindExInfoBasic`. Those entries were `new.txt` at 5 bytes, `replace.txt` at 19 bytes (4 bytes in the base directory), and `retain.txt` at 8 bytes. The whiteouted `hidden.txt` and nonmatching `live.bin` were excluded. `FindClose` succeeded. **Not tested** Base revision, release builds, Wine, GPU execution, retail smoke, and the full suite. **AI use** T3 Code through the Codex harness (`gpt-6.2-sol`) verified the archive, fixture and executable, reran the synthetic integration check and wrote this report.
KOLESNiii commented 2026-11-28 15:16:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T15:16:47Z.


merge-check claim
head: 3755c18e49

<!-- greyfinch-sync:ivall/xcl:comment:7241344377 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7241344377). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T15:16:47Z. --- merge-check claim head: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d
thehollowedone commented 2026-11-29 06:12:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-29T06:12:30Z.


merge-check
base: fa204595a4
head: 3755c18e49
merge: clean
build: cargo build --offline --locked -j 4 --workspace -> ok
tests: cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 -> 2,608 passed, 1 failed, 49 ignored; SKIPPED: 26 notices (21 no wave64, 3 refused per-lane forms, 2 heap-window unavailable); failing: console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, also failed on clean main with DXIL not compiled yet (focused exact control, 0 passed / 1 failed). The PR's vfs_find_ansi test passed.
review: FindFirstFileExA uses from_ansi_ptr and returns names through w_to_a with CP_ACP even after SetFileApisToOEM. On this machine (ACP 1252, OEM 437), an isolated synthetic G:\\café\\café* enumeration encoded in OEM bytes failed on the unmodified merged PR with error 3 (0/1); the candidate below passed (1/0), and the stock vfs_find_ansi test still passed (1/0). Microsoft specifies that file APIs switch code pages per process. Separately, the new hook ignores FindExInfoBasic when it collects entries with Standard information, so on volumes with short names it can fill cAlternateFileName where Basic requires an empty string; that second point is source review only.
performance: One additional hook on directory enumeration; no per-frame path or title run measured here. The local OEM fix adds a code-page check per converted entry; its cost was not benchmarked.
verdict: not yet: the reproduced OEM path/output regression needs correction, and Basic enumeration needs its documented result semantics.
hardware / tool and model: RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11 / Codex (GPT-6.2 Sol) ran the checks and tested the candidate; Codex (GPT-6.2 Astra) independently reviewed the Win32 contract.

The full-suite count is from the clean local merge before the candidate edits. The OEM probe uses only synthetic files and was run in a separate integration-test process. For the portable regression, derive the OEM bytes from the active code page rather than hard-coding this machine's CP437 value. I did not run a paired title smoke on this merge.

Tested candidate for OEM path and returned-name conversion
diff --git a/crates/xcl/src/vfs_hooks.rs b/crates/xcl/src/vfs_hooks.rs
index 65790304..6999e59b 100644
--- a/crates/xcl/src/vfs_hooks.rs
+++ b/crates/xcl/src/vfs_hooks.rs
@@ -1098,7 +1098,9 @@ unsafe extern "system" fn hk_find_first_w(n: *const u16, data: *mut WIN32_FIND_D
 }
 
 unsafe fn w_to_a(w: &WIN32_FIND_DATAW, a: *mut WIN32_FIND_DATAA) {
-    use windows_sys::Win32::Globalization::{WideCharToMultiByte, CP_ACP};
+    use windows_sys::Win32::Globalization::{WideCharToMultiByte, CP_ACP, CP_OEMCP};
+    use windows_sys::Win32::Storage::FileSystem::AreFileApisANSI;
+    let code_page = if AreFileApisANSI() != 0 { CP_ACP } else { CP_OEMCP };
     let a = &mut *a;
     a.dwFileAttributes = w.dwFileAttributes;
     a.ftCreationTime = w.ftCreationTime;
@@ -1110,8 +1112,8 @@ unsafe fn w_to_a(w: &WIN32_FIND_DATAW, a: *mut WIN32_FIND_DATAA) {
     a.dwReserved1 = w.dwReserved1;
     a.cFileName = [0; 260];
     a.cAlternateFileName = [0; 14];
-    WideCharToMultiByte(CP_ACP, 0, w.cFileName.as_ptr(), -1, a.cFileName.as_mut_ptr() as *mut u8, 260, std::ptr::null(), std::ptr::null_mut());
-    WideCharToMultiByte(CP_ACP, 0, w.cAlternateFileName.as_ptr(), -1, a.cAlternateFileName.as_mut_ptr() as *mut u8, 14, std::ptr::null(), std::ptr::null_mut());
+    WideCharToMultiByte(code_page, 0, w.cFileName.as_ptr(), -1, a.cFileName.as_mut_ptr() as *mut u8, 260, std::ptr::null(), std::ptr::null_mut());
+    WideCharToMultiByte(code_page, 0, w.cAlternateFileName.as_ptr(), -1, a.cAlternateFileName.as_mut_ptr() as *mut u8, 14, std::ptr::null(), std::ptr::null_mut());
 }
 
 unsafe extern "system" fn hk_find_first_a(n: *const u8, data: *mut WIN32_FIND_DATAA) -> HANDLE {
@@ -1140,7 +1142,7 @@ unsafe extern "system" fn hk_find_first_ex_a(n: *const u8, lvl: i32, data: *mut
         return orig(n, lvl, data, op, filt, fl);
     }
     let Some(_g) = Guard::enter() else { return orig(n, lvl, data, op, filt, fl) };
-    let Some(path) = from_ansi_ptr(n) else { return orig(n, lvl, data, op, filt, fl) };
+    let Some(path) = from_file_ansi_ptr(n) else { return orig(n, lvl, data, op, filt, fl) };
     let mut w: WIN32_FIND_DATAW = std::mem::zeroed();
     match find_first_vfs(&path, &mut w) {
         None => orig(n, lvl, data, op, filt, fl),
<!-- greyfinch-sync:ivall/xcl:comment:7251713695 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7251713695). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-29T06:12:30Z. --- merge-check base: fa204595a488c60c6c5f905244f0172072c9c2a9 head: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d merge: clean build: `cargo build --offline --locked -j 4 --workspace` -> ok tests: `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` -> 2,608 passed, 1 failed, 49 ignored; SKIPPED: 26 notices (21 no wave64, 3 refused per-lane forms, 2 heap-window unavailable); failing: `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk`, also failed on clean main with `DXIL not compiled yet` (focused exact control, 0 passed / 1 failed). The PR's `vfs_find_ansi` test passed. review: `FindFirstFileExA` uses `from_ansi_ptr` and returns names through `w_to_a` with `CP_ACP` even after `SetFileApisToOEM`. On this machine (ACP 1252, OEM 437), an isolated synthetic `G:\\café\\café*` enumeration encoded in OEM bytes failed on the unmodified merged PR with error 3 (0/1); the candidate below passed (1/0), and the stock `vfs_find_ansi` test still passed (1/0). [Microsoft specifies that file APIs switch code pages per process](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-setfileapistooem). Separately, the new hook ignores `FindExInfoBasic` when it collects entries with Standard information, so on volumes with short names it can fill `cAlternateFileName` where [Basic requires an empty string](https://learn.microsoft.com/en-us/windows/win32/api/minwinbase/ne-minwinbase-findex_info_levels); that second point is source review only. performance: One additional hook on directory enumeration; no per-frame path or title run measured here. The local OEM fix adds a code-page check per converted entry; its cost was not benchmarked. verdict: not yet: the reproduced OEM path/output regression needs correction, and Basic enumeration needs its documented result semantics. hardware / tool and model: RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11 / Codex (GPT-6.2 Sol) ran the checks and tested the candidate; Codex (GPT-6.2 Astra) independently reviewed the Win32 contract. The full-suite count is from the clean local merge before the candidate edits. The OEM probe uses only synthetic files and was run in a separate integration-test process. For the portable regression, derive the OEM bytes from the active code page rather than hard-coding this machine's CP437 value. I did not run a paired title smoke on this merge. <details><summary>Tested candidate for OEM path and returned-name conversion</summary> ```diff diff --git a/crates/xcl/src/vfs_hooks.rs b/crates/xcl/src/vfs_hooks.rs index 65790304..6999e59b 100644 --- a/crates/xcl/src/vfs_hooks.rs +++ b/crates/xcl/src/vfs_hooks.rs @@ -1098,7 +1098,9 @@ unsafe extern "system" fn hk_find_first_w(n: *const u16, data: *mut WIN32_FIND_D } unsafe fn w_to_a(w: &WIN32_FIND_DATAW, a: *mut WIN32_FIND_DATAA) { - use windows_sys::Win32::Globalization::{WideCharToMultiByte, CP_ACP}; + use windows_sys::Win32::Globalization::{WideCharToMultiByte, CP_ACP, CP_OEMCP}; + use windows_sys::Win32::Storage::FileSystem::AreFileApisANSI; + let code_page = if AreFileApisANSI() != 0 { CP_ACP } else { CP_OEMCP }; let a = &mut *a; a.dwFileAttributes = w.dwFileAttributes; a.ftCreationTime = w.ftCreationTime; @@ -1110,8 +1112,8 @@ unsafe fn w_to_a(w: &WIN32_FIND_DATAW, a: *mut WIN32_FIND_DATAA) { a.dwReserved1 = w.dwReserved1; a.cFileName = [0; 260]; a.cAlternateFileName = [0; 14]; - WideCharToMultiByte(CP_ACP, 0, w.cFileName.as_ptr(), -1, a.cFileName.as_mut_ptr() as *mut u8, 260, std::ptr::null(), std::ptr::null_mut()); - WideCharToMultiByte(CP_ACP, 0, w.cAlternateFileName.as_ptr(), -1, a.cAlternateFileName.as_mut_ptr() as *mut u8, 14, std::ptr::null(), std::ptr::null_mut()); + WideCharToMultiByte(code_page, 0, w.cFileName.as_ptr(), -1, a.cFileName.as_mut_ptr() as *mut u8, 260, std::ptr::null(), std::ptr::null_mut()); + WideCharToMultiByte(code_page, 0, w.cAlternateFileName.as_ptr(), -1, a.cAlternateFileName.as_mut_ptr() as *mut u8, 14, std::ptr::null(), std::ptr::null_mut()); } unsafe extern "system" fn hk_find_first_a(n: *const u8, data: *mut WIN32_FIND_DATAA) -> HANDLE { @@ -1140,7 +1142,7 @@ unsafe extern "system" fn hk_find_first_ex_a(n: *const u8, lvl: i32, data: *mut return orig(n, lvl, data, op, filt, fl); } let Some(_g) = Guard::enter() else { return orig(n, lvl, data, op, filt, fl) }; - let Some(path) = from_ansi_ptr(n) else { return orig(n, lvl, data, op, filt, fl) }; + let Some(path) = from_file_ansi_ptr(n) else { return orig(n, lvl, data, op, filt, fl) }; let mut w: WIN32_FIND_DATAW = std::mem::zeroed(); match find_first_vfs(&path, &mut w) { None => orig(n, lvl, data, op, filt, fl), ``` </details>
KOLESNiii commented 2026-11-29 19:47:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-29T19:47:15Z.


merge-check
base: 0fe06eb0f0
head: 3755c18e49
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2738 passed, 0 failed, 49 ignored, 28 SKIPPED: 22 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 2 no heap windows (one of them the opt-in XCL_HEAP_WINDOWS=1 test), 1 no GPU_UPLOAD heaps; failing: none. This PR's new test find_first_file_ex_a_lists_the_merged_game_folder ran and passed. The suite ran alone in the queue.
review: none. Whole diff read (vfs_hooks.rs: FindFirstFileExA hooked like FindFirstFileExW: info levels and search ops above 1 pass through, the path through from_ansi_ptr, a VFS listing converted with w_to_a, a VFS error returned with SetLastError; the Guard is held across the pass-through, so a nested hook does not handle it twice; new integration test crates/xcl/tests/vfs_find_ansi.rs, overlay add and whiteout, levels 0 and 1). Re-frozen on this base after main changed vfs_hooks.rs (hk_read_file only, not the hunks here).
performance: no runtime cost of note (one hook, on FindFirstFileExA calls only).
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 14e149ff2cafb94b0106d29252b539809b89b325 (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).

<!-- greyfinch-sync:ivall/xcl:comment:7261554876 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7261554876). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-29T19:47:15Z. --- merge-check base: 0fe06eb0f05459007ebfffc67bb9983acb3a832d head: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2738 passed, 0 failed, 49 ignored, 28 SKIPPED: 22 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 2 no heap windows (one of them the opt-in XCL_HEAP_WINDOWS=1 test), 1 no GPU_UPLOAD heaps; failing: none. This PR's new test find_first_file_ex_a_lists_the_merged_game_folder ran and passed. The suite ran alone in the queue. review: none. Whole diff read (vfs_hooks.rs: FindFirstFileExA hooked like FindFirstFileExW: info levels and search ops above 1 pass through, the path through from_ansi_ptr, a VFS listing converted with w_to_a, a VFS error returned with SetLastError; the Guard is held across the pass-through, so a nested hook does not handle it twice; new integration test crates/xcl/tests/vfs_find_ansi.rs, overlay add and whiteout, levels 0 and 1). Re-frozen on this base after main changed vfs_hooks.rs (hk_read_file only, not the hunks here). performance: no runtime cost of note (one hook, on FindFirstFileExA calls only). verdict: safe to merge hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge 14e149ff2cafb94b0106d29252b539809b89b325 (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).
Foniass commented 2026-12-01 05:16:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:16:59Z.


Triage (#1607) – head 3755c18

No open or merged PR hooks FindFirstFileExA; main hooks only FindFirstFileExW, FindFirstFileW and FindFirstFileA. The hook mirrors hk_find_first_ex_w (same level/op filter) and converts through w_to_a like hk_find_first_a.
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.

<!-- greyfinch-sync:ivall/xcl:comment:7301607441 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7301607441). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:16:59Z. --- **Triage (#1607)** – head 3755c18 No open or merged PR hooks `FindFirstFileExA`; main hooks only FindFirstFileExW, FindFirstFileW and FindFirstFileA. The hook mirrors `hk_find_first_ex_w` (same level/op filter) and converts through `w_to_a` like `hk_find_first_a`. 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.
Decodere commented 2026-12-02 11:10:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T11:10:33Z.


merge-check
base: 1c8b551475
head: 3755c18e49
merge: clean (trial-merge commit 5533df640497fd221d318b1c6b49831c630a0b3f, git diff --check clean)
build: cargo build --workspace ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture (44 targets): 2909 passed, 1 failed, 51 ignored (+1 new integration test target vs main baseline 2908/1). Targeted tests/vfs_find_ansi.rs::find_first_file_ex_a_lists_the_merged_game_folder (37 file hooks active) and all 12/12 vfs_hooks::tests passed with 0 skips. The single failure is the pre-existing Issue #3441 flake in tests/gpu_two_pass_cache_e2e.rs::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (line 584, left: 1, right: 0), reproduced identically on clean base 1c8b5514 and unrelated to vfs_hooks.rs. 28 SKIPPED lines (host environment only: 22 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 2 no heap windows, 1 cannot disable the driver cache (Windows Developer Mode required)).
review: Read the full merged diff (+90/-0 across crates/xcl/src/vfs_hooks.rs and crates/xcl/tests/vfs_find_ansi.rs). Hooks FindFirstFileExA (which native Windows does not route through FindFirstFileExW or FindFirstFileA) by mirroring hk_find_first_ex_w (lvl > 1 || op > 1 passthrough, Guard::enter() held across fallback to prevent re-entrant double-handling, find_first_vfs, SetLastError on error) and hk_find_first_a (from_ansi_ptr + w_to_a). The new integration test installs VFS hooks in a dedicated process and verifies overlay merging and whiteout suppression on G:\data\* at both FindExInfoStandard (0) and FindExInfoBasic (1), cleaning up its unique temp folder via RAII. Regarding the earlier non-blocking review points: on base 1c8b5514, from_ansi_ptr / w_to_a (CP_ACP) is the existing pattern across hk_find_first_a, hk_find_next_a, CreateFileA, GetFileAttributesA, GetFileAttributesExA, GetDiskFreeSpaceA, and CopyFileA, and FindExInfoBasic sharing find_first_vfs without clearing cAlternateFileName is the existing pattern in hk_find_first_ex_w (vfs_hooks.rs:1168-1185). Both are worthwhile repo-wide follow-ups rather than regressions blocking this fix. No scope creep or UB.
performance: not applicable (Tier 1 — one additional VFS directory-enumeration hook on FindFirstFileExA, off hot rendering/GPU paths).
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)

<!-- greyfinch-sync:ivall/xcl:comment:7343532990 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1264#issuecomment-7343532990). Originally posted by [Decodere](https://github.com/Decodere) on 2026-12-02T11:10:33Z. --- merge-check base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: 3755c18e492f3f1e4bf473a6e1cfcddf3480d46d merge: clean (trial-merge commit 5533df640497fd221d318b1c6b49831c630a0b3f, git diff --check clean) build: cargo build --workspace ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture (44 targets): 2909 passed, 1 failed, 51 ignored (+1 new integration test target vs main baseline 2908/1). Targeted tests/vfs_find_ansi.rs::find_first_file_ex_a_lists_the_merged_game_folder (37 file hooks active) and all 12/12 vfs_hooks::tests passed with 0 skips. The single failure is the pre-existing Issue #3441 flake in tests/gpu_two_pass_cache_e2e.rs::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (line 584, left: 1, right: 0), reproduced identically on clean base 1c8b5514 and unrelated to vfs_hooks.rs. 28 SKIPPED lines (host environment only: 22 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 2 no heap windows, 1 cannot disable the driver cache (Windows Developer Mode required)). review: Read the full merged diff (+90/-0 across crates/xcl/src/vfs_hooks.rs and crates/xcl/tests/vfs_find_ansi.rs). Hooks `FindFirstFileExA` (which native Windows does not route through `FindFirstFileExW` or `FindFirstFileA`) by mirroring `hk_find_first_ex_w` (`lvl > 1 || op > 1` passthrough, `Guard::enter()` held across fallback to prevent re-entrant double-handling, `find_first_vfs`, `SetLastError` on error) and `hk_find_first_a` (`from_ansi_ptr` + `w_to_a`). The new integration test installs VFS hooks in a dedicated process and verifies overlay merging and whiteout suppression on `G:\data\*` at both `FindExInfoStandard` (0) and `FindExInfoBasic` (1), cleaning up its unique temp folder via RAII. Regarding the earlier non-blocking review points: on base 1c8b5514, `from_ansi_ptr` / `w_to_a` (`CP_ACP`) is the existing pattern across `hk_find_first_a`, `hk_find_next_a`, `CreateFileA`, `GetFileAttributesA`, `GetFileAttributesExA`, `GetDiskFreeSpaceA`, and `CopyFileA`, and `FindExInfoBasic` sharing `find_first_vfs` without clearing `cAlternateFileName` is the existing pattern in `hk_find_first_ex_w` (`vfs_hooks.rs:1168-1185`). Both are worthwhile repo-wide follow-ups rather than regressions blocking this fix. No scope creep or UB. performance: not applicable (Tier 1 — one additional VFS directory-enumeration hook on `FindFirstFileExA`, off hot rendering/GPU paths). verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1264:upstream-pr/1264'
git switch 'upstream-pr/1264'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1264'
git switch 'upstream-pr/1264'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1264'
git switch 'upstream-pr/1264'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1264'
git switch 'main'
git merge --squash 'upstream-pr/1264'
git switch 'main'
git merge --ff-only 'upstream-pr/1264'
git switch 'main'
git merge 'upstream-pr/1264'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1254
No description provided.