aboutsummaryrefslogtreecommitdiff
path: root/layers/descriptor_sets.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-09-19 14:02:58 -0600
committerTobin Ehlis <tobine@google.com>2016-09-22 07:21:24 -0600
commit758a96f329c1f7dcc1ec6bd289022545c3a7981c (patch)
treec4f7e81dbd20d352fb18eaefa53a1d7b47342622 /layers/descriptor_sets.cpp
parent8f969432a0f658eb28b70717bc84c4bb87d59469 (diff)
downloadusermoji-758a96f329c1f7dcc1ec6bd289022545c3a7981c.tar.xz
layer: Add in-use validation for imageView
Bind imageView from a descriptor to the command buffer at CmdBindDescriptorSets time and check for an in-use imageView at DestroyImageView time. Also use new AddCommandBufferBindingImageView() helper to bind children of framebuffer in AddFrameBufferBinding().
Diffstat (limited to 'layers/descriptor_sets.cpp')
-rw-r--r--layers/descriptor_sets.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp
index df5dac29..f02da6b1 100644
--- a/layers/descriptor_sets.cpp
+++ b/layers/descriptor_sets.cpp
@@ -880,9 +880,7 @@ void cvdescriptorset::ImageSamplerDescriptor::BindCommandBuffer(const core_valid
// Add binding for image
auto iv_state = getImageViewState(dev_data, image_view_);
if (iv_state) {
- auto image_node = getImageNode(dev_data, iv_state->create_info.image);
- if (image_node)
- core_validation::AddCommandBufferBindingImage(dev_data, cb_node, image_node);
+ core_validation::AddCommandBufferBindingImageView(dev_data, cb_node, iv_state);
}
}
@@ -913,9 +911,7 @@ void cvdescriptorset::ImageDescriptor::BindCommandBuffer(const core_validation::
// Add binding for image
auto iv_state = getImageViewState(dev_data, image_view_);
if (iv_state) {
- auto image_node = getImageNode(dev_data, iv_state->create_info.image);
- if (image_node)
- core_validation::AddCommandBufferBindingImage(dev_data, cb_node, image_node);
+ core_validation::AddCommandBufferBindingImageView(dev_data, cb_node, iv_state);
}
}