diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-07-21 06:46:12 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-07-21 06:46:12 -0600 |
| commit | f982ad1fc9818ec21a09f2de1bb65c66df59f192 (patch) | |
| tree | c4d01967e835f1bca607eec255dff6ae7ff1625e | |
| parent | 41197d83f466215a04080eaf8a43a7f9e1b9797f (diff) | |
| download | usermoji-f982ad1fc9818ec21a09f2de1bb65c66df59f192.tar.xz | |
layers: Check BUFFER_CREATE_SPARSE_BINDING_BIT for buffers
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 8ee80870..87b47b09 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -709,7 +709,7 @@ bool ValidateMemoryIsBoundToImage(const layer_data *dev_data, const IMAGE_NODE * // Check to see if memory was bound to this buffer bool ValidateMemoryIsBoundToBuffer(const layer_data *dev_data, const BUFFER_NODE *buffer_node, const char *api_name) { bool result = false; - if (0 == (static_cast<uint32_t>(buffer_node->createInfo.flags) & VK_IMAGE_CREATE_SPARSE_BINDING_BIT)) { + if (0 == (static_cast<uint32_t>(buffer_node->createInfo.flags) & VK_BUFFER_CREATE_SPARSE_BINDING_BIT)) { if (0 == buffer_node->mem) { result = log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT, reinterpret_cast<const uint64_t &>(buffer_node->buffer), __LINE__, MEMTRACK_OBJECT_NOT_BOUND, "MEM", |
