Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Aug 25, 2022

Fixes flutter/flutter#104743

Simulator more or less restricts to Apple2. That means no instanced rendering. It's not clear to me if some of the sampling stuff would break either, but it isn't breaking currently on the test apps I'm looking at. Also means that we have to use the same uniform alignment as for macOS. I thought we couldn't use memoryless textures but that seems to be working.

The SurfaceFrame change is because using SK_ScalarMax overflows an int32_t, and Skia internally treats the clip as empty if you try to create an SkCanvas that overflows int32_t. I'm not quite sure why this works on iPhones, but I'm going to bed now :)

I've tested this patch on an Intel MBP, don't have access to an M1 at the moment to see what's going on there.

@jonahwilliams @zanderso @flar fyi

@dnfield dnfield requested review from bdero and chinmaygarde August 25, 2022 04:58
@dnfield
Copy link
Contributor Author

dnfield commented Aug 25, 2022

Oh, and I'm leaving instancing as working because why not? We could just remove it, it's not used anywhere - but I let's just do that in a separate patch if we're going to.

baseVertex:command.base_vertex
baseInstance:0u];

if (command.instance_count != 1u) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We already do an early return if it == 0u above.

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 25, 2022
@auto-submit auto-submit bot merged commit bd7a1e0 into flutter:main Aug 25, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 25, 2022
GaryQian pushed a commit to GaryQian/engine that referenced this pull request Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

[Impeller] Support iOS Simulators.

2 participants