diff options
author | Erik Faye-Lund <[email protected]> | 2019-09-23 22:11:35 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:48 +0000 |
commit | 59f8ba05f5307646e033c4f8a021df3c72b1f14a (patch) | |
tree | 831c61236904d6f775c526c6dbbea48c87f82c15 /src/gallium/drivers/zink/zink_pipeline.c | |
parent | 5cf93985a00b80b27ea19a8dae0d77e6dae3331a (diff) |
zink: pass screen to zink_create_gfx_pipeline
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/zink/zink_pipeline.c b/src/gallium/drivers/zink/zink_pipeline.c index 9516a8fbb82..25806bbbfcb 100644 --- a/src/gallium/drivers/zink/zink_pipeline.c +++ b/src/gallium/drivers/zink/zink_pipeline.c @@ -34,7 +34,8 @@ #include "util/u_prim.h" VkPipeline -zink_create_gfx_pipeline(VkDevice dev, struct zink_gfx_program *prog, +zink_create_gfx_pipeline(struct zink_screen *screen, + struct zink_gfx_program *prog, struct zink_gfx_pipeline_state *state, VkPrimitiveTopology primitive_topology) { @@ -144,7 +145,8 @@ zink_create_gfx_pipeline(VkDevice dev, struct zink_gfx_program *prog, pci.stageCount = num_stages; VkPipeline pipeline; - if (vkCreateGraphicsPipelines(dev, VK_NULL_HANDLE, 1, &pci, NULL, &pipeline) != VK_SUCCESS) { + if (vkCreateGraphicsPipelines(screen->dev, VK_NULL_HANDLE, 1, &pci, + NULL, &pipeline) != VK_SUCCESS) { debug_printf("vkCreateGraphicsPipelines failed\n"); return VK_NULL_HANDLE; } |