zink: support PIPE_PRIM_PATCHES

Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8152>
This commit is contained in:
Mike Blumenkrantz 2020-12-17 21:28:50 -05:00 committed by Marge Bot
parent 291bbac12c
commit 536520d056
2 changed files with 4 additions and 1 deletions

View file

@ -501,6 +501,9 @@ primitive_topology(enum pipe_prim_type mode)
case PIPE_PRIM_TRIANGLES_ADJACENCY:
return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY;
case PIPE_PRIM_PATCHES:
return VK_PRIMITIVE_TOPOLOGY_PATCH_LIST;
default:
unreachable("unexpected enum pipe_prim_type");
}

View file

@ -66,7 +66,7 @@ struct zink_gfx_program {
VkDescriptorSetLayout dsl;
VkPipelineLayout layout;
unsigned num_descriptors;
struct hash_table *pipelines[10]; // number of draw modes we support
struct hash_table *pipelines[11]; // number of draw modes we support
struct set *render_passes;
};