Vulkan: External image layout needs to be ReadWrite

Textures specified through external images need to
transition to a ReadWrite layout and not ReadOnly.

Bug: angleproject:4791
Change-Id: I8c0d5999d65499de6a36725ed1cc9c390c479c8c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2270513
Commit-Queue: Mohan Maiya <m.maiya@samsung.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Mohan Maiya 2020-06-26 08:20:47 -07:00 коммит произвёл Commit Bot
Родитель da3e6451c1
Коммит e69298d1b3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1072,7 +1072,7 @@ angle::Result TextureVk::setEGLImageTarget(const gl::Context *context,
vk::CommandBuffer *commandBuffer = nullptr;
ANGLE_TRY(contextVk->endRenderPassAndGetCommandBuffer(&commandBuffer));
mImage->changeLayoutAndQueue(VK_IMAGE_ASPECT_COLOR_BIT,
vk::ImageLayout::AllGraphicsShadersReadOnly,
vk::ImageLayout::AllGraphicsShadersReadWrite,
rendererQueueFamilyIndex, commandBuffer);
}