aboutsummaryrefslogtreecommitdiff
path: root/layers/device_limits.cpp
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2016-03-02 15:12:01 -0700
committerTony Barbour <tony@LunarG.com>2016-03-04 13:06:22 -0700
commit55ecab2ae2ec6655819d16aea089e007430222d9 (patch)
treef71495a2e923afb2ac7c3bd7795354e9e8158659 /layers/device_limits.cpp
parentd5515ccd95694aaf7b8b1a5b2bd8e6e9cd89bb78 (diff)
downloadusermoji-55ecab2ae2ec6655819d16aea089e007430222d9.tar.xz
validation: Promote validation warnings to errors
Change-Id: Ib527e646aabbd0aecbadf9071ca9e271a8729735
Diffstat (limited to 'layers/device_limits.cpp')
-rw-r--r--layers/device_limits.cpp2
1 files changed, 1 insertions, 1 deletions
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;