From 1df572d26a53c6bacb24fb727a110a96a57a6ed4 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Thu, 6 Oct 2016 17:43:11 -0600 Subject: layers: Pass unique error codes through descriptor validation Descriptor validation builds up error strings at multiple levels such as UpdateError->WriteUpdate->BufferUpdate->BufferOffset. The final error is then reported via a log_msg() call at the top level. In order for this design to allow for the new unique error codes, we need to pass error codes down the chain in the same way we pass error strings down the chain. This change adds error msg passing for descriptor updates. Many error codes are added in as well as comments for codes that are missing or need to be updated. The database file is also updated to account for all of the checks that were updated and/or reviewed. --- layers/core_validation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index e2be8fee..59db198d 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -6778,6 +6778,7 @@ CreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo *pCreateI VKAPI_ATTR VkResult VKAPI_CALL ResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags) { + // TODO : Add checks for VALIDATION_ERROR_00928 layer_data *dev_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map); VkResult result = dev_data->dispatch_table.ResetDescriptorPool(device, descriptorPool, flags); if (VK_SUCCESS == result) { -- cgit v1.2.3