You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This keeps SPIR-V as the portable GPU artifact instead of maintaining Metal as an entirely separate lowering path. The existing direct AST-to-MSL backend is left intact for compatibility.
The PR adds SPIRV-Cross and Xcode tool discovery to MLIRSPIRVCompiler, exposes SPIR-V-to-MSL, MLIR-to-MSL, MSL-to-metallib, and MLIR-to-metallib stages, adds a scripts/compile_spirv_metal.py driver for .flow or .spv inputs, and adds unit coverage for the new lowering stages.
It also fixes the stale photoreal shader anchors already present on main, which were blocking the repository's doc-link check.
Follow-up ABI result from the OpenProjects SPIR-V→Metal investigation: the remaining correctness boundary is not byte translation but preservation of descriptor identity and storage semantics. A binding-only map is unsound because (set=0,binding=3) and (set=2,binding=3) collide. For classic MSL, deterministic dense lexicographic ranks should be assigned independently per admitted buffer/texture/sampler namespace; rejected resources must not consume slots. Conservative first-profile storage mapping is Uniform buffer→constant, StorageBuffer→device, Workgroup→threadgroup, Function/Private→thread-local, UniformConstant texture/sampler→resource object, while PhysicalStorageBuffer should fail closed until Flow owns a physical-pointer ABI. I exhaustively checked per-kind mapping injectivity and declaration-order invariance across 7,140 compact interfaces. Full derivation + Flow witness: https://github.com/godofecht/OpenProjects/blob/main/gpu/spirv-metal-address-space-and-binding-contract.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a shared Flow GPU pipeline for Apple targets:
Flow @gpu -> MLIR GPU -> SPIR-V -> SPIRV-Cross -> MSL -> metallibThis keeps SPIR-V as the portable GPU artifact instead of maintaining Metal as an entirely separate lowering path. The existing direct AST-to-MSL backend is left intact for compatibility.
The PR adds SPIRV-Cross and Xcode tool discovery to
MLIRSPIRVCompiler, exposes SPIR-V-to-MSL, MLIR-to-MSL, MSL-to-metallib, and MLIR-to-metallib stages, adds ascripts/compile_spirv_metal.pydriver for.flowor.spvinputs, and adds unit coverage for the new lowering stages.It also fixes the stale photoreal shader anchors already present on
main, which were blocking the repository's doc-link check.