diff options
| author | Cort Stratton <cort@google.com> | 2017-02-17 12:43:41 -0800 |
|---|---|---|
| committer | Cort <cdwfs@users.noreply.github.com> | 2017-03-06 11:23:19 -0800 |
| commit | 0846ef51859fa62f76d348360c018b4eeb663259 (patch) | |
| tree | caaebf1ee334b3512a128cf863a9f79a3f99788e /layers/core_validation.cpp | |
| parent | 6552941cb1414493abe7e8ac0ac1abda386e2f55 (diff) | |
| download | usermoji-0846ef51859fa62f76d348360c018b4eeb663259.tar.xz | |
layers: Fix copy/paste errors in BindBufferMemory
Incorrect objectType and srcObject arguments to log_msg()
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 992fdc4c..2bc724d5 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5488,8 +5488,8 @@ static bool PreCallValidateBindBufferMemory(layer_data *dev_data, VkBuffer buffe // Validate memory requirements alignment if (vk_safe_modulo(memoryOffset, buffer_state->requirements.alignment) != 0) { - skip |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, - 0, __LINE__, VALIDATION_ERROR_02174, "DS", + skip |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT, + buffer_handle, __LINE__, VALIDATION_ERROR_02174, "DS", "vkBindBufferMemory(): memoryOffset is 0x%" PRIxLEAST64 " but must be an integer multiple of the " "VkMemoryRequirements::alignment value 0x%" PRIxLEAST64 @@ -5522,7 +5522,7 @@ static bool PreCallValidateBindBufferMemory(layer_data *dev_data, VkBuffer buffe if (usage & usage_list[i]) { if (vk_safe_modulo(memoryOffset, offset_requirement[i]) != 0) { skip |= log_msg( - dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, 0, + dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT, buffer_handle, __LINE__, msgCode[i], "DS", "vkBindBufferMemory(): %s memoryOffset is 0x%" PRIxLEAST64 " but must be a multiple of " "device limit %s 0x%" PRIxLEAST64 ". %s", |
