mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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:
parent
291bbac12c
commit
536520d056
2 changed files with 4 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue