diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-07-24 16:15:37 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-07-25 10:04:50 -0600 |
| commit | 060d2988377d91c9ded54d6526360b975d8abc8c (patch) | |
| tree | d2fe8500aa6eea4049d648c35fa52d846667d0b4 /layers/core_validation.cpp | |
| parent | a6c0e3a293a98a94a2d75820e5ce979171e87abb (diff) | |
| download | usermoji-060d2988377d91c9ded54d6526360b975d8abc8c.tar.xz | |
layers: GH1924, Improve unavailable feature msg
Modified the unavailable requested feature error message to print the
feature name instead of just an index.
Change-Id: Idcb66921fc592014330dce6946631984d85cd866
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 00e36a8d..1fd79b84 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -2009,12 +2009,11 @@ static bool ValidateRequestedFeatures(instance_layer_data *instance_data, const uint32_t total_bools = sizeof(VkPhysicalDeviceFeatures) / sizeof(VkBool32); for (uint32_t i = 0; i < total_bools; i++) { if (requested[i] > actual[i]) { - // TODO: Add index to struct member name helper to be able to include a feature name skip |= log_msg(instance_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, 0, __LINE__, DEVLIMITS_INVALID_FEATURE_REQUESTED, "DL", - "While calling vkCreateDevice(), requesting feature #%u in VkPhysicalDeviceFeatures struct, " + "While calling vkCreateDevice(), requesting feature '%s' in VkPhysicalDeviceFeatures struct, " "which is not available on this device.", - i); + GetPhysDevFeatureString(i)); errors++; } } |
