victory-gpu native tests fail cryptically without Apple's Metal Shader Converter; GPTK's bundled dylib is not a substitute #379
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 wz11wz on 2026-11-27T14:57:05Z.
Environment
M1 Max, macOS 26 (Darwin 27.2), clean
main(728845d1), no Metal Shader Converter installed.What happens
cargo test -p victory-gpu --libfails 3native::tests::texture_testscases onmain:a_drawn_target_is_not_filled_from_title_memory_againan_indirect_dispatch_mesh_x_draws_the_groups_its_record_holdsdescribed_rectangle_list_draw_uses_supplied_trianglesTwo panic with
no mesh pipeline(texture_tests.rs:1154 / 1207), one with the dlopen directly:Why it is easy to miss
native-setup.shwarns when the Metal Shader Converter is missing, but nothing stops a test run without it: 356 of 359 tests still pass, and the 3 failures only name the missing dylib indirectly. They look like GPU bugs but are a missing prerequisite.GPTK's bundled dylib is not a substitute
VICTORY_MSC_DYLIBis honoured bymsc.rs, and D3DMetal 4.0b3 ships alibmetalirconverter.dylibinside its framework. PointingVICTORY_MSC_DYLIBat that copy makes it dramatically worse: 129 of 359 fail (shader_tests included, e.g.render_pipelines_come_from_the_translated_shaders_and_the_streams_state). The converter ABI the code expects matches Apple's standalone distribution only.Suggestion
verify.sh/native-setup.shcould fail fast with "install Apple's Metal Shader Converter" whenVICTORY_MSC_DYLIBis unset and the default path is missing, instead of letting 3 tests fail with an indirect panic. Found while wiring victory-gpu into a verification gate (#370).Happy to send that small check as a PR.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T15:07:33Z.
Please send it as a PR, thank you
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T16:11:58Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T16:12:13Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #379in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:18:20Z.
Evidence that this one is resolved on main, so it can close:
tools/macos/test-native.shis onmainand fails fast exactly as you asked, before cargo runs. WithVICTORY_MSC_DYLIB=/nonexistent/x.dylib:and it exits 1 without invoking the test binary, so the
dlopenpanic it used to produce is gone.tools/macos/verify.shfails the same way (tools/macos/tests/verify-msc.shandtests/msc-check.shpin both, and run in themacos-scriptsCI job).With Apple's converter installed (I have it here now,
/usr/local/lib/libmetalirconverter.dylib),test-native.sh -p victory-gpuruns the suite whole: 402 passed, 0 failed, 3 ignored. So the cryptic failure was the missing library, not the tests.Nothing left to do in this issue as far as I can see; the only thing worth adding later is a note in
docs/macos.mdabout the install, if you want the download steps written down outside the script.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by wz11wz on 2026-11-27T23:14:53Z.
Resolved - thanks for the fast fail in test-native.sh/verify.sh and for confirming the full suite runs green (402 passed) once Apple's standalone converter is installed. The install steps are now written down too: #511. Closing as done.