From 837d5e44fd0b58914ae53483acfc1bebb62e7e8c Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 31 Oct 2016 07:55:19 -0600 Subject: scripts:Update unique error enums as of 10/31/16 No new checks this week, updated script to handle blank lines and also to not output the API name debug info by default. Cmd line was "python spec.py -update" --- layers/spec.py | 6 +++--- layers/vk_validation_error_database.txt | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/layers/spec.py b/layers/spec.py index bdd306b9..75b3a16f 100644 --- a/layers/spec.py +++ b/layers/spec.py @@ -142,7 +142,7 @@ class Specification: code_text_list = code_text.split() if len(code_text_list) > 1 and code_text_list[1].startswith('vk'): api_function = code_text_list[1].strip('(') - print "Found API function: %s" % (api_function) + #print "Found API function: %s" % (api_function) elif tag.tag == '{http://www.w3.org/1999/xhtml}div' and tag.get('class') == 'sidebar': # parse down sidebar to check for valid usage cases valid_usage = False @@ -249,9 +249,9 @@ class Specification: max_id = 0 with open(db_file, "r") as infile: for line in infile: - if line.startswith('#'): - continue line = line.strip() + if line.startswith('#') or '' == line: + continue db_line = line.split(self.delimiter) if len(db_line) != 6: print "ERROR: Bad database line doesn't have 6 elements: %s" % (line) diff --git a/layers/vk_validation_error_database.txt b/layers/vk_validation_error_database.txt index 35816da6..868bbead 100644 --- a/layers/vk_validation_error_database.txt +++ b/layers/vk_validation_error_database.txt @@ -2291,4 +2291,3 @@ VALIDATION_ERROR_02342~^~U~^~Unknown~^~vkQueuePresentKHR~^~For more information VALIDATION_ERROR_02343~^~U~^~Unknown~^~vkCmdDebugMarkerEndEXT~^~For more information refer to Vulkan Spec Section '32.1.2. Command Buffer Markers' which states 'If the matching vkCmdDebugMarkerBeginEXT command was in a secondary command buffer, the vkCmdDebugMarkerEndEXT must be in the same commandBuffer' (https://www.khronos.org/registry/vulkan/specs/1.0-extensions/xhtml/vkspec.html#vkCmdDebugMarkerEndEXT)~^~ VALIDATION_ERROR_02344~^~U~^~Unknown~^~vkCreateImage~^~For more information refer to Vulkan Spec Section '11.3. Images' which states 'If imageType is VK_IMAGE_TYPE_3D, arrayLayers must be 1.' (https://www.khronos.org/registry/vulkan/specs/1.0-extensions/xhtml/vkspec.html#VkImageCreateInfo)~^~ VALIDATION_ERROR_02345~^~Y~^~DuplicateDescriptorBinding~^~vkCreateDescriptorSetLayout~^~For more information refer to Vulkan Spec Section '13.2.1. Descriptor Set Layout' which states 'The VkDescriptorSetLayoutBinding::binding members of the elements of the pBindings array must each have different values.' (https://www.khronos.org/registry/vulkan/specs/1.0-extensions/xhtml/vkspec.html#VkDescriptorSetLayoutCreateInfo)~^~ - -- cgit v1.2.3