diff options
| author | Petr Kraus <petr_kraus@email.cz> | 2017-12-14 20:57:36 +0100 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-12-15 12:35:29 -0700 |
| commit | 7f36ca0776f1d8d801fc85bb87a23ff440db5dd3 (patch) | |
| tree | 4a62b28649278ef5024bca7cfd4149fdae247dac /layers/parameter_validation.h | |
| parent | acfe0d1a7d6dd1bcc7df02f4bb491d42e7abbdde (diff) | |
| download | usermoji-7f36ca0776f1d8d801fc85bb87a23ff440db5dd3.tar.xz | |
layers: Fix Graphics Pipeline pointers not ignored
Some VkGraphicsPipelineCreateInfo pointers must be ignored under some
conditions, but were not in the layers.
Add relevant tests.
Fix tests found broken (using depth or color without attachment in
subpass)
Diffstat (limited to 'layers/parameter_validation.h')
| -rw-r--r-- | layers/parameter_validation.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/layers/parameter_validation.h b/layers/parameter_validation.h index 8acd34bd..ced0810c 100644 --- a/layers/parameter_validation.h +++ b/layers/parameter_validation.h @@ -27,6 +27,7 @@ #include <sstream> #include <bitset> #include <mutex> +#include <unordered_map> #include <unordered_set> #include "vulkan/vulkan.h" @@ -81,6 +82,13 @@ struct layer_data { VkDevice device = VK_NULL_HANDLE; DeviceExtensions extensions; + struct SubpassesUsageStates { + std::unordered_set<uint32_t> subpasses_using_color_attachment; + std::unordered_set<uint32_t> subpasses_using_depthstencil_attachment; + }; + + std::unordered_map<VkRenderPass, SubpassesUsageStates> renderpasses_states; + VkLayerDispatchTable dispatch_table = {}; }; |
