diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-08-31 11:59:48 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-09-01 08:32:53 -0700 |
| commit | 2dc8d2b09eecc6cf3527592eaec89b47803c5a2e (patch) | |
| tree | 308392580a7c96d9d4da265a33609a4cf6755fdb /layers | |
| parent | bd7e75648ee7df31776c2321335c242fca6b925f (diff) | |
| download | usermoji-2dc8d2b09eecc6cf3527592eaec89b47803c5a2e.tar.xz | |
layers: Impose singlesample/multisample constraints on input attachment descriptors
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/core_validation.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 13b3d4b7..a960b779 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -2687,7 +2687,9 @@ static uint32_t descriptor_type_to_reqs(shader_module const *module, uint32_t ty return DESCRIPTOR_REQ_VIEW_TYPE_3D; case spv::DimCube: return arrayed ? DESCRIPTOR_REQ_VIEW_TYPE_CUBE_ARRAY : DESCRIPTOR_REQ_VIEW_TYPE_CUBE; - default: // subpass, buffer, etc. + case spv::DimSubpassData: + return msaa ? DESCRIPTOR_REQ_MULTI_SAMPLE : DESCRIPTOR_REQ_SINGLE_SAMPLE; + default: // buffer, etc. return 0; } } |
