aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-07-16 17:16:34 +0200
committerLynne <dev@lynne.ee>2024-08-11 05:13:10 +0200
commita30b7c0158fe744678ca9e4c53b3f343d9f387ff (patch)
tree1a6e705b1b3f007959294d670ef2260c9f21c3c9 /libavutil/vulkan.c
parent8790a30882d9e48c20b61b3a7ac1ff3225bf649c (diff)
downloadffmpeg-a30b7c0158fe744678ca9e4c53b3f343d9f387ff.tar.gz
hwcontext_vulkan: initialize optical flow queues if available
Lets us implement FPS conversion.
Diffstat (limited to 'libavutil/vulkan.c')
-rw-r--r--libavutil/vulkan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index cec8354ba6..ade8d482b9 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -90,9 +90,13 @@ int ff_vk_load_props(FFVulkanContext *s)
s->hprops = (VkPhysicalDeviceExternalMemoryHostPropertiesEXT) {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT,
};
+ s->optical_flow_props = (VkPhysicalDeviceOpticalFlowPropertiesNV) {
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_OPTICAL_FLOW_PROPERTIES_NV,
+ .pNext = &s->hprops,
+ };
s->coop_matrix_props = (VkPhysicalDeviceCooperativeMatrixPropertiesKHR) {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_KHR,
- .pNext = &s->hprops,
+ .pNext = &s->optical_flow_props,
};
s->subgroup_props = (VkPhysicalDeviceSubgroupSizeControlProperties) {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES,