aboutsummaryrefslogtreecommitdiff
path: root/layers/descriptor_sets.cpp
diff options
context:
space:
mode:
authorDave Houlton <daveh@lunarg.com>2017-03-27 17:25:54 -0600
committerDave Houlton <daveh@lunarg.com>2017-03-29 15:07:42 -0600
commitbcdb4397452b229c5148b27010ecf6439d2f20b3 (patch)
tree06a9f0361d5869c29f5bad860a1ab3058be37388 /layers/descriptor_sets.cpp
parent01790fb052a5e9f767b8b46ae1289cd12b172534 (diff)
downloadusermoji-bcdb4397452b229c5148b27010ecf6439d2f20b3.tar.xz
layers: refactor layer utils
Split format-related helper fxns out of vk_layer_utils.cpp into a new file vk_format_utils.cpp. Remove the duplicated fxns in the render framework and share the new format utils across both projects. Rename the util fxns into CamelCase per coding std. Change-Id: I0f9a34bc5931dfca085dfdc8d4800664aec526cf
Diffstat (limited to 'layers/descriptor_sets.cpp')
-rw-r--r--layers/descriptor_sets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp
index 086e75f4..fbaa2dc0 100644
--- a/layers/descriptor_sets.cpp
+++ b/layers/descriptor_sets.cpp
@@ -785,7 +785,7 @@ bool cvdescriptorset::ValidateImageUpdate(VkImageView image_view, VkImageLayout
}
// TODO : The various image aspect and format checks here are based on general spec language in 11.5 Image Views section under
// vkCreateImageView(). What's the best way to create unique id for these cases?
- bool ds = vk_format_is_depth_or_stencil(format);
+ bool ds = VkFormatIsDepthOrStencil(format);
switch (image_layout) {
case VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL:
// Only Color bit must be set