aboutsummaryrefslogtreecommitdiff
path: root/layers/parameter_validation.cpp
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-07-06 11:42:29 -0600
committerMark Lobodzinski <mark@lunarg.com>2017-07-06 11:42:29 -0600
commit0796235680239204fb12fa32fc922a003bd19f6a (patch)
treea0c4227dad53af7a65dd49a744945dfc5c25f54e /layers/parameter_validation.cpp
parent07170432a83be9043507927e3acb8e7aacd6e134 (diff)
downloadusermoji-0796235680239204fb12fa32fc922a003bd19f6a.tar.xz
layers: Clarify MaxAnisotropy not enabled message
Folks continue to confuse 'enabled' with 'supported', expecially on this particular feature. Change-Id: I73df704436a95c9c47194169a53602b87b422174
Diffstat (limited to 'layers/parameter_validation.cpp')
-rw-r--r--layers/parameter_validation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/layers/parameter_validation.cpp b/layers/parameter_validation.cpp
index e081e541..c933a595 100644
--- a/layers/parameter_validation.cpp
+++ b/layers/parameter_validation.cpp
@@ -2456,12 +2456,11 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateSampler(VkDevice device, const VkSamplerCre
skip |= parameter_validation_vkCreateSampler(device_data, pCreateInfo, pAllocator, pSampler);
if (pCreateInfo != nullptr) {
-
if ((device_data->physical_device_features.samplerAnisotropy == false) && (pCreateInfo->maxAnisotropy != 1.0)) {
skip |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0, __LINE__,
DEVICE_FEATURE, LayerName,
- "vkCreateSampler(): The samplerAnisotropy feature is not enabled, so the maxAnisotropy member of the "
- "VkSamplerCreateInfo structure must be 1.0 but is %f.",
+ "vkCreateSampler(): The samplerAnisotropy feature was not enabled at device-creation time, so the "
+ "maxAnisotropy member of the VkSamplerCreateInfo structure must be 1.0 but is %f.",
pCreateInfo->maxAnisotropy);
}