summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/zink/zink_pipeline.c
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-03-26 14:53:32 +0100
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:44 +0000
commit8e56b828e4a5dc39a2618cabd98eca0c8c40896c (patch)
treee9dd5e336ea6c21646c0561676f2f2b99df9b076 /src/gallium/drivers/zink/zink_pipeline.c
parent1cdbeefd2c60426a763fc13730b65f99fda0d3b5 (diff)
zink: move renderpass inside gfx pipeline state
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/zink/zink_pipeline.c')
-rw-r--r--src/gallium/drivers/zink/zink_pipeline.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/zink/zink_pipeline.c b/src/gallium/drivers/zink/zink_pipeline.c
index f43af2d581a..b06f02a2e92 100644
--- a/src/gallium/drivers/zink/zink_pipeline.c
+++ b/src/gallium/drivers/zink/zink_pipeline.c
@@ -35,8 +35,7 @@
VkPipeline
zink_create_gfx_pipeline(VkDevice dev, struct zink_gfx_program *prog,
- struct zink_gfx_pipeline_state *state,
- struct zink_render_pass *rp)
+ struct zink_gfx_pipeline_state *state)
{
VkPipelineVertexInputStateCreateInfo vertex_input_state = {};
vertex_input_state.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO;
@@ -114,7 +113,7 @@ zink_create_gfx_pipeline(VkDevice dev, struct zink_gfx_program *prog,
pci.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
pci.flags = VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT;
pci.layout = prog->layout;
- pci.renderPass = rp->render_pass;
+ pci.renderPass = state->render_pass->render_pass;
pci.pVertexInputState = &vertex_input_state;
pci.pInputAssemblyState = &primitive_state;
pci.pRasterizationState = &rast_state;