-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vk: optimize headless swapchain #7264
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
poweifeng
commented
Oct 13, 2023
- Remove queue submit call when using headless swapchain. It was meant to emulate a real swapchain, but queue submits are expensive.
- Add option to remove flush and wait when window resizes. If a headless platform uses this signal to refresh the swapchain, we don't necessarily need it to also flush and wait before the refresh.
- Refactor VulkanPlatform customizations
poweifeng
force-pushed
the
pf/vk-config-mem-vals
branch
from
October 13, 2023 18:06
e896523
to
1640748
Compare
bejado
approved these changes
Oct 16, 2023
pixelflinger
requested changes
Oct 16, 2023
* `vkEnumeratePhysicalDevices`. -1 by default to indicate no preference. | ||
*/ | ||
struct GPUPreference { | ||
std::string deviceName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to not rely on the STL in our public headers. I would use utils::CString
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
poweifeng
force-pushed
the
pf/vk-config-mem-vals
branch
from
October 16, 2023 20:43
94ceddd
to
09d5bcc
Compare
- Remove queue submit call when using headless swapchain. It was meant to emulate a real swapchain, but queue submits are expensive. - Add option to remove flush and wait when window resizes. If a headless platform uses this signal to refresh the swapchain, we don't necessarily need it to also flush and wait before the refresh. - Refactor VulkanPlatform customizations
poweifeng
force-pushed
the
pf/vk-config-mem-vals
branch
from
October 16, 2023 20:45
09d5bcc
to
bb4c246
Compare
pixelflinger
approved these changes
Oct 19, 2023
plepers
pushed a commit
to plepers/filament
that referenced
this pull request
Dec 9, 2023
- Remove queue submit call when using headless swapchain. It was meant to emulate a real swapchain, but queue submits are expensive. - Add option to remove flush and wait when window resizes. If a headless platform uses this signal to refresh the swapchain, we don't necessarily need it to also flush and wait before the refresh. - Refactor VulkanPlatform customizations
plepers
pushed a commit
to plepers/filament
that referenced
this pull request
Dec 9, 2023
We removed the no-op queue submit for headless in PR google#7264. This means that a semaphore will not be waited on and caused a validation error. Here, we simply don't acquire that semaphore for present. Also reorganzied the pSempaphores array code for better readability. Fixes google#7334
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.