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

Conversation

@matanlurey
Copy link
Contributor

I started using CreateMockVulkanContext() in #45654, and discovered that it was not thread-safe. This PR does a little bit of refactoring/TLC to ensure that functions and buffers can be accessed across threads (like the real ContextVK).

The attached test (test for a test fixture, hoorah!) fails consistently before the changes, and passes after. Note that if you try testing this with --gtest_repeat=10000 (at least that's the threshold for me), it'll fail - that's actually due to flutter/flutter#134482 which in turn is being fixed in #45686.

(Unblocks flutter/flutter#133198)

Copy link
Member

@gaaclarke gaaclarke left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me. I just have a few minor comments.

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Sep 12, 2023

auto label is removed for flutter/engine/45687, due to - The status or check suite Linux Framework Smoke Tests has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2023
@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Sep 12, 2023

auto label is removed for flutter/engine/45687, due to - The status or check suite Linux Framework Smoke Tests has failed. Please fix the issues identified (or deflake) before re-applying this label.

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2023
@matanlurey matanlurey merged commit 1f068b4 into flutter:main Sep 12, 2023
@matanlurey matanlurey deleted the investigate-multi-thread-mock-vulkan branch September 12, 2023 16:43
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 12, 2023
…134569)

flutter/engine@d4698c6...496ef6a

2023-09-12 [email protected] Roll Skia from 7cafb622ee7f to a4f8f5177c8b (1 revision) (flutter/engine#45719)
2023-09-12 [email protected] Roll Fuchsia Linux SDK from vGleXqh2SRUNJM7JN... to MWWrSP9mSVlGIOaDo... (flutter/engine#45718)
2023-09-12 [email protected] Roll Skia from 438ec87ea2be to 7cafb622ee7f (1 revision) (flutter/engine#45716)
2023-09-12 [email protected] [Impeller] Make `CreateMockVulkanContext()` thread-safe (flutter/engine#45687)
2023-09-12 [email protected] [Impeller] moved validation layers on by default logic to gni scripts (flutter/engine#45682)
2023-09-12 [email protected] Roll Skia from f3f0cab7efd0 to 438ec87ea2be (1 revision) (flutter/engine#45714)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from vGleXqh2SRUN to MWWrSP9mSVlG

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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.

2 participants