diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-03-10 15:01:52 +1300 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-03-27 11:25:49 +1300 |
| commit | fdfca7af4d246c894f54073926d37700994e8dff (patch) | |
| tree | e9a2c74ad5bdd8330c41be2893fd4392424a2692 /layers/core_validation.cpp | |
| parent | 5d232360def4ab36f0310a2c8a7fca99d311fa1e (diff) | |
| download | usermoji-fdfca7af4d246c894f54073926d37700994e8dff.tar.xz | |
layers: Consider depth+stencil formats to be both float and uint
Depending on which aspect we will consume, these can be either type.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index c31d3bf5..d44b3a68 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -1666,6 +1666,10 @@ static unsigned get_format_type(VkFormat fmt) { case VK_FORMAT_A2B10G10R10_UINT_PACK32: case VK_FORMAT_A2R10G10B10_UINT_PACK32: return FORMAT_TYPE_UINT; + case VK_FORMAT_D16_UNORM_S8_UINT: + case VK_FORMAT_D24_UNORM_S8_UINT: + case VK_FORMAT_D32_SFLOAT_S8_UINT: + return FORMAT_TYPE_FLOAT | FORMAT_TYPE_UINT; default: return FORMAT_TYPE_FLOAT; } |
