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

Conversation

@jason-simmons
Copy link
Member

The queue submit thread could sometimes call vkQueuePresentKHR while the raster thread is calling vkAcquireNextImageKHR. The simultaneous use of the swapchain on multiple threads violates Vulkan threading rules.

…ulkan images on the raster thread

The queue submit thread could sometimes call vkQueuePresentKHR while
the raster thread is calling vkAcquireNextImageKHR.  The simultaneous
use of the swapchain on multiple threads violates Vulkan threading
rules.
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@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.

LGTM!

@jason-simmons
Copy link
Member Author

Testing: this is not a visible behavior change. The thread usage will be validated by the updated Vulkan validation layers that will be rolled as part of the next vulkan-deps roll (see flutter/flutter#141277)

@jonahwilliams
Copy link
Contributor

Ah, but you have now updated a test, making this change tested. Still LGTM

@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 9, 2024
@auto-submit auto-submit bot merged commit dcac986 into flutter:main Feb 9, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 9, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 9, 2024
jason-simmons added a commit to jason-simmons/flutter_engine that referenced this pull request Feb 9, 2024
@zanderso
Copy link
Member

It looks like this change is necessary, but for the record, SkiaPerf recorded regressions in a few metrics and benchmarks on this change: https://flutter-flutter-perf.skia.org/e/?begin=1707444667&end=1707511041&keys=Xb99a247f2d22b4794028a722faed541f&num_commits=50&request_type=1&xbaroffset=39272

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 platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants