diff options
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index f57726b5..95d04468 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -8303,14 +8303,23 @@ static bool ValidateFramebufferCreateInfo(layer_data *dev_data, const VkFramebuf i, ivci->subresourceRange.baseMipLevel, i, mip_width, pCreateInfo->width, mip_height, pCreateInfo->height, ivci->subresourceRange.layerCount, pCreateInfo->layers); } -#if 0 // Enabling 1 new check/test at a time if (((ivci->components.r != VK_COMPONENT_SWIZZLE_IDENTITY) && (ivci->components.r != VK_COMPONENT_SWIZZLE_R)) || ((ivci->components.g != VK_COMPONENT_SWIZZLE_IDENTITY) && (ivci->components.g != VK_COMPONENT_SWIZZLE_G)) || ((ivci->components.b != VK_COMPONENT_SWIZZLE_IDENTITY) && (ivci->components.b != VK_COMPONENT_SWIZZLE_B)) || ((ivci->components.a != VK_COMPONENT_SWIZZLE_IDENTITY) && (ivci->components.a != VK_COMPONENT_SWIZZLE_A))) { - // TODO + skip_call |= log_msg( + dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT, + reinterpret_cast<const uint64_t &>(pCreateInfo->renderPass), __LINE__, + DRAWSTATE_INVALID_FRAMEBUFFER_CREATE_INFO, "DS", + "vkCreateFramebuffer(): VkFramebufferCreateInfo attachment #%u has non-identy swizzle. All framebuffer " + "attachments must have been created with the identity swizzle. Here are the actual swizzle values:\n" + "r swizzle = %s\n" + "g swizzle = %s\n" + "b swizzle = %s\n" + "a swizzle = %s\n", + i, string_VkComponentSwizzle(ivci->components.r), string_VkComponentSwizzle(ivci->components.g), + string_VkComponentSwizzle(ivci->components.b), string_VkComponentSwizzle(ivci->components.a)); } -#endif } } // Verify correct attachment usage flags |
