layers: Pass unique error codes through descriptor validation
authorTobin Ehlis <tobine@google.com>
Thu, 6 Oct 2016 23:43:11 +0000 (17:43 -0600)
committerTobin Ehlis <tobine@google.com>
Mon, 10 Oct 2016 23:40:34 +0000 (17:40 -0600)
commit7286e20c06011d3c6fa7edfbdbadd42bb6e8cc35
tree8bde219a600964dcd9dbb34dadab329ed38fc412
parent130e9e24490fc758d7304690693f8d0109f9bcbe
layers: Pass unique error codes through descriptor validation

Descriptor validation builds up error strings at multiple levels such as
UpdateError->WriteUpdate->BufferUpdate->BufferOffset. The final error is
then reported via a log_msg() call at the top level.

In order for this design to allow for the new unique error codes, we need
to pass error codes down the chain in the same way we pass error strings
down the chain.

This change adds error msg passing for descriptor updates. Many error
codes are added in as well as comments for codes that are missing or need
to be updated.

The database file is also updated to account for all of the checks that
were updated and/or reviewed.
layers/core_validation.cpp
layers/descriptor_sets.cpp
layers/descriptor_sets.h
layers/vk_validation_error_database.txt