From 0e0ee61d9b879e3ea066326874b0f7aad6f6f18e Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 14 Mar 2018 17:40:26 +0100 Subject: [PATCH] [d3d11] Always use VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT We need to investigate why not doing this breaks shadows in Heaven. --- src/d3d11/d3d11_texture.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/d3d11/d3d11_texture.cpp b/src/d3d11/d3d11_texture.cpp index 0f8d430a..61ad2768 100644 --- a/src/d3d11/d3d11_texture.cpp +++ b/src/d3d11/d3d11_texture.cpp @@ -13,7 +13,7 @@ namespace dxvk { DxvkImageCreateInfo imageInfo; imageInfo.type = GetImageTypeFromResourceDim(Dimension); imageInfo.format = formatInfo.format; - imageInfo.flags = 0; + imageInfo.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; imageInfo.sampleCount = VK_SAMPLE_COUNT_1_BIT; imageInfo.extent.width = m_desc.Width; imageInfo.extent.height = m_desc.Height; @@ -60,9 +60,6 @@ namespace dxvk { | VK_ACCESS_SHADER_WRITE_BIT; } - if (formatInfo.flags.test(DxgiFormatFlag::Typeless)) - imageInfo.flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; - if (m_desc.MiscFlags & D3D11_RESOURCE_MISC_TEXTURECUBE) imageInfo.flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;