scripts:Add exception for error 1790
authorTobin Ehlis <tobine@google.com>
Wed, 23 Nov 2016 20:08:01 +0000 (13:08 -0700)
committerTobin Ehlis <tobine@google.com>
Wed, 23 Nov 2016 23:12:36 +0000 (16:12 -0700)
VALIDATION_ERROR_01790 is a special case that provides an exception
for valid usage when VK_AMD_negative_viewport_height extension is
enabled. There's no actual error to flag here, but the code does
handle the exception case correctly so adding it as an exception
in the stat script as well to reflect that it's implemented.

layers/vk_validation_stats.py

index 390431e..fa3819d 100755 (executable)
@@ -129,6 +129,8 @@ class ValidationSource:
     def __init__(self, source_file_list):
         self.source_files = source_file_list
         self.enum_count_dict = {} # dict of enum values to the count of how much they're used
+        # 1790 is a special case that provides an exception when an extension is enabled. No specific error is flagged, but the exception is handled so add it here
+        self.enum_count_dict['VALIDATION_ERROR_01790'] = 1
     def parse(self):
         duplicate_checks = 0
         for sf in self.source_files: