Metal shader library loading requires a writable temporary directory #649
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 fruvs on 2026-11-29T04:08:41Z.
The Metal backend writes a converted shader library to a temporary file before loading it. Pipeline creation can fail if the temporary directory is unavailable, even when the library bytes are already available in memory.
On an Apple M5 Pro, the synthetic test
metal::tests::queue_b_waits_for_queue_a_over_the_same_bufferpasses normally on main. Running the compiled test under a macOS sandbox profile with(deny file-write*), withVICTORY_MSC_DYLIBset andVICTORY_NO_PIPELINE_ARCHIVE=1, reproducesOperation not permitted (os error 1)during library loading.The proposed change loads an owned dispatch-data buffer with
newLibraryWithData:error:. The compute test and the synthetic indexed draw with depth sampling both pass under the same write restriction on the patched build.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by fruvs on 2026-11-29T04:09:17Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-29T04:09:28Z.
Claimed by @fruvs. Open a draft pull request with
Refs #649in its description within 24 hours, or the claim expires.