Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/vkd3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Rebohle <philip.rebohle@tu-dortmund.de>2020-05-05 14:25:53 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-05-07 16:24:35 +0300
commit6793bb7e082ea74fe954cd49402a2eb240514a67 (patch)
tree3d263d190b5eb207afeb0b6f62393f29e9ba46f6
parent20b1c4f7b36912430cf919d813e7c4993a1b4086 (diff)
vkd3d: Set sparse resource flags appropriately.
Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
-rw-r--r--libs/vkd3d/resource.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index 037b9b17..b63d86dd 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -749,9 +749,9 @@ HRESULT vkd3d_create_buffer(struct d3d12_device *device,
if (sparse_resource)
{
- buffer_info.flags |= VK_BUFFER_CREATE_SPARSE_BINDING_BIT;
- if (device->vk_info.sparse_properties.residencyNonResidentStrict)
- buffer_info.flags |= VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT;
+ buffer_info.flags |= VK_BUFFER_CREATE_SPARSE_BINDING_BIT |
+ VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT |
+ VK_BUFFER_CREATE_SPARSE_ALIASED_BIT;
}
buffer_info.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT
@@ -931,9 +931,9 @@ static HRESULT vkd3d_create_image(struct d3d12_device *device,
if (sparse_resource)
{
- image_info.flags |= VK_IMAGE_CREATE_SPARSE_BINDING_BIT;
- if (device->vk_info.sparse_properties.residencyNonResidentStrict)
- image_info.flags |= VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT;
+ image_info.flags |= VK_IMAGE_CREATE_SPARSE_BINDING_BIT |
+ VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT |
+ VK_IMAGE_CREATE_SPARSE_ALIASED_BIT;
}
image_info.imageType = vk_image_type_from_d3d12_resource_dimension(desc->Dimension);