aboutsummaryrefslogtreecommitdiff
path: root/layers/parameter_validation_utils.h
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-06-28 14:23:22 -0600
committerMark Lobodzinski <mark@lunarg.com>2017-07-03 14:00:45 -0600
commitab3bf2238c154013dc5fb229b5689a482e97b04a (patch)
tree398a1d9d400cc25a19000432e52ed11ad57cde08 /layers/parameter_validation_utils.h
parent9f65aec9916b7380184f13788c8eb1b90e55bcf5 (diff)
downloadusermoji-ab3bf2238c154013dc5fb229b5689a482e97b04a.tar.xz
layers: Add VUs to more PV struct-type_array checks
Change-Id: I9aa1ea41550d24113117d40617689688b96227db
Diffstat (limited to 'layers/parameter_validation_utils.h')
-rw-r--r--layers/parameter_validation_utils.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h
index a83a6a53..b9ec355f 100644
--- a/layers/parameter_validation_utils.h
+++ b/layers/parameter_validation_utils.h
@@ -324,12 +324,12 @@ bool validate_struct_type(debug_report_data *report_data, const char *apiName, c
template <typename T>
bool validate_struct_type_array(debug_report_data *report_data, const char *apiName, const ParameterName &countName,
const ParameterName &arrayName, const char *sTypeName, uint32_t count, const T *array,
- VkStructureType sType, bool countRequired, bool arrayRequired) {
+ VkStructureType sType, bool countRequired, bool arrayRequired, UNIQUE_VALIDATION_ERROR_CODE vuid) {
bool skip_call = false;
if ((count == 0) || (array == NULL)) {
skip_call |= validate_array(report_data, apiName, countName, arrayName, count, array, countRequired, arrayRequired,
- VALIDATION_ERROR_UNDEFINED, VALIDATION_ERROR_UNDEFINED);
+ VALIDATION_ERROR_UNDEFINED, vuid);
} else {
// Verify that all structs in the array have the correct type
for (uint32_t i = 0; i < count; ++i) {
@@ -368,7 +368,8 @@ bool validate_struct_type_array(debug_report_data *report_data, const char *apiN
template <typename T>
bool validate_struct_type_array(debug_report_data *report_data, const char *apiName, const ParameterName &countName,
const ParameterName &arrayName, const char *sTypeName, uint32_t *count, const T *array,
- VkStructureType sType, bool countPtrRequired, bool countValueRequired, bool arrayRequired) {
+ VkStructureType sType, bool countPtrRequired, bool countValueRequired, bool arrayRequired,
+ UNIQUE_VALIDATION_ERROR_CODE vuid) {
bool skip_call = false;
if (count == NULL) {
@@ -379,7 +380,7 @@ bool validate_struct_type_array(debug_report_data *report_data, const char *apiN
}
} else {
skip_call |= validate_struct_type_array(report_data, apiName, countName, arrayName, sTypeName, (*count), array, sType,
- countValueRequired, arrayRequired);
+ countValueRequired, arrayRequired, vuid);
}
return skip_call;