=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vkd3d: Do not set VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT for multisample textures.
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 13:26:39 CST 2018
Module: vkd3d
Branch: master
Commit: 00afe7545762435a58e28ffcbd063f649390c17c
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=00afe7545762435a58e28ffcbd063f649390c17c
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon Nov 26 14:22:23 2018 +0100
vkd3d: Do not set VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT for multisample textures.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d/resource.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index 56af010..31883f6 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -518,7 +518,8 @@ static HRESULT vkd3d_create_image(struct d3d12_device *device,
if (!(desc->Flags & D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL) && dxgi_format_is_typeless(desc->Format))
image_info.flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
if (desc->Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE2D
- && desc->Width == desc->Height && desc->DepthOrArraySize >= 6)
+ && desc->Width == desc->Height && desc->DepthOrArraySize >= 6
+ && desc->SampleDesc.Count == 1)
image_info.flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
if (desc->Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D)
image_info.flags |= VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR;
More information about the wine-cvs
mailing list