Module: Mesa Branch: master Commit: 536520d0566322e2beed5b6d8c163db09741e683 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=536520d0566322e2beed5b6d8c163db09741e683
Author: Mike Blumenkrantz <[email protected]> Date: Thu Dec 17 21:28:50 2020 -0500 zink: support PIPE_PRIM_PATCHES Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8152> --- src/gallium/drivers/zink/zink_program.c | 3 +++ src/gallium/drivers/zink/zink_program.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index db0e83c1be3..95e62855e37 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -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"); } diff --git a/src/gallium/drivers/zink/zink_program.h b/src/gallium/drivers/zink/zink_program.h index bab2a2419c2..176c2de4695 100644 --- a/src/gallium/drivers/zink/zink_program.h +++ b/src/gallium/drivers/zink/zink_program.h @@ -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; }; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
