aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorCody Northrop <cody@lunarg.com>2015-08-04 10:47:08 -0600
committerCody Northrop <cody@lunarg.com>2015-08-04 17:37:03 -0600
commit2e11cade51d0a0f08aa4f55d9fb96a33b40726fb (patch)
treef0108d17d0611045986fcb6875f72a7e6463974e /layers
parent4d3c11d455499e57557264e41048a922172516d7 (diff)
downloadusermoji-2e11cade51d0a0f08aa4f55d9fb96a33b40726fb.tar.xz
v142: Bug 14275 - Remove image layouts in VkFramebufferCreateInfo
Diffstat (limited to 'layers')
-rw-r--r--layers/draw_state.cpp4
-rw-r--r--layers/param_checker.cpp7
2 files changed, 2 insertions, 9 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index e17a36e4..b8b9df1b 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -2783,8 +2783,8 @@ VK_LAYER_EXPORT VkResult VKAPI vkCreateFramebuffer(VkDevice device, const VkFram
// Shadow create info and store in map
VkFramebufferCreateInfo* localFBCI = new VkFramebufferCreateInfo(*pCreateInfo);
if (pCreateInfo->pAttachments) {
- localFBCI->pAttachments = new VkAttachmentBindInfo[localFBCI->attachmentCount];
- memcpy((void*)localFBCI->pAttachments, pCreateInfo->pAttachments, localFBCI->attachmentCount*sizeof(VkAttachmentBindInfo));
+ localFBCI->pAttachments = new VkAttachmentView[localFBCI->attachmentCount];
+ memcpy((void*)localFBCI->pAttachments, pCreateInfo->pAttachments, localFBCI->attachmentCount*sizeof(VkAttachmentView));
}
frameBufferMap[pFramebuffer->handle] = localFBCI;
}
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp
index 0c7b4d48..1547fbbe 100644
--- a/layers/param_checker.cpp
+++ b/layers/param_checker.cpp
@@ -6134,13 +6134,6 @@ bool PreCreateFramebuffer(
}
if(pCreateInfo->pAttachments != nullptr)
{
- if(pCreateInfo->pAttachments->layout < VK_IMAGE_LAYOUT_BEGIN_RANGE ||
- pCreateInfo->pAttachments->layout > VK_IMAGE_LAYOUT_END_RANGE)
- {
- log_msg(mdd(device), VK_DBG_REPORT_ERROR_BIT, (VkDbgObjectType)0, 0, 0, 1, "PARAMCHECK",
- "vkCreateFramebuffer parameter, VkImageLayout pCreateInfo->pAttachments->layout, is an unrecognized enumerator");
- return false;
- }
}
}