vulkan/enum_to_str: Handle out-of-order aliases
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 26 Jun 2019 18:35:54 +0000 (13:35 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 26 Nov 2019 02:48:42 +0000 (02:48 +0000)
commit121551bfdb07786c8e26b712d87c8564bda556b4
treee72322ceb1dc809fc6acd8d2a72e692e2efa6cf4
parentf6aa51103b134b2cfdc4517cf251a180bd71cebc
vulkan/enum_to_str: Handle out-of-order aliases

The current code can only handle enum aliases if the original enum is
declared first followed by the alias as we walk the XML in a linear
fashion.  This commit allows us to handle aliases where the alias
declaration comes before the thing it's aliasing.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/vulkan/util/gen_enum_to_str.py