dzn: Simultaneous-access is mutually exclusive with MSAA

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27531>
This commit is contained in:
Jesse Natalie 2024-02-07 15:57:57 -08:00 committed by Marge Bot
parent 32c6caffd7
commit d5131e5f86

View file

@ -261,7 +261,8 @@ dzn_image_create(struct dzn_device *device,
}
if (pCreateInfo->sharingMode == VK_SHARING_MODE_CONCURRENT &&
!(image->desc.Flags & D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL))
!(image->desc.Flags & D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL) &&
image->desc.SampleDesc.Count == 1)
image->desc.Flags |= D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS;
*out = dzn_image_to_handle(image);