mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
vulkan: Add format convertion functions
This commit is contained in:
parent
ea2a2c47c7
commit
cf0e3a35ba
6 changed files with 42 additions and 8 deletions
|
|
@ -623,7 +623,7 @@ static int clear_buffers(struct impl *this, struct port *port)
|
|||
{
|
||||
if (port->n_buffers > 0) {
|
||||
spa_log_debug(this->log, NAME " %p: clear buffers", this);
|
||||
spa_vulkan_use_buffers(&this->state, &this->state.streams[0], 0, 0, NULL);
|
||||
spa_vulkan_use_buffers(&this->state, &this->state.streams[0], 0, &port->current_format.info.dsp, 0, NULL);
|
||||
port->n_buffers = 0;
|
||||
spa_list_init(&port->empty);
|
||||
spa_list_init(&port->ready);
|
||||
|
|
@ -739,7 +739,7 @@ impl_node_port_use_buffers(void *object,
|
|||
spa_log_info(this->log, "%p: %d:%d add buffer %p", port, direction, port_id, b);
|
||||
spa_list_append(&port->empty, &b->link);
|
||||
}
|
||||
spa_vulkan_use_buffers(&this->state, &this->state.streams[0], flags, n_buffers, buffers);
|
||||
spa_vulkan_use_buffers(&this->state, &this->state.streams[0], flags, &port->current_format.info.dsp, n_buffers, buffers);
|
||||
port->n_buffers = n_buffers;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue