summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/zink/zink_pipeline.h
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-06-19 12:29:49 +0200
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:44 +0000
commit8f6449f29686cd9ea199ab00536b890b1d9e8e93 (patch)
tree4d1263a030524baaf1b072484ae290dc425fd605 /src/gallium/drivers/zink/zink_pipeline.h
parente0a93ba35184ec3872de01f2cd2b92fff7b755ff (diff)
zink: move primitive-topology stuff into program
The primitive topology is a bit of an odd-ball, as it's the only truly draw-call specific state that needs to be passed to the program to get a pipeline. So let's make this a bit more explict, by passing it separately. This makes the flow of data a bit easier to wrap your head around. Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/zink/zink_pipeline.h')
-rw-r--r--src/gallium/drivers/zink/zink_pipeline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/zink/zink_pipeline.h b/src/gallium/drivers/zink/zink_pipeline.h
index 9990c5058da..a2a627d4e7a 100644
--- a/src/gallium/drivers/zink/zink_pipeline.h
+++ b/src/gallium/drivers/zink/zink_pipeline.h
@@ -36,7 +36,6 @@ struct zink_render_pass;
struct zink_vertex_elements_state;
struct zink_gfx_pipeline_state {
- VkPrimitiveTopology primitive_topology;
struct zink_render_pass *render_pass;
struct zink_vertex_elements_state *element_state;
@@ -54,6 +53,7 @@ struct zink_gfx_pipeline_state {
VkPipeline
zink_create_gfx_pipeline(VkDevice dev, struct zink_gfx_program *prog,
- struct zink_gfx_pipeline_state *state);
+ struct zink_gfx_pipeline_state *state,
+ VkPrimitiveTopology primitive_topology);
#endif