Mesa (master): zink: support PIPE_PRIM_PATCHES
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 22 13:56:10 UTC 2020
Module: Mesa
Branch: master
Commit: 536520d0566322e2beed5b6d8c163db09741e683
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=536520d0566322e2beed5b6d8c163db09741e683
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Thu Dec 17 21:28:50 2020 -0500
zink: support PIPE_PRIM_PATCHES
Reviewed-by: Erik Faye-Lund <kusmabite at gmail.com>
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;
};
More information about the mesa-commit
mailing list