diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-08-22 16:36:54 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-08-23 13:12:41 +1200 |
| commit | ec55d6bce501034362c82cb19ea64e585cc190e9 (patch) | |
| tree | 7427eaa457cc0bcef168ca6812a15fafcb6cdf2e /layers/core_validation.cpp | |
| parent | d4188158cfdff3c14d26b4166fe672b279db012a (diff) | |
| download | usermoji-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.cpp | 3 |
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; } |
