VFS: the free-space log shows only what the caller asked for #1667
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1667
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1667"
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?
@M3lonade on GitHub · 2026-11-24 19:01 UTC · original
M3lonade:vfs-free-space-log-asked-values→main· +40 −7 · 1 files · 1 commits · openThe free-space log line (
GetDiskFreeSpaceEx…: N MiB available of T MiB) read a NULLlpFreeBytesAvailableToCalleras 0. The API allows NULL for any of its three outputs, and in every run of the retail title a system component asks aboutC:\WINDOWS\system32andC:\WINDOWSfor the total only, so the log says0 MiB available of 952974 MiBon a disk with ~270 GB available. #781 asks about it as a possible "disk full" answer to the title. Now the line names only what the caller asked for; the answer itself is unchanged. Part of #781.What is in it
crates/xcl/src/vfs_hooks.rs:ex_answerreturns each of (available, total, free) as asked orNone, andspace_textbuilds the line: "N MiB available of T MiB" as before, "N MiB free of T MiB (available not asked)", "total T MiB (free space not asked)".GetDiskFreeSpaceA/W(clusters) log as before.vfs_hooks::tests::free_space_log_names_only_what_was_asked.Tested
cargo build --workspace+cargo test --workspace -- --test-threads=4: 859 passed, 0 failed, 42 ignored.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).C:\WINDOWS\system32andC:\WINDOWSread0 MiB available of 952974 MiBonmainandtotal 952974 MiB (free space not asked)with this change (the caller asks for the total only); the title's own query (the shader cache folder) logs… MiB available of 952974 MiBas before.Regression run
main
c160d86e:this PR
c09c3c76:Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 23:52 UTC · original · edited 2026-11-25 00:06 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
c09c3c7(on its basec160d86).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --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::dxil::fuzz_tests: 858 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.free_space_log_names_only_what_was_asked.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 859 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main62265d3too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 04:44 UTC · original
XCL PR #1667 verification
Clean detached head
c09c3c7643a40474816f3aa14cb59521a8e2dc03on STOR-WINLAB.Windows 11 Enterprise Evaluation x64 build 26200, AMD Ryzen 7 3800X, Intel Arc A770 driver
32.0.101.9175, DXC1.9.2609.5, and rustc1.100.0 (0ef1bc386 2026-11-09)(x86_64-pc-windows-msvc). Unoptimized profiles with incremental compilation and debug info disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the GPU mutex. The latter built 19 test executables.cargo test -p xcl --lib vfs_hooks::tests::free_space_log_names_only_what_was_asked -- --exactran withXCL_ADAPTER=NONE_CPU_ONLYoutside the mutex. 1 passed, 0 failed, 0 ignored, 0 skipped, 831 filtered out. The new test incrates/xcl/src/vfs_hooks.rschecks free-only, free-plus-total, total-only, and caller-available-plus-total formatting, including precedence over free bytes and a failed API call returning no answer.cargo test --workspace --no-fail-fast -- --test-threads=4ran once insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Cargo exited 101. The 20test result:lines (19 executables and doc-tests) totaled 841 passed, 18 failed, and 42 ignored. The VFS test and thepls_quotaintegration test passed.Workspace failures and skips
CreateComputePipelineStateerror0x80070057. Four reported mismatches in fused FMA overflow, implicit-LOD sampling, f16 high-half preservation, and wave64 pixel reductions.test_title_runs_and_game_folder_is_untouchedfailed the test title'sRSSetDepthBiasXcheck. Its top-right pixel was blue and the test expected green.SKIPPEDlines inpr1667-suite.logwere included in libtest's passed total and excluded from coverage. Two lacked wave64, one lacked tiled resources tier 2, one lacked heap windows, and two lacked D3D12 debug-layer support.Not tested
Matched
mainbaseline, retail-title smoke runs, game-data fixtures (XCL_SAMPLE_*unset), and other GPUs. Regression attribution remains unverified.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1667-suite.logand published.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.