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

Git pushed a commit to branch master
in repository ffmpeg.

commit 1146e745dac9ab32a42ce8acc70f990017f82fd4
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Oct 20 02:14:43 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Oct 20 19:50:40 2026 +0000

    swscale/vulkan/ops: remove duplicate float zero constant
    
    Since the float placeholder value was changed to 0.0, f32_p and f32_0 are
    the same constant.
    
    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 b83d11681c..599fd224b2 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -332,7 +332,6 @@ typedef struct SPIRVIDs {
 
     /* Constants */
     int u32_p;
-    int f32_p;
     int f32_0;
     int u32_cid[5];
 
@@ -500,7 +499,6 @@ static void define_shader_consts(SwsContext *sws, const 
SwsOpList *ops,
 
     /* Constants */
     id->u32_p = spi_OpUndef(spi, u32_type);
-    id->f32_p = spi_OpConstantFloat(spi, f32_type, 0);
     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);
@@ -1123,8 +1121,8 @@ static int add_ops_spirv(SwsContext *sws, VulkanPriv *p, 
FFVulkanOpsCtx *s,
     int data;
     if (ops->ops[0].type == SWS_PIXEL_F32)
         data = spi_OpCompositeConstruct(spi, id->f32vec4_type,
-                                        id->f32_p, id->f32_p,
-                                        id->f32_p, id->f32_p);
+                                        id->f32_0, id->f32_0,
+                                        id->f32_0, id->f32_0);
     else
         data = spi_OpCompositeConstruct(spi, id->u32vec4_type,
                                         id->u32_p, id->u32_p,
@@ -1146,7 +1144,7 @@ static int add_ops_spirv(SwsContext *sws, VulkanPriv *p, 
FFVulkanOpsCtx *s,
         int type_s = cur_type == SWS_PIXEL_F32 ?
                      id->f32_type : id->u32_type;
         int uid = cur_type == SWS_PIXEL_F32 ?
-                  id->f32_p : id->u32_p;
+                  id->f32_0 : id->u32_p;
 
         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