aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorDominik Witczak <Dominik.Witczak@amd.com>2016-03-30 15:11:53 +0200
committerTobin Ehlis <tobine@google.com>2016-03-30 09:48:25 -0600
commit8e3b4885f6abec2ef9624d85187734f376bf4555 (patch)
tree57933d44767acbf0607d41ecaaa4c8935f3b06e4 /layers/core_validation.cpp
parentea9642c8715f7fd59825e2d694482fcd6335e2c7 (diff)
downloadusermoji-8e3b4885f6abec2ef9624d85187734f376bf4555.tar.xz
layers: GH215 Removes an invalid check in vkCmdBindDescriptorSets()
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index dd9b8fe9..36a078ca 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -7492,15 +7492,6 @@ vkCmdBindDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipel
pCB->lastBound[pipelineBindPoint].boundDescriptorSets.resize(lastSetIndex + 1);
}
}
- // dynamicOffsetCount must equal the total number of dynamic descriptors in the sets being bound
- if (totalDynamicDescriptors != dynamicOffsetCount) {
- skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
- VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, (uint64_t)commandBuffer, __LINE__,
- DRAWSTATE_INVALID_DYNAMIC_OFFSET_COUNT, "DS",
- "Attempting to bind %u descriptorSets with %u dynamic descriptors, but dynamicOffsetCount "
- "is %u. It should exactly match the number of dynamic descriptors.",
- setCount, totalDynamicDescriptors, dynamicOffsetCount);
- }
// Save dynamicOffsets bound to this CB
for (uint32_t i = 0; i < dynamicOffsetCount; i++) {
pCB->lastBound[pipelineBindPoint].dynamicOffsets.push_back(pDynamicOffsets[i]);