aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-11-21 10:45:39 +1300
committerChris Forbes <chrisforbes@google.com>2016-11-21 11:07:36 +1300
commit44c16fee922f14b35bfe6cfbf4d05db935b35c9a (patch)
treef08d15d779e8b3302644ae856c3e835ffba81c12 /layers/core_validation.cpp
parent07d903984055ef1ccc7797a9dcdb66c98c3b3f81 (diff)
downloadusermoji-44c16fee922f14b35bfe6cfbf4d05db935b35c9a.tar.xz
Update out of range attachment check to use unique enum
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 7177ee09..e2be92b0 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -10323,9 +10323,9 @@ static bool ValidateAttachmentIndex(layer_data *dev_data, uint32_t attachment, u
bool skip_call = false;
if (attachment >= attachment_count && attachment != VK_ATTACHMENT_UNUSED) {
skip_call |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__,
- DRAWSTATE_INVALID_ATTACHMENT_INDEX, "DS",
- "CreateRenderPass: %s attachment %d must be less than the total number of attachments %d.",
- type, attachment, attachment_count);
+ VALIDATION_ERROR_00325, "DS",
+ "CreateRenderPass: %s attachment %d must be less than the total number of attachments %d. %s",
+ type, attachment, attachment_count, validation_error_map[VALIDATION_ERROR_00325]);
}
return skip_call;
}