aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-08-22 16:36:54 +1200
committerChris Forbes <chrisforbes@google.com>2016-08-23 13:12:41 +1200
commitec55d6bce501034362c82cb19ea64e585cc190e9 (patch)
tree7427eaa457cc0bcef168ca6812a15fafcb6cdf2e /layers/core_validation.cpp
parentd4188158cfdff3c14d26b4166fe672b279db012a (diff)
downloadusermoji-ec55d6bce501034362c82cb19ea64e585cc190e9.tar.xz
layers: Allow get_fundamental_type to look through OpTypeImage
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 3cda6489..03631622 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -1776,6 +1776,9 @@ static unsigned get_fundamental_type(shader_module const *src, unsigned type) {
return get_fundamental_type(src, insn.word(2));
case spv::OpTypePointer:
return get_fundamental_type(src, insn.word(3));
+ case spv::OpTypeImage:
+ return get_fundamental_type(src, insn.word(2));
+
default:
return FORMAT_TYPE_UNDEFINED;
}