Discover shader files through symbolic links in translate #970
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/971"
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 fxceless/victory-fork. Originally posted by DoubleD17 on 2026-11-25T14:07:40Z.
translateandtranslate --warmskip symbolic links to shader files, including links passed directly on the command line. Both modes now use the same file filter. It checks that a symbolic link resolves to a regular file within the existing 2 GiB limit and preserves directory traversal behavior. Synthetic Windows 11 x64 testing with a Ryzen 7 5800X and Rust 1.98.1 MSVC found and processed one shader through both an explicit file link and a directory containing the link. The baseline found zero in both cases. Direct files and explicit directory links continued to work. Broken links, nested directory links, and targets larger than 2 GiB stayed excluded. The prepared commitb99f251has the tested tree. The CPU test covers discovery, translation, and cache warm-up. DXIL validation and pipeline creation were outside its scope. See #954.AI-assisted.
Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T14:21:36Z.
An independent Windows run on
b99f251confirms this fix for bothtranslateandtranslate --warm all. The source-built fixture found one container when given the original file, a file symlink, or a directory containing the symlink and a dangling link.The same fixture identifies a separate gap:
shader-infostill reports zero containers for the linked file. I opened #972 while testing this independently and will close it as overlapping. Its integration test and small shared helper are available if you want to covershader-infoin this PR. The collector commands here were exercised without retail assets or GPU pipeline creation.Windows run on your head · Standalone integrated test
AI-assisted using Codex.
Pull request closed