Log which shader converter was loaded (#295) #300
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/300"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T09:34:41Z.
Refs #295
The reporter's suggestion only: the start-up log now names the converter it loaded and where the path came from, and warns when it is not Apple's default.
metal: shader converter <path> <size> <mtime> (from VICTORY_MSC_DYLIB | the installed default), logged once per run (msc::try_open_default)./usr/local/lib/libmetalirconverter.dylib. The variable set to the default path itself is not warned about. An emptyVICTORY_MSC_DYLIBnow counts as unset, as it already did innative-setup.sh.IRCompilerGetBinaryVersion(unsigned char*), but its buffer size and format are unknown, so it is not called.)Does the shader cache key tell converters apart? Yes. The
Mscid (path, file size, modification time) is part of every library cache key (convert_withandmesh_threads), so a different converter path, or a replaced file at the same path, gets its own cache entries. Nothing changed there.Tests:
msc::tests::the_converter_path_is_the_override_if_set_else_the_default,msc::tests::the_load_note_names_its_source_and_warns_only_off_the_default_path. Docs:docs/native-host.md, next to the shader cache's library keys.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T10:37:43Z.
Thank you. Merged.