layers:Migrate to new validation error IDs
authorTobin Ehlis <tobine@google.com>
Wed, 24 May 2017 15:31:13 +0000 (09:31 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 24 May 2017 17:21:40 +0000 (11:21 -0600)
commit23b468e1bf7369de108c28bf094acae98add5130
tree31e46770c0cb5d55cfea74fc9f519535c0a16dc0
parent8ce219c4526dafda036ac33a3877f429d107f837
layers:Migrate to new validation error IDs

Migrate valid usage IDs to new numbers based on the string IDs that are
integrated into the spec build process.

The formula for mapping the string ID to the new VALIDATION_ERROR enum
value is in vuid_mapping.py script.
The mapping between the old IDs and the new IDs is in the file
"old_vuid_to_new_mapping.txt."

The vk_validation_error_database.txt file has the new IDs as well as
the string-based ID for each element and a column indicating if the
valid usage is in the core spec or if it requires extension(s) and is
therefore in the extension spec.

The error messages were shortened and no longer include a section
reference. Now the link goes directly to the line in the spec where
the valid usage text occurs. The base of the spec link is the core spec
unless the VU requires an extension in which case the spec with all
extensions is used as the base.
12 files changed:
layers/buffer_validation.cpp
layers/core_validation.cpp
layers/descriptor_sets.cpp
layers/object_tracker.cpp
layers/old_vuid_to_new_mapping.txt [new file with mode: 0644]
layers/parameter_validation.cpp
layers/spec.py
layers/swapchain.cpp
layers/vk_validation_error_database.txt
layers/vk_validation_error_messages.h
layers/vk_validation_stats.py
layers/vuid_mapping.py