aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-12-22 14:31:01 -0700
committerTobin Ehlis <tobine@google.com>2016-12-23 14:39:34 -0700
commit5f89a480520d0dc78c3df29d903eaeae209dbbbe (patch)
treebfc36be9dce8f72e75e750800066d1273ecf87a2
parentdf503e081d4adb55edb6b7562059565c89c44acf (diff)
downloadusermoji-5f89a480520d0dc78c3df29d903eaeae209dbbbe.tar.xz
scripts:Add more duplicate error enum exceptions
Allow various other unique error enums to be used multiple times. Addressing these on a case-by-case basis and documenting the exceptions in the script.
-rwxr-xr-xlayers/vk_validation_stats.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/layers/vk_validation_stats.py b/layers/vk_validation_stats.py
index ecf48535..6003fa1c 100755
--- a/layers/vk_validation_stats.py
+++ b/layers/vk_validation_stats.py
@@ -57,8 +57,14 @@ header_file = 'vk_validation_error_messages.h'
test_file = '../tests/layer_validation_tests.cpp'
# List of enums that are allowed to be used more than once so don't warn on their duplicates
duplicate_exceptions = [
-'VALIDATION_ERROR_00942', # This is a descriptor set write update error that we use for a couple copy cases as well
+'VALIDATION_ERROR_00018', # This covers the broad case that all child objects must be destroyed at DestroyInstance time
+'VALIDATION_ERROR_00049', # This covers the broad case that all child objects must be destroyed at DestroyDevice time
'VALIDATION_ERROR_00648', # This is a case for VkMappedMemoryRange struct that is used by both Flush & Invalidate MappedMemoryRange
+'VALIDATION_ERROR_00741', # This is a blanket case for all invalid image aspect bit errors. The spec link has appropriate details for all separate cases.
+'VALIDATION_ERROR_00768', # This case covers two separate checks which are done independently
+'VALIDATION_ERROR_00769', # This case covers two separate checks which are done independently
+'VALIDATION_ERROR_00942', # This is a descriptor set write update error that we use for a couple copy cases as well
+'VALIDATION_ERROR_02525', # Used twice for the same error codepath as both a param & to set a variable, so not really a duplicate
]
class ValidationDatabase: