Skip to content

Metal: Ensure correct output texture format selection #109406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stuartcarnie
Copy link
Contributor

@stuartcarnie stuartcarnie commented Aug 7, 2025

Ensure the correct output texture format is selected when creating the MetalFX Spatial Shader context.

before after
metalfx_spatial metalfx_spatial_after

Note

Also verified with tps-demo and @Calinou's additions to allow selecting MetalFX upscalers.

@stuartcarnie stuartcarnie requested a review from a team as a code owner August 7, 2025 20:22
@stuartcarnie stuartcarnie added the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Aug 7, 2025
@Calinou Calinou added this to the 4.5 milestone Aug 7, 2025
@Calinou Calinou moved this from Unassessed to Release Blocker in 4.x Release Blockers Aug 7, 2025
@stuartcarnie stuartcarnie self-assigned this Aug 7, 2025
@stuartcarnie
Copy link
Contributor Author

I have an addition to this PR, as it doesn't handle toggling the viewport from HDR to SDR.

@stuartcarnie stuartcarnie force-pushed the metal_fx_spatial_fix branch from bc19cf7 to c8b5982 Compare August 8, 2025 02:50
@stuartcarnie
Copy link
Contributor Author

@clayjohn I added a call to _configure_3d_render_buffers(viewport); when the viewport is toggled from SDR to HDR, to allow internal buffers to be recreated, which allows the spatial shader to update its descriptor to match the updated output format:

CleanShot.2025-08-08.at.12.52.57.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release platform:macos topic:porting topic:rendering
Projects
Status: Release Blocker
Development

Successfully merging this pull request may close these issues.

3 participants