aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-07-19 14:50:04 +1200
committerChris Forbes <chrisforbes@google.com>2016-07-20 11:16:38 +1200
commit6ab6b59aadd957d4ac991d49752f2b88bf6631db (patch)
tree74f9743d919d1c4cb07d1ce9c76969924cc18973 /layers/core_validation.cpp
parentf70ff30717dcb17f54613fd6ead35c20aaa3a696 (diff)
downloadusermoji-6ab6b59aadd957d4ac991d49752f2b88bf6631db.tar.xz
layers: Allow consuming COMBINED_IMAGE_SAMPLER as separate pieces
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 924d4524..edfb6273 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -2411,7 +2411,8 @@ static bool descriptor_type_match(shader_module const *module, uint32_t type_id,
}
case spv::OpTypeSampler:
- return descriptor_type == VK_DESCRIPTOR_TYPE_SAMPLER;
+ return descriptor_type == VK_DESCRIPTOR_TYPE_SAMPLER ||
+ descriptor_type == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
case spv::OpTypeSampledImage:
if (descriptor_type == VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER) {
@@ -2444,7 +2445,8 @@ static bool descriptor_type_match(shader_module const *module, uint32_t type_id,
return descriptor_type == VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER;
}
} else if (sampled == 1) {
- return descriptor_type == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE;
+ return descriptor_type == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE ||
+ descriptor_type == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
} else {
return descriptor_type == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE;
}