Skip to content

Commit

Permalink
vk: workaround a renderStandaloneView issue
Browse files Browse the repository at this point in the history
Found through testing that renderStandaloneView+vk+swiftshader
seems to cause synchronization issues, which results in incorrect
rendering. Here we workaround the issue by forcibly flush and
wait per renderStandaloneView call.

BUG=361822355
  • Loading branch information
poweifeng committed Sep 18, 2024
1 parent 01711f4 commit 6cc4ae0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions filament/src/details/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,12 @@ void FRenderer::renderStandaloneView(FView const* view) {
renderInternal(view);

driver.endFrame(mFrameId);

// This is a workaround for internal bug b/361822355.
// TODO: properly address the bug and remove this workaround.
if (engine.getBackend() == backend::Backend::VULKAN) {
engine.flushAndWait();
}
}
}

Expand Down

0 comments on commit 6cc4ae0

Please sign in to comment.