tests/shader_runner_vulkan: Enable patch list topology support.

This commit is contained in:
Shaun Ren 2024-10-22 22:30:50 -04:00 committed by Henri Verbeet
parent e20b63c55e
commit 12ac1dd46b
Notes: Henri Verbeet 2024-11-21 19:34:41 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1217

View File

@ -501,6 +501,9 @@ static VkPrimitiveTopology vulkan_primitive_topology_from_d3d(D3D_PRIMITIVE_TOPO
switch (topology)
{
default:
if (topology >= D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST
&& topology <= D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST)
return VK_PRIMITIVE_TOPOLOGY_PATCH_LIST;
fatal_error("Unhandled primitive topology %#x.\n", topology);
/* fall through */
case D3D_PRIMITIVE_TOPOLOGY_POINTLIST: