From 439daddb93c746ca53220d4aa6af0068593978d9 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 13 Oct 2016 14:44:03 +1300 Subject: layers: Suppress warning generation after app acknowledges an error The app already knows about the problem-- it has requested that the call be skipped. Producing another warning afterward is just noise. Signed-off-by: Chris Forbes --- layers/parameter_validation_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h index 4fe740cd..099018ef 100644 --- a/layers/parameter_validation_utils.h +++ b/layers/parameter_validation_utils.h @@ -796,7 +796,7 @@ static std::string get_result_description(VkResult result) { * @param value VkResult value to validate. */ static void validate_result(debug_report_data *report_data, const char *apiName, VkResult result) { - if (result < 0) { + if (result < 0 && result != VK_ERROR_VALIDATION_FAILED_EXT) { std::string resultName = string_VkResult(result); if (resultName == UnsupportedResultString) { -- cgit v1.2.3