vulkan: correctly inherit proc_addr pointer

As found out by @philipl, failing to pass this from the VkInstance to
the VkDevice is bad style. We might want to override the get_proc_addr
pointer in the future.
This commit is contained in:
Niklas Haas 2022-03-13 23:38:05 +01:00
parent 7ac4b7dfe7
commit 23e3be80dc
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk,
assert(vk->vkinst);
vk->vulkan = pl_vulkan_create(vk->pllog, &(struct pl_vulkan_params) {
.instance = vk->vkinst->instance,
.get_proc_addr = vk->vkinst->get_proc_addr,
.surface = vk->surface,
.async_transfer = p->opts->async_transfer,
.async_compute = p->opts->async_compute,