From 55ecab2ae2ec6655819d16aea089e007430222d9 Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Wed, 2 Mar 2016 15:12:01 -0700 Subject: validation: Promote validation warnings to errors Change-Id: Ib527e646aabbd0aecbadf9071ca9e271a8729735 --- layers/device_limits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/device_limits.cpp') diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp index 5d630fd0..c8263143 100644 --- a/layers/device_limits.cpp +++ b/layers/device_limits.cpp @@ -422,7 +422,7 @@ static VkBool32 validate_features_request(layer_data *phy_dev_data) if (errors && (UNCALLED == phy_dev_data->physicalDeviceState->vkGetPhysicalDeviceFeaturesState)) { // If user didn't request features, notify them that they should // TODO: Verify this against the spec. I believe this is an invalid use of the API and should return an error - skipCall |= log_msg(phy_dev_data->report_data, VK_DEBUG_REPORT_WARNING_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, 0, __LINE__, DEVLIMITS_INVALID_FEATURE_REQUESTED, "DL", + skipCall |= log_msg(phy_dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, 0, __LINE__, DEVLIMITS_INVALID_FEATURE_REQUESTED, "DL", "You requested features that are unavailable on this device. You should first query feature availability by calling vkGetPhysicalDeviceFeatures()."); } return skipCall; -- cgit v1.2.3