scripts:Update unique IDs for spec v1.0.45.1
authorTobin Ehlis <tobine@google.com>
Tue, 4 Apr 2017 18:23:48 +0000 (12:23 -0600)
committerTobin Ehlis <tobine@google.com>
Tue, 4 Apr 2017 22:06:09 +0000 (16:06 -0600)
commitcfb77988ccd84f9daa0644bcbc46b7bb3c5d94b9
tree5e78f737d7e39f884c5316cd03beef7b8c0c2c6a
parent4821cd31f67c48507541bce840dc7abd3004374c
scripts:Update unique IDs for spec v1.0.45.1

Another massive update. Totally overhauled the mapping algorithm.
The basic outline of the new algorithm is:
-Try to map complete error message to prev ID
-Then try to map error msg w/o link to prev ID
-Finally try to map just core error string (no section) to prev ID
-Else assign it a new unique ID

See code for complete details.

In anticipation of integrated uniqueIDs I took a little liberty with
this update in that I didn't attempt to remap EVERY new ID to previous
IDs. I did many of them and made sure to account for every previous ID
that was implemented.
IDs will all be undergoing a one-time change with their integration
into the spec anyway so there is little harm in letting non-implemented
IDs drift a bit for now and it helps save my sanity.
I did add a validation step to the spec.py script to make sure and flag
any IDs that previously were implemented and suddenly are no longer in
the re-mapped version of IDs.

I manually presevered IDs 911 & 912 which get masked from the extension
spec.
I also had to do some manual updates on an offline spec to keep the
parser from breaking on the non-xhtml compliant spec.

Command line was:
python spec.py -update -remap 92-72:97-77:112-92:116-96:123-103:124-105:
133-114:148-2349:154-133,2:156-135:157-139:204-156:205-155:206-154:
417-269:1189-769:1417-938:1446-965:1448-967:1449-968:1487-974:
2193-1430,5:683-496:684-494:728-529:729-527:1628-1086:1731-1180:
1736-1183:1796-1234:1815-1251
layers/buffer_validation.cpp
layers/core_validation.cpp
layers/spec.py
layers/vk_validation_error_database.txt
layers/vk_validation_error_messages.h