diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-01-05 17:17:55 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-01-05 17:18:26 -0700 |
| commit | 6a541afad497aa09c14f48fe0350898bbd54c0b7 (patch) | |
| tree | dc57cd31e72c7e8c59b8729df55b16364d168c1b | |
| parent | e0a086b4063ce0392df4f949938e6d4d11f40287 (diff) | |
| download | usermoji-6a541afad497aa09c14f48fe0350898bbd54c0b7.tar.xz | |
layers: Fix circular make depency
| -rw-r--r-- | layers/draw_state.cpp | 21 | ||||
| -rw-r--r-- | layers/vk_layer_utils.cpp | 21 | ||||
| -rw-r--r-- | layers/vk_layer_utils.h | 2 |
3 files changed, 21 insertions, 23 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 26838f01..121f5839 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -4548,6 +4548,27 @@ VkBool32 TransitionImageLayouts(VkCommandBuffer cmdBuffer, uint32_t memBarrierCo return skip; } +// Print readable FlagBits in FlagMask +std::string string_VkAccessFlags(VkAccessFlags accessMask) +{ + std::string result; + std::string separator; + + if (accessMask == 0) { + result = "[None]"; + } else { + result = "["; + for (auto i = 0; i < 32; i++) { + if (accessMask & (1 << i)) { + result = result + separator + string_VkAccessFlagBits((VkAccessFlagBits)(1 << i)); + separator = " | "; + } + } + result = result + "]"; + } + return result; +} + // AccessFlags MUST have 'required_bit' set, and may have one or more of 'optional_bits' set. // If required_bit is zero, accessMask must have at least one of 'optional_bits' set VkBool32 ValidateMaskBits(const layer_data* my_data, VkCommandBuffer cmdBuffer, const VkAccessFlags& accessMask, const VkImageLayout& layout, diff --git a/layers/vk_layer_utils.cpp b/layers/vk_layer_utils.cpp index 568d3b0c..36e3904d 100644 --- a/layers/vk_layer_utils.cpp +++ b/layers/vk_layer_utils.cpp @@ -577,24 +577,3 @@ unsigned int vk_format_get_channel_count(VkFormat format) { return vk_format_table[format].channel_count; } - -// Print readable FlagBits in FlagMask -std::string string_VkAccessFlags(VkAccessFlags accessMask) -{ - std::string result; - std::string separator; - - if (accessMask == 0) { - result = "[None]"; - } else { - result = "["; - for (auto i = 0; i < 32; i++) { - if (accessMask & (1 << i)) { - result = result + separator + string_VkAccessFlagBits((VkAccessFlagBits)(1 << i)); - separator = " | "; - } - } - result = result + "]"; - } - return result; -} diff --git a/layers/vk_layer_utils.h b/layers/vk_layer_utils.h index 62b1c3db..52a615f6 100644 --- a/layers/vk_layer_utils.h +++ b/layers/vk_layer_utils.h @@ -59,8 +59,6 @@ bool vk_format_is_float(VkFormat format); bool vk_format_is_srgb(VkFormat format); bool vk_format_is_compressed(VkFormat format); size_t vk_format_get_size(VkFormat format); -std::string string_VkAccessFlags(VkAccessFlags accessMask); - static inline int u_ffs(int val) { |
