From 12ac1dd46bc762d9bcc56638f827cdbf4069a415 Mon Sep 17 00:00:00 2001 From: Shaun Ren Date: Tue, 22 Oct 2024 22:30:50 -0400 Subject: [PATCH] tests/shader_runner_vulkan: Enable patch list topology support. --- tests/shader_runner_vulkan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/shader_runner_vulkan.c b/tests/shader_runner_vulkan.c index ad334852..b479eb01 100644 --- a/tests/shader_runner_vulkan.c +++ b/tests/shader_runner_vulkan.c @@ -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: