[PATCH vkd3d] vkd3d: Do not attempt to enable primitive restart for non-strip topology.
Henri Verbeet
hverbeet at gmail.com
Fri Aug 27 14:05:51 CDT 2021
On Fri, 27 Aug 2021 at 05:17, Conor McCarthy <cmccarthy at codeweavers.com> wrote:
> +static bool vk_topology_can_restart(VkPrimitiveTopology topology)
> +{
> + switch (topology)
> + {
> + case VK_PRIMITIVE_TOPOLOGY_POINT_LIST:
> + case VK_PRIMITIVE_TOPOLOGY_LINE_LIST:
> + case VK_PRIMITIVE_TOPOLOGY_PATCH_LIST:
> + case VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST:
> + return false;
> +
> + default:
> + return true;
> + }
> +}
> +
Those aren't the only Vulkan primitive topologies that can't be
restarted. We never return topologies with adjacency from
vk_topology_from_d3d12_topology() (although perhaps we should), but we
shouldn't know or care about that here.
More information about the wine-devel
mailing list