Handle BUFFER_DYNAMIC and UPDATE_AFTER_BIND interaction
authorNikita Bart <nikita.bart@arm.com>
Wed, 27 Mar 2019 13:13:00 +0000 (14:13 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 5 Apr 2019 10:57:15 +0000 (06:57 -0400)
commita73785b414dd077a0d4f99eb4061eb049becf780
tree06c5481ece4160f2ec2e06eb964c32aec2ab3677
parent37547c29a94c1499341918d7558dfbf685429e4b
Handle BUFFER_DYNAMIC and UPDATE_AFTER_BIND interaction

"descriptorset_random" tests were violating the spec's requirement that
bindings with VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT_EXT bit
cannot be used with BUFFER_DYNAMIC descriptor types in one set.
Testing of UPDATE_AFTER_BIND bindings is disabled
in order to conform to the requirement.

Fix validation of inline UBO with variable descriptor count

When used with variable descriptor count inline UBO's were read
and written out of allocated size, which is set in
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.descriptorCount

Components: Vulkan

Affects: dEQP-VK.binding_model.descriptorset_random.*

VK-GL-CTS issue: 1708

Change-Id: I9e97b701897961aedf8a746b72a1070ccd3b04e7
external/vulkancts/modules/vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp