[FFmpeg-cvslog] vulkan: retrieve Vulkan 1.1 properties

Lynne git at videolan.org
Mon Nov 18 08:55:21 EET 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Mon Nov 18 05:50:32 2024 +0100| [c918b42dcdb76a0326059c9c35678591bf2c3031] | committer: Lynne

vulkan: retrieve Vulkan 1.1 properties

Required to know the subgroup size.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c918b42dcdb76a0326059c9c35678591bf2c3031
---

 libavutil/vulkan.c | 6 +++++-
 libavutil/vulkan.h | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index 2813bc1af9..d5299ffb06 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -130,9 +130,13 @@ int ff_vk_load_props(FFVulkanContext *s)
         .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES,
         .pNext = &s->desc_buf_props,
     };
+    s->props_11 = (VkPhysicalDeviceVulkan11Properties) {
+        .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES,
+        .pNext = &s->driver_props,
+    };
     s->props = (VkPhysicalDeviceProperties2) {
         .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2,
-        .pNext = &s->driver_props,
+        .pNext = &s->props_11,
     };
 
     s->atomic_float_feats = (VkPhysicalDeviceShaderAtomicFloatFeaturesEXT) {
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h
index aa3b327daa..4394894baa 100644
--- a/libavutil/vulkan.h
+++ b/libavutil/vulkan.h
@@ -267,6 +267,7 @@ typedef struct FFVulkanContext {
     FFVulkanFunctions     vkfn;
     FFVulkanExtensions    extensions;
     VkPhysicalDeviceProperties2 props;
+    VkPhysicalDeviceVulkan11Properties props_11;
     VkPhysicalDeviceDriverProperties driver_props;
     VkPhysicalDeviceMemoryProperties mprops;
     VkPhysicalDeviceExternalMemoryHostPropertiesEXT hprops;



More information about the ffmpeg-cvslog mailing list