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

Git pushed a commit to branch master
in repository ffmpeg.

commit 3771368eb72300f9425efa1c2286ce43f2c6d755
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Oct 20 23:46:06 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sat Oct 24 19:10:48 2026 +0000

    swscale/vulkan/ops: initialize unused integer lanes to zero
    
    Same as was already done for float lanes. There is no reason to treat the
    two differently, and this avoids the need for OpUndef.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/vulkan/ops.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index 5a840b788d..77314ed51f 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -372,7 +372,6 @@ typedef struct SPIRVIDs {
     int f32mat4_type;
 
     /* Constants */
-    int u32_p;
     int f32_0;
     int u32_cid[5];
 
@@ -539,7 +538,6 @@ static void define_shader_consts(SwsContext *sws, const 
SwsOpList *ops,
     id->f32mat4_type = spi_OpTypeMatrix(spi, id->f32vec4_type, 4);
 
     /* Constants */
-    id->u32_p = spi_OpUndef(spi, u32_type);
     id->f32_0 = spi_OpConstantFloat(spi, f32_type, 0);
     for (int i = 0; i < 5; i++)
         id->u32_cid[i] = spi_OpConstantUInt(spi, u32_type, i);
@@ -1152,8 +1150,8 @@ static int add_ops_spirv(SwsContext *sws, VulkanPriv *p, 
FFVulkanOpsCtx *s,
                                         id->f32_0, id->f32_0);
     else
         data = spi_OpCompositeConstruct(spi, id->u32vec4_type,
-                                        id->u32_p, id->u32_p,
-                                        id->u32_p, id->u32_p);
+                                        id->u32_cid[0], id->u32_cid[0],
+                                        id->u32_cid[0], id->u32_cid[0]);
 
     /* Operations */
     for (int n = 0; n < ops->num_ops; n++) {
@@ -1168,7 +1166,7 @@ static int add_ops_spirv(SwsContext *sws, VulkanPriv *p, 
FFVulkanOpsCtx *s,
         int type_s = type_out == SWS_PIXEL_F32 ?
                      id->f32_type : id->u32_type;
         int uid = type_out == SWS_PIXEL_F32 ?
-                  id->f32_0 : id->u32_p;
+                  id->f32_0 : id->u32_cid[0];
 
         switch (op->op) {
         case SWS_OP_READ:

-- 
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