mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-22 19:44:09 +00:00
wined3d: Report WINED3D_FORMAT_CAP_BLIT for formats supporting VK_FORMAT_FEATURE_TRANSFER_SRC and VK_FORMAT_FEATURE_TRANSFER_DST.
Vulkan 1.0 implementations without KHR_maintenance1 will still be broken. In order to work around this we would have to try creating textures with TRANSFER_* usage. This does not seem worthwhile.
This commit is contained in:
parent
14028eaff0
commit
154d7164f8
|
@ -4397,6 +4397,11 @@ static void init_vulkan_format_info(struct wined3d_format_vk *format,
|
|||
{
|
||||
caps |= WINED3D_FORMAT_CAP_UNORDERED_ACCESS;
|
||||
}
|
||||
if ((texture_flags & VK_FORMAT_FEATURE_TRANSFER_SRC_BIT)
|
||||
&& (texture_flags & VK_FORMAT_FEATURE_TRANSFER_DST_BIT))
|
||||
{
|
||||
caps |= WINED3D_FORMAT_CAP_BLIT;
|
||||
}
|
||||
|
||||
if (!(~caps & (WINED3D_FORMAT_CAP_RENDERTARGET | WINED3D_FORMAT_CAP_FILTERING)))
|
||||
caps |= WINED3D_FORMAT_CAP_GEN_MIPMAP;
|
||||
|
|
Loading…
Reference in a new issue