mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
vulkan: vulkan_compute initialize base on plugin creation
This commit is contained in:
parent
402ed65a79
commit
06a1d5151b
3 changed files with 11 additions and 2 deletions
|
|
@ -860,6 +860,8 @@ static int impl_clear(struct spa_handle *handle)
|
|||
|
||||
this = (struct impl *) handle;
|
||||
|
||||
spa_vulkan_deinit(&this->state);
|
||||
|
||||
if (this->data_loop)
|
||||
spa_loop_invoke(this->data_loop, do_remove_timer, 0, NULL, 0, true, this);
|
||||
spa_system_close(this->data_system, this->timer_source.fd);
|
||||
|
|
@ -952,6 +954,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
SPA_DIRECTION_OUTPUT, NULL);
|
||||
this->state.shaderName = "spa/plugins/vulkan/shaders/main.spv";
|
||||
this->state.n_streams = 1;
|
||||
spa_vulkan_init(&this->state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue