summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-10-28 13:20:42 +0100
committerWim Taymans <wtaymans@redhat.com>2019-10-28 13:20:42 +0100
commit4f5a5fc9179cd3afea9f81ad75e181be13854abb (patch)
tree0bc62515598f7ee1ddb4b01b7c4b5bf1134fc131
parentc904809e759059b31734d022a421ba1531d86dc5 (diff)
vulkan: tag port as video DSP port
m---------pipewire-jack10
-rw-r--r--spa/plugins/vulkan/vulkan-compute-source.c7
2 files changed, 11 insertions, 6 deletions
diff --git a/pipewire-jack b/pipewire-jack
-Subproject d4ed1f6832ec1068e4fce2d5910446e303f3c1a
+Subproject 4f47d6e05221dfd2f9cc5ef16243004a40e56d9
diff --git a/spa/plugins/vulkan/vulkan-compute-source.c b/spa/plugins/vulkan/vulkan-compute-source.c
index ee7a2b8e..2d699eb4 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)