1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[d3d11] Always use VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT

We need to investigate why not doing this breaks shadows in Heaven.
This commit is contained in:
Philip Rebohle 2018-03-14 17:40:26 +01:00
parent 3b20c71894
commit 0e0ee61d9b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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;