This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 712a8f9e84 lavu/vulkan: properly set the required subgroup size for 
loaded shaders
712a8f9e84 is described below

commit 712a8f9e84038a3e10015de78fb513f650bb7aec
Author:     Lynne <[email protected]>
AuthorDate: Wed Aug 19 02:12:09 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Wed Aug 19 02:14:01 2026 +0900

    lavu/vulkan: properly set the required subgroup size for loaded shaders
    
    This was forgotten/left out somehow.
---
 libavutil/vulkan.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index 021b8d989c..4c3dbc9117 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -2246,6 +2246,11 @@ int ff_vk_shader_load(FFVulkanShader *shd,
     shd->specialization_info = spec;
     memcpy(shd->lg_size, wg_size, 3*sizeof(uint32_t));
 
+    shd->subgroup_info = (VkPipelineShaderStageRequiredSubgroupSizeCreateInfo) 
{
+        .sType = 
VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO,
+        .requiredSubgroupSize = required_subgroup_size,
+    };
+
     switch (shd->stage) {
     case VK_SHADER_STAGE_ANY_HIT_BIT_KHR:
     case VK_SHADER_STAGE_CALLABLE_BIT_KHR:
@@ -2362,6 +2367,8 @@ static int create_shader_object(FFVulkanContext *s, 
FFVulkanShader *shd,
 
     VkShaderCreateInfoEXT shader_obj_create = {
         .sType = VK_STRUCTURE_TYPE_SHADER_CREATE_INFO_EXT,
+        .pNext = shd->subgroup_info.requiredSubgroupSize ?
+                 &shd->subgroup_info : NULL,
         .flags = shd->subgroup_info.requiredSubgroupSize ?
                  VK_SHADER_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT : 0x0,
         .stage = shd->stage,

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to