mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Use sparse resources for emulating NULL UAVs.
If residencyNonResidentStrict is supported. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
80b749e703
commit
9f49174f40
@@ -1213,6 +1213,13 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
|
||||
vkd3d_trace_physical_device_features(features2);
|
||||
vkd3d_trace_physical_device_limits(&device_properties2);
|
||||
|
||||
if (!features->sparseResidencyBuffer || !features->sparseResidencyImage2D)
|
||||
{
|
||||
features->sparseResidencyBuffer = VK_FALSE;
|
||||
features->sparseResidencyImage2D = VK_FALSE;
|
||||
device_properties2.properties.sparseProperties.residencyNonResidentStrict = VK_FALSE;
|
||||
}
|
||||
|
||||
vulkan_info->device_limits = device_properties2.properties.limits;
|
||||
vulkan_info->sparse_properties = device_properties2.properties.sparseProperties;
|
||||
vulkan_info->rasterization_stream = xfb_properties.transformFeedbackRasterizationStreamSelect;
|
||||
|
||||
Reference in New Issue
Block a user