Skip to content

Honor guest channel selectors in Metal image stores - #4

Open
LuizDusky wants to merge 33 commits into
TxCsOffc:mainfrom
LuizDusky:fix/metal-image-store-components
Open

LuizDusky wants to merge 33 commits into
TxCsOffc:mainfrom
LuizDusky:fix/metal-image-store-components

Conversation

@LuizDusky

Copy link
Copy Markdown
Contributor

Native Metal image stores now apply the inverse guest component mapping, with sparse DMASK operands expanded in logical channel order before writing. Packed D16 stores use the same mapping.

On a Mac mini M4, three real GPU cases verified full, sparse, and packed D16 storage writes in the Prospero fork. In Gran Turismo 7 1.71, the corrected 3D color table removed the red overlay over the World Map. The scene still has dark terrain and missing text, which are separate open rendering issues. The change is scoped to image stores and their regression tests.

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

@TxCsOffc TxCsOffc left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The core image-store fix itself (fbb75b4f) is great — I tested it in isolation on top of TxCsOffc/KyTx:main and verified:

  • kyty_emulator compiles and codesigns cleanly on macOS arm64.
  • tools/test_metal_msl.sh passes, including Storage image channel mapping: 3 GPU cases passed.

However, I cannot merge this PR in its current state because commit 77f81cb0 (Merge branch 'main' into fix/metal-image-store-components) pulled LuizDusky/Prospero's main into the PR branch. As a result, this PR currently brings in 33 commits across 64 files (+2869 / -345), including Prospero rebranding (README.md, docs/branding/prospero.svg, src/prospero/Prospero.swift) and unrelated GT7 / archive / FEX changes.

Requested changes

Please reset or rebase fix/metal-image-store-components cleanly onto TxCsOffc/KyTx:main so it contains only the scoped image-store change (MslEmitter.cpp, spirvEmitterImage.cpp, ShaderIR.h, tests/metalMslTests.mm). Once cleaned up, this is ready to merge right away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants