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

Conversation

@bdero
Copy link
Member

@bdero bdero commented Aug 9, 2023

We already have an option for GL to avoid generating compute shaders for GL -- but for the special case of shaders that use GL textures, we don't need to build these for Vulkan or Metal.

@bdero bdero requested review from chinmaygarde and zanderso August 9, 2023 18:06
@bdero bdero self-assigned this Aug 9, 2023
if (defined(invoker.enable_vulkan)) {
enable_vulkan = invoker.enable_vulkan
}

Copy link
Member

Choose a reason for hiding this comment

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

Consider asserting (enable_metal || enable_opengles || enable_vulkan)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member Author

@bdero bdero Aug 10, 2023

Choose a reason for hiding this comment

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

Not clear to me why the playground is getting included in the fuchsia builds. I need to look into this deeper.

Copy link
Member

Choose a reason for hiding this comment

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

Not sure, but wondering if the deps here also need an impeller_supports_rendering guard:
https://github.com/flutter/engine/blob/main/BUILD.gn#L184

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I really understand what's goign on here, but maybe just (!impeller_supports_rendering || enable_metal || enable_opengles || enable_vulkan)?

@bdero bdero force-pushed the bdero/impellerc-allow-disabling-metal-vulkan branch 2 times, most recently from 6ca6822 to ad82c85 Compare August 10, 2023 17:25
@chinmaygarde
Copy link
Member

Closing. Filed flutter/flutter#132793 to address the pain with Fuchsia.

@dnfield dnfield reopened this Aug 21, 2023
@dnfield
Copy link
Contributor

dnfield commented Aug 21, 2023

This should pass now with #44925

@dnfield dnfield closed this Aug 21, 2023
@dnfield dnfield reopened this Aug 21, 2023
@bdero bdero force-pushed the bdero/impellerc-allow-disabling-metal-vulkan branch from 248244f to 0fcf9e9 Compare August 21, 2023 23:22
@dnfield
Copy link
Contributor

dnfield commented Aug 21, 2023

@bdero - consider merging to head somehow, your force push appears to have backed out the commit that fixes the fuchsia failures.

@bdero bdero force-pushed the bdero/impellerc-allow-disabling-metal-vulkan branch from 0fcf9e9 to 2389cac Compare August 21, 2023 23:45
@bdero
Copy link
Member Author

bdero commented Aug 22, 2023

The commit I pushed was https://github.com/flutter/engine/commits/0fcf9e99bdcec70a6402399b04c629396a8d4a63, which includes your change and doesn't reverse it in a future diff. (I've since pushed again after rebasing again and removing an unrelated change)

I'm wondering if the assert is just bad and this is just due to my poor understanding of GN templates. Like, if the template evaluation happens for all templates eagerly at import time rather than lazily at rule evaluation time, the assert isn't going to work.

@dnfield
Copy link
Contributor

dnfield commented Aug 22, 2023

I think Github was showing me a stale diff at one point when I made that comment.

Weird. Something else is causing the playground target to get included here.

@chinmaygarde
Copy link
Member

I think the takeaway from the sync was that we are not going to continue investigating why this was failing as we are no longer blocked. May I close this?

@chinmaygarde
Copy link
Member

Closing this as stale.

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

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants