diff options
author | Samuel Pitoiset <[email protected]> | 2018-07-13 14:14:52 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-07-17 09:04:35 +0200 |
commit | b213947510e350a116d0fe4fc6a5c59aa15225e1 (patch) | |
tree | baf8458c10804a363b16a03dafa0b8c7f383a67c /src | |
parent | 591b7009440cef9fa0dd3bc09512a7a2906ef33d (diff) |
radv: fix implementation of VK_KHR_create_renderpass2 for multiviews
The Vulkan 1.1.80 spec says:
"viewMask has the same effect for the described subpass as
VkRenderPassMultiviewCreateInfo::pViewMasks has on each
corresponding subpass."
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_pass.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/amd/vulkan/radv_pass.c b/src/amd/vulkan/radv_pass.c index 2191093391c..f2884ffc01a 100644 --- a/src/amd/vulkan/radv_pass.c +++ b/src/amd/vulkan/radv_pass.c @@ -226,16 +226,6 @@ VkResult radv_CreateRenderPass2KHR( pass->subpass_count = pCreateInfo->subpassCount; pass->attachments = (void *) pass + attachments_offset; - vk_foreach_struct(ext, pCreateInfo->pNext) { - switch(ext->sType) { - case VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO_KHR: - multiview_info = ( VkRenderPassMultiviewCreateInfoKHR*)ext; - break; - default: - break; - } - } - for (uint32_t i = 0; i < pCreateInfo->attachmentCount; i++) { struct radv_render_pass_attachment *att = &pass->attachments[i]; @@ -280,8 +270,7 @@ VkResult radv_CreateRenderPass2KHR( subpass->input_count = desc->inputAttachmentCount; subpass->color_count = desc->colorAttachmentCount; - if (multiview_info) - subpass->view_mask = multiview_info->pViewMasks[i]; + subpass->view_mask = desc->viewMask; if (desc->inputAttachmentCount > 0) { subpass->input_attachments = p; |