dzn: Respect sharing mode
D3D's "simultaneous access" concept pretty closely matches Vulkan's concurrent sharing mode, except that we don't support simultaneous access for depth buffers. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20324>
This commit is contained in:
@@ -256,6 +256,10 @@ dzn_image_create(struct dzn_device *device,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pCreateInfo->sharingMode == VK_SHARING_MODE_CONCURRENT &&
|
||||||
|
!(image->vk.usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT))
|
||||||
|
image->desc.Flags |= D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS;
|
||||||
|
|
||||||
*out = dzn_image_to_handle(image);
|
*out = dzn_image_to_handle(image);
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user