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:
committed by
Marge Bot
parent
291bbac12c
commit
536520d056
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user