layers: GH215 Removes an invalid check in vkCmdBindDescriptorSets()
authorDominik Witczak <Dominik.Witczak@amd.com>
Wed, 30 Mar 2016 13:11:53 +0000 (15:11 +0200)
committerTobin Ehlis <tobine@google.com>
Wed, 30 Mar 2016 15:48:25 +0000 (09:48 -0600)
layers/core_validation.cpp

index dd9b8fe..36a078c 100644 (file)
@@ -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]);