Skip to content

Commit

Permalink
Fix support check for sparse input attachment test
Browse files Browse the repository at this point in the history
Components: Vulkan
VK-GL-CTS Issue: 2528

Affects:
dEQP-VK.renderpass.suballocation.attachment_sparse_filling.*

Change-Id: I4c143273e9f337f7d5dcfc0230c800955304633b
  • Loading branch information
mnetsch committed Aug 6, 2020
1 parent 0019fc8 commit 4b2f0de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ void InputAttachmentSparseFillingTest::checkSupport(Context& context) const

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");
Expand Down

0 comments on commit 4b2f0de

Please sign in to comment.