mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia] Avoid unnecessary layout transition. (#18653)
See https://github.com/KhronosGroup/Vulkan-Samples/blob/master/samples/performance/layout_transitions/layout_transitions_tutorial.md#transaction-elimination-on-mali-gpus for an explanation of why transitioning the layout hurts performance on Mali drivers. Co-authored-by: David Reveman <reveman@google.com>
This commit is contained in:
parent
efe3f4569a
commit
c19459ab7d
@ -214,7 +214,7 @@ bool VulkanSurfaceProducer::TransitionSurfacesToExternal(
|
||||
.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
|
||||
.dstAccessMask = 0,
|
||||
.oldLayout = imageInfo.fImageLayout,
|
||||
.newLayout = VK_IMAGE_LAYOUT_GENERAL,
|
||||
.newLayout = imageInfo.fImageLayout,
|
||||
.srcQueueFamilyIndex = 0,
|
||||
.dstQueueFamilyIndex = VK_QUEUE_FAMILY_EXTERNAL_KHR,
|
||||
.image = vk_surface->GetVkImage(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user