From 4f5a5fc9179cd3afea9f81ad75e181be13854abb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 28 Oct 2019 13:20:42 +0100 Subject: [PATCH] vulkan: tag port as video DSP port --- pipewire-jack | 2 +- spa/plugins/vulkan/vulkan-compute-source.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pipewire-jack b/pipewire-jack index d4ed1f683..4f47d6e05 160000 --- a/pipewire-jack +++ b/pipewire-jack @@ -1 +1 @@ -Subproject commit d4ed1f6832ec1068e4fce2d5910446e303f3c1ae +Subproject commit 4f47d6e05221dfd2f9cc5ef16243004a40e56d9a diff --git a/spa/plugins/vulkan/vulkan-compute-source.c b/spa/plugins/vulkan/vulkan-compute-source.c index ee7a2b8ed..2d699eb4c 100644 --- a/spa/plugins/vulkan/vulkan-compute-source.c +++ b/spa/plugins/vulkan/vulkan-compute-source.c @@ -436,6 +436,10 @@ static void emit_port_info(struct impl *this, struct port *port, bool full) if (full) port->info.change_mask = port->info_all; if (port->info.change_mask) { + struct spa_dict_item items[1]; + + items[0] = SPA_DICT_ITEM_INIT(SPA_KEY_FORMAT_DSP, "32 bit float RGBA video"); + port->info.props = &SPA_DICT_INIT(items, 1); spa_node_emit_port_info(&this->hooks, SPA_DIRECTION_OUTPUT, 0, &port->info); port->info.change_mask = 0; @@ -917,7 +921,8 @@ impl_init(const struct spa_handle_factory *factory, port = &this->port; port->info_all = SPA_PORT_CHANGE_MASK_FLAGS | - SPA_PORT_CHANGE_MASK_PARAMS; + SPA_PORT_CHANGE_MASK_PARAMS | + SPA_PORT_CHANGE_MASK_PROPS; port->info = SPA_PORT_INFO_INIT(); port->info.flags = SPA_PORT_FLAG_NO_REF | SPA_PORT_FLAG_CAN_ALLOC_BUFFERS; if (this->props.live)