Vulkan array-texture validation fix; better handling of unsupported audio HW on ALSA

This commit is contained in:
Jack Andersen
2017-10-30 17:42:41 -10:00
parent 3c207386e7
commit 10364557b9
3 changed files with 104 additions and 33 deletions

View File

@@ -1286,7 +1286,7 @@ public:
viewInfo.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
viewInfo.pNext = nullptr;
viewInfo.image = m_gpuTex;
viewInfo.viewType = (m_layers > 1) ? VK_IMAGE_VIEW_TYPE_2D_ARRAY : VK_IMAGE_VIEW_TYPE_2D;
viewInfo.viewType = VK_IMAGE_VIEW_TYPE_2D_ARRAY;
viewInfo.format = m_vkFmt;
viewInfo.components.r = VK_COMPONENT_SWIZZLE_R;
viewInfo.components.g = VK_COMPONENT_SWIZZLE_G;