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

[Impeller] Refactor Cubic/Quad tests to make sure all threads reach barrier() #40506

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Mar 21, 2023

Also does some refactoring to move code under test to a shared file for future use in the more generalized path polyline generator.

This is another part of addressing flutter/flutter#122828.

The last piece left is to split invocations up into chunks that fit into the threadExecutionWidth.

I don't have a test with this change, but it will be tested when we re-enable the tests from the linked issue on Intel machines. Ideally we'd have some kind of linting or fuzzing for this, but there's no good existing solution for that right now.

Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

🤔 RSLGTM

@dnfield
Copy link
Contributor Author

dnfield commented Mar 21, 2023

Probably should've added in the description - if some thread fails to reach barrier(), the shader is just hanging on Intel.

@zanderso
Copy link
Member

Testing is something that we should discuss after the next branch cut and before the GPU compute code goes live.

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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants