Repository navigation
Preserve Unicode paths in the Windows pipeline checker - #1096
nschlaepfer wants to merge 1 commit into
Conversation
|
Tested a2c3423 on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): pass
|
quackottu
left a comment
There was a problem hiding this comment.
Tested a2c3423 on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
- Build ok.
ctest: 100% tests passed, 0 tests failed out of 48 (gameinputdisabled, no SDL3). runtime/test/check_pipeline_paths.pydidn't run under ctest here, and I didn't run it by hand, so the Unicode-path case itself isn't covered by this run.- 49 test programs exit 0 with 0 validation messages.
- Same on
main, not from this PR:d3d12_clear_test(NVIDIA 0.5 tie rounding, #521),vk_binary_occlusion_test(needs an input file), and the 3VUID-vkCreateDevice-ppEnabledExtensionNames-01387ind3d12_fence_timing_test/d3d12_vulkan_device_test(#1027).
|
Unverified: with no cl/cmake/MSVC here the test cannot run. Two problems before it can merge:
Rebase keeping both guards, and extend the test to those two cases; then it needs a build-capable check. AI-assisted review, no game files, no GPU. |
|
Still reproduces on current main (7b7d73f), on a different code page than the description's: Windows 11, ANSI code page 1251, RTX 3060 Ti 610.88, vk_pipeline_check built with MSVC. The same five synthetic test modules (plus index.json):
So make_game's pipelines stage still fails for a work folder under a user name outside the ANSI code page. The PR now conflicts with main (vk_pipeline_check.cpp is a hot spot); once it's rebased I can re-run the same check on this 1251 machine. No game files. AI-assisted (Claude Code). |
On Windows with the default Western ANSI code page, placing the translated shaders under a folder such as
地形 🎮could make the pipeline checker exit successfully with zero shaders. Against the same five synthetic inputs in an ASCII folder, it compiled five pipelines and wrote 27 driver statistics. The Unicode-folder run instead produced a 36-byte empty cache. A Unicode cache or statistics output path could also fail independently.Read the original Windows UTF-16 command line through the standard
wmainentry point and keep native paths for the index, modules, partner stubs, cache and statistics. The checker reports a missing or unreadable index before opening the cache. A valid empty{}index continues to succeed. The build change selects the wide CRT entry point for MinGW.Verification. Native Windows 11, ANSI code page 1252, RTX 5090 driver 621.14: both MSVC and MinGW-w64 Windows builds compiled all five synthetic pipelines with Unicode paths. The checker wrote all 27 rows, byte-identical to the ASCII control, and reopened the Unicode cache. Missing, unreadable and malformed index inputs returned exit 2 and preserved the existing cache contents and modification time. The committed CTest passed on Windows and macOS. Independent runs on an Apple M3 Max and software llvmpipe preserved all five successful pipelines and seeded cache reuse. All fixtures were hand-written test shaders. AI-assisted.
Coordination claim.