vkd3d: Do not enable shaderTessellationAndGeometryPointSize feature.

We don't want to write PointSize in tessellation and geometry shaders.

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:
Józef Kucia 2018-10-01 13:57:13 +02:00 committed by Alexandre Julliard
parent 8995c681d5
commit f7bb28dc2b

View File

@ -1015,6 +1015,8 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device,
&& FAILED(hr = vkd3d_select_physical_device(device->vkd3d_instance, &physical_device))) && FAILED(hr = vkd3d_select_physical_device(device->vkd3d_instance, &physical_device)))
return hr; return hr;
device->vk_physical_device = physical_device;
/* Create command queues */ /* Create command queues */
VK_CALL(vkGetPhysicalDeviceQueueFamilyProperties(physical_device, &queue_family_count, NULL)); VK_CALL(vkGetPhysicalDeviceQueueFamilyProperties(physical_device, &queue_family_count, NULL));
if (!(queue_properties = vkd3d_calloc(queue_family_count, sizeof(*queue_properties)))) if (!(queue_properties = vkd3d_calloc(queue_family_count, sizeof(*queue_properties))))
@ -1083,10 +1085,11 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device,
VK_CALL(vkGetPhysicalDeviceMemoryProperties(physical_device, &device->memory_properties)); VK_CALL(vkGetPhysicalDeviceMemoryProperties(physical_device, &device->memory_properties));
VK_CALL(vkGetPhysicalDeviceFeatures(physical_device, &device_features)); VK_CALL(vkGetPhysicalDeviceFeatures(physical_device, &device_features));
device->vk_physical_device = physical_device;
if (FAILED(hr = vkd3d_init_device_caps(device, create_info, &device_features, &extension_count))) if (FAILED(hr = vkd3d_init_device_caps(device, create_info, &device_features, &extension_count)))
goto done; goto done;
device_features.shaderTessellationAndGeometryPointSize = VK_FALSE;
if (!(extensions = vkd3d_calloc(extension_count, sizeof(*extensions)))) if (!(extensions = vkd3d_calloc(extension_count, sizeof(*extensions))))
{ {
hr = E_OUTOFMEMORY; hr = E_OUTOFMEMORY;