Commit d6365357 authored by Michael Spang's avatar Michael Spang Committed by Commit Bot

vulkan: Fix incorrect index during VkImageView construction

All framebuffers refer to the same image because the attachment index is
used instead of the swap chain image index. Use the swap chain image
index instead.

Bug: 840470
Test: ozone_demo on X11
Change-Id: Ie9132719be5ed2391042530a5fce4aba8ecbff15
Reviewed-on: https://chromium-review.googlesource.com/1054499
Commit-Queue: Michael Spang <spang@chromium.org>
Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558449}
parent a23c8fbc
......@@ -297,7 +297,7 @@ bool VulkanRenderPass::Initialize(const VulkanSwapChain* swap_chain,
switch (attachment_data.attachment_type) {
case AttachmentType::ATTACHMENT_TYPE_SWAP_IMAGE:
image_view = swap_chain->GetImageView(n);
image_view = swap_chain->GetImageView(i);
break;
case AttachmentType::ATTACHMENT_TYPE_ATTACHMENT_VIEW:
image_view = attachment_data.image_view;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment