aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-10-31 07:55:19 -0600
committerTobin Ehlis <tobine@google.com>2016-10-31 10:41:38 -0600
commit837d5e44fd0b58914ae53483acfc1bebb62e7e8c (patch)
tree8f1f87bde4e43ffec49ed84a121e87e06e096e92
parent6af4bf3332de33c52b23cc074a1a4897b836b95a (diff)
downloadusermoji-837d5e44fd0b58914ae53483acfc1bebb62e7e8c.tar.xz
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"
-rw-r--r--layers/spec.py6
-rw-r--r--layers/vk_validation_error_database.txt1
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)~^~
-