=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vkd3d: Do not enable shaderTessellationAndGeometryPointSize feature.

Alexandre Julliard julliard at winehq.org
Mon Oct 1 20:40:45 CDT 2018


Module: vkd3d
Branch: master
Commit: f7bb28dc2b8f0c0a30c327facddba6d65e9c5891
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=f7bb28dc2b8f0c0a30c327facddba6d65e9c5891

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Mon Oct  1 13:57:13 2018 +0200

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 at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d/device.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index 673c54a..f91c0d9 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -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)))
         return hr;
 
+    device->vk_physical_device = physical_device;
+
     /* Create command queues */
     VK_CALL(vkGetPhysicalDeviceQueueFamilyProperties(physical_device, &queue_family_count, NULL));
     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(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)))
         goto done;
 
+    device_features.shaderTessellationAndGeometryPointSize = VK_FALSE;
+
     if (!(extensions = vkd3d_calloc(extension_count, sizeof(*extensions))))
     {
         hr = E_OUTOFMEMORY;




More information about the wine-cvs mailing list