aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/vulkan.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-12-03 15:31:49 +0900
committerLynne <dev@lynne.ee>2024-12-23 04:25:09 +0900
commit2e06b84e2747ef4ea4d9f5c20c936aa866f7647d (patch)
treeba037209826667bf2eb78796b180b673e40b36dc /libavutil/vulkan.h
parent157cd820adbbfcfd1870a6ce12d072dc0f623e9b (diff)
downloadffmpeg-2e06b84e2747ef4ea4d9f5c20c936aa866f7647d.tar.gz
vulkan: do not reinvent a queue context struct
We recently introduced a public field which was a superset of the queue context we used to have. Switch to using it entirely. This also allows us to get rid of the NIH function which was valid only for video queues.
Diffstat (limited to 'libavutil/vulkan.h')
-rw-r--r--libavutil/vulkan.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h
index 0a166da9eb..41f71df376 100644
--- a/libavutil/vulkan.h
+++ b/libavutil/vulkan.h
@@ -99,11 +99,6 @@ typedef struct FFVkBuffer {
uint8_t *mapped_mem;
} FFVkBuffer;
-typedef struct FFVkQueueFamilyCtx {
- int queue_family;
- int nb_queues;
-} FFVkQueueFamilyCtx;
-
typedef struct FFVkExecContext {
uint32_t idx;
const struct FFVkExecPool *parent;
@@ -393,10 +388,11 @@ const char *ff_vk_shader_rep_fmt(enum AVPixelFormat pix_fmt,
int ff_vk_load_props(FFVulkanContext *s);
/**
- * Chooses a QF and loads it into a context.
+ * Chooses an appropriate QF.
*/
-int ff_vk_qf_init(FFVulkanContext *s, FFVkQueueFamilyCtx *qf,
- VkQueueFlagBits dev_family);
+AVVulkanDeviceQueueFamily *ff_vk_qf_find(FFVulkanContext *s,
+ VkQueueFlagBits dev_family,
+ VkVideoCodecOperationFlagBitsKHR vid_ops);
/**
* Allocates/frees an execution pool.
@@ -405,7 +401,7 @@ int ff_vk_qf_init(FFVulkanContext *s, FFVkQueueFamilyCtx *qf,
* ff_vk_exec_pool_init_desc() MUST be called if ff_vk_exec_descriptor_set_add()
* has been called.
*/
-int ff_vk_exec_pool_init(FFVulkanContext *s, FFVkQueueFamilyCtx *qf,
+int ff_vk_exec_pool_init(FFVulkanContext *s, AVVulkanDeviceQueueFamily *qf,
FFVkExecPool *pool, int nb_contexts,
int nb_queries, VkQueryType query_type, int query_64bit,
const void *query_create_pnext);