vkd3d: Remove an invalid NULL check.

The pointer is never NULL.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Conor McCarthy 2022-03-23 00:33:01 +10:00 committed by Alexandre Julliard
parent ae2219a7f7
commit f34168481d

View File

@ -1629,8 +1629,6 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
features->shaderTessellationAndGeometryPointSize = VK_FALSE; features->shaderTessellationAndGeometryPointSize = VK_FALSE;
descriptor_indexing = &physical_device_info->descriptor_indexing_features; descriptor_indexing = &physical_device_info->descriptor_indexing_features;
if (descriptor_indexing)
{
descriptor_indexing->shaderInputAttachmentArrayDynamicIndexing = VK_FALSE; descriptor_indexing->shaderInputAttachmentArrayDynamicIndexing = VK_FALSE;
descriptor_indexing->shaderInputAttachmentArrayNonUniformIndexing = VK_FALSE; descriptor_indexing->shaderInputAttachmentArrayNonUniformIndexing = VK_FALSE;
@ -1638,7 +1636,6 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
features->shaderStorageBufferArrayDynamicIndexing = VK_FALSE; features->shaderStorageBufferArrayDynamicIndexing = VK_FALSE;
descriptor_indexing->shaderStorageBufferArrayNonUniformIndexing = VK_FALSE; descriptor_indexing->shaderStorageBufferArrayNonUniformIndexing = VK_FALSE;
descriptor_indexing->descriptorBindingStorageBufferUpdateAfterBind = VK_FALSE; descriptor_indexing->descriptorBindingStorageBufferUpdateAfterBind = VK_FALSE;
}
if (vulkan_info->EXT_descriptor_indexing && descriptor_indexing if (vulkan_info->EXT_descriptor_indexing && descriptor_indexing
&& (descriptor_indexing->descriptorBindingUniformBufferUpdateAfterBind && (descriptor_indexing->descriptorBindingUniformBufferUpdateAfterBind