Skip to content

Fix wide gamut condition on metal playground tests - #191210

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
andywolff:metal-golden-wide-gamut
Aug 17, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
andywolff:metal-golden-wide-gamut

Conversation

@andywolff

@andywolff andywolff commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #191209.

In golden_playground_test_mac.cc, GoldenPlaygroundTest::SetUp() was unconditionally skipping all Metal and MetalSDF golden tests whenever DoesSupportWideGamutTests() returned false. On devices without wide gamut support (such as Mac_x64 CI runners and Intel Macs), this caused standard sRGB golden tests to be skipped.

This PR restricts the DoesSupportWideGamutTests() check to tests that explicitly require wide gamut (switches.enable_wide_gamut), allowing standard sRGB Metal and MetalSDF golden tests to execute.

Tested locally on a macOS machine without wide gamut display support. Now only the tests which require wide gamut are skipped, instead of all of them.

Pre-launch Checklist

@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Aug 17, 2026
@andywolff andywolff added the CICD Run CI/CD label Aug 17, 2026
@andywolff
andywolff marked this pull request as ready for review August 17, 2026 17:59
@andywolff
andywolff requested a review from gaaclarke August 17, 2026 17:59

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Metal backend setup in golden_playground_test_mac.cc to only skip wide gamut golden tests if switches.enable_wide_gamut is enabled and the device does not support wide gamut tests. There are no review comments, and I have no feedback to provide.

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks! fyi we are phasing out support for x64 macs

@andywolff

Copy link
Copy Markdown
Contributor Author

Sounds good. Even after we phase out any machines in CI without wide gamut support, is still potentially valuable for the case where someone like me wants to run playground tests locally. Adding autosubmit label

@andywolff andywolff added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 17, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 17, 2026
Merged via the queue into flutter:master with commit 9a353b5 Aug 17, 2026
30 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD e: impeller Impeller rendering backend issues and features requests engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Impeller] Metal golden tests are unconditionally skipped on macOS when wide gamut is unsupported

2 participants