diff options
author | Erik Faye-Lund <[email protected]> | 2019-03-25 15:59:25 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:44 +0000 |
commit | fba0293bef4ee25dd16eb099a71ef346e717ca4e (patch) | |
tree | 1f45b9092745898c17a29bf7b6e34419c188c851 /src/gallium/drivers/zink/zink_pipeline.c | |
parent | 86d0e741ec977193974c29c44cbf85699fedcf5a (diff) |
zink: pass zink_render_pass to pipeline-creation
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/zink/zink_pipeline.c b/src/gallium/drivers/zink/zink_pipeline.c index 4e517d8a496..f43af2d581a 100644 --- a/src/gallium/drivers/zink/zink_pipeline.c +++ b/src/gallium/drivers/zink/zink_pipeline.c @@ -26,6 +26,7 @@ #include "zink_compiler.h" #include "zink_context.h" #include "zink_program.h" +#include "zink_render_pass.h" #include "zink_screen.h" #include "zink_state.h" @@ -35,7 +36,7 @@ VkPipeline zink_create_gfx_pipeline(VkDevice dev, struct zink_gfx_program *prog, struct zink_gfx_pipeline_state *state, - VkRenderPass render_pass) + struct zink_render_pass *rp) { VkPipelineVertexInputStateCreateInfo vertex_input_state = {}; vertex_input_state.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; @@ -113,7 +114,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 = render_pass; + pci.renderPass = rp->render_pass; pci.pVertexInputState = &vertex_input_state; pci.pInputAssemblyState = &primitive_state; pci.pRasterizationState = &rast_state; |