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

[Impeller] Add fenced command buffer that waits on-submit #37750

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

iskakaushik
Copy link
Contributor

@iskakaushik iskakaushik commented Nov 18, 2022

this isn't ideal for performance long term but aligns well with what the other backends do. This also lets us remove the dependence on frame numbers for renderpasses setting up for implementing MSAA.

fixes: flutter/flutter#112387

@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 Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on 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.

@iskakaushik iskakaushik requested a review from dnfield November 18, 2022 17:11
@iskakaushik iskakaushik force-pushed the resource-management branch 2 times, most recently from a2c4947 to 427684f Compare November 18, 2022 17:15
}

// cleanup all the resources held by the command buffer and its children.
deletion_queue_->Flush();
Copy link
Contributor Author

@iskakaushik iskakaushik Nov 18, 2022

Choose a reason for hiding this comment

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

the above fence can be awaited on a different thread similar to https://github.com/chinmaygarde/pixelpusher/blob/master/source/machine/fence_waiter.h, and the deletion queue can be flushed later, but that's an optimization for another day :-)

this isn't ideal for performance long term but aligns well with what
the other backends do. This also lets us remove the dependence on frame
numbers for renderpasses setting up for implementing MSAA.
@iskakaushik
Copy link
Contributor Author

cc: @chinmaygarde friendly ping

@iskakaushik iskakaushik added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 23, 2022
@auto-submit auto-submit bot merged commit e74cecb into flutter:main Nov 23, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 23, 2022
…115949)

* 6281b09a7 Roll Fuchsia Mac SDK from zoBKUSYFpDq3XtJZ4... to i-NY382Y0Y8m9OqNp... (flutter/engine#37871)

* e74cecbf8 [Impeller] Add fenced command buffer that waits on-submit (flutter/engine#37750)
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…lutter#115949)

* 6281b09a7 Roll Fuchsia Mac SDK from zoBKUSYFpDq3XtJZ4... to i-NY382Y0Y8m9OqNp... (flutter/engine#37871)

* e74cecbf8 [Impeller] Add fenced command buffer that waits on-submit (flutter/engine#37750)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…lutter#115949)

* 6281b09a7 Roll Fuchsia Mac SDK from zoBKUSYFpDq3XtJZ4... to i-NY382Y0Y8m9OqNp... (flutter/engine#37871)

* e74cecbf8 [Impeller] Add fenced command buffer that waits on-submit (flutter/engine#37750)
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 needs tests
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Impeller]☂️ Fix known leaks in the Vulkan backend.
2 participants