Repository navigation
Conversation
Preserve compacted DMASK operands and map logical guest channels to physical texture channels. Add native GPU coverage for full, sparse and packed 16-bit stores.
Introduce Prospero visual identity
GT7 Metal bring-up, launcher and ARM64 build improvements
Fix Metal storage-image component selection
Fix Metal presenter sRGB conversion
TxCsOffc
requested changes
Nov 25, 2026
TxCsOffc
left a comment
Owner
There was a problem hiding this comment.
I tested the isolated commit 533afbb2 on top of TxCsOffc/KyTx:main (tools/test_metal_msl.sh passed, reporting Large LDS emission: 36000 guest bytes retained (device limit 32768)), and I appreciate the improved diagnostic logging in metalPipeline.mm (threadgroup_limit) and the build_dir parameter support in tools/test_metal_msl.sh.
However, I cannot merge this PR for two reasons:
- Branch contamination from
LuizDusky/Prospero:main: Commit270dd5e2(Merge branch 'main' into metal-preserve-compute-lds) mergedLuizDusky/Prospero'smaininto this branch, pulling in 38 commits across 64 files (+2789 / -345), including Prospero rebranding (README.md,docs/branding/prospero.svg,src/prospero/Prospero.swift) and unrelated GT7 / archive / FEX changes. - Hard failure on 32 KiB Apple Silicon GPUs without an oversized-LDS fallback: Removing the
std::min(declared, 8192u)cap inLdsDwords()without a device-memory fallback (such as your later commitbd29a0b3inLuizDusky/Prosperobacking oversized compute LDS with per-workgroup GPU memory) will causenewComputePipelineStateWithDescriptorto fail hard for any compute shader declaring >32 KiB LDS on Apple Silicon GPUs whosemaxThreadgroupMemoryLengthis32768bytes.
Requested changes
- Reset/rebase
metal-preserve-compute-ldscleanly ontoTxCsOffc/KyTx:mainso it contains only the scoped compute LDS changes. - Either include the per-workgroup GPU memory fallback for oversized LDS (>32 KiB) or keep pipeline creation safe on 32 KiB
maxThreadgroupMemoryLengthdevices.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Preserve the amount of LDS declared by compute shaders in native MSL. The emitter previously capped LDS at 8192 dwords, changing the guest bounds above that value. Metal can now validate the full pipeline requirement, and compute pipeline failures report the shader hash and host device limit.
The focused test verifies that a 9000-dword declaration emits the full 36,000-byte array. This is a source regression test. The Apple M4 used for validation reports a 32,768-byte threadgroup limit and ran the focused GPU suite for valid allocations.
Validation on the Prospero branch: bash tools/test_metal_msl.sh /path/to/existing/build.