diff options
| author | Mark Mueller <markm@lunarg.com> | 2016-08-16 09:47:31 -0600 |
|---|---|---|
| committer | Mark Mueller <markm@lunarg.com> | 2016-08-17 07:29:31 -0600 |
| commit | f38be47d7086ed6ad68aae3c42d09763de1a549f (patch) | |
| tree | c4d558739cf7e98815e4865e3a8605b5bdf89e4c /layers/core_validation.cpp | |
| parent | d4dbd2c208412a4a22800b6f67ec427ade5e337e (diff) | |
| download | usermoji-f38be47d7086ed6ad68aae3c42d09763de1a549f.tar.xz | |
layers: GH424 add check of skip_call results to CreateDevice
skip_call result was ignored allowing for exception violations
under some test conditions.
Change-Id: Ied673a9b932210de52ed189c67221af60415cae9
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 00b66aae..e6c50c32 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -4224,6 +4224,10 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateDevice(VkPhysicalDevice gpu, const VkDevice } skip_call |= ValidateRequestedQueueFamilyProperties(my_instance_data, pCreateInfo); + if (skip_call) { + return VK_ERROR_VALIDATION_FAILED_EXT; + } + VkLayerDeviceCreateInfo *chain_info = get_chain_info(pCreateInfo, VK_LAYER_LINK_INFO); assert(chain_info->u.pLayerInfo); |
