Merge vk-gl-cts/vulkan-cts-1.2.2 into into/vulkan-cts-1.2.3
Change-Id: I3acf8badddc40281feed39932dd297859705dfc7
diff --git a/external/vulkancts/modules/vulkan/renderpass/vktRenderPassUnusedAttachmentSparseFillingTests.cpp b/external/vulkancts/modules/vulkan/renderpass/vktRenderPassUnusedAttachmentSparseFillingTests.cpp
index 51cd1f1..24a4227 100644
--- a/external/vulkancts/modules/vulkan/renderpass/vktRenderPassUnusedAttachmentSparseFillingTests.cpp
+++ b/external/vulkancts/modules/vulkan/renderpass/vktRenderPassUnusedAttachmentSparseFillingTests.cpp
@@ -248,8 +248,8 @@
const vk::VkPhysicalDeviceLimits limits = getPhysicalDeviceProperties(context.getInstanceInterface(), context.getPhysicalDevice()).limits;
- if( m_testParams.activeInputAttachmentCount > limits.maxPerStageDescriptorInputAttachments )
- TCU_THROW(NotSupportedError, "Input attachment count exceeds maxPerStageDescriptorInputAttachments");
+ if( 2u * m_testParams.activeInputAttachmentCount > limits.maxPerStageDescriptorInputAttachments )
+ TCU_THROW(NotSupportedError, "Input attachment count including unused elements exceeds maxPerStageDescriptorInputAttachments");
if ( 2u * m_testParams.activeInputAttachmentCount > limits.maxPerStageResources)
TCU_THROW(NotSupportedError, "Input attachment count including unused elements exceeds maxPerStageResources");