aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index a90b3bd0..b67e9964 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -3717,7 +3717,10 @@ VkBool32 ValidateCmdBufImageLayouts(VkCommandBuffer cmdBuffer) {
"Cannot submit cmd buffer using deleted image %" PRIu64 ".",
reinterpret_cast<const uint64_t &>(cb_image_data.first));
} else {
- if (imageLayout != cb_image_data.second.initialLayout) {
+ if (cb_image_data.second.initialLayout == VK_IMAGE_LAYOUT_UNDEFINED) {
+ // TODO: Set memory invalid which is in mem_tracker currently
+ }
+ else if (imageLayout != cb_image_data.second.initialLayout) {
skip_call |= log_msg(
dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, 0, __LINE__,