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

Git pushed a commit to branch master
in repository ffmpeg.

commit 4f1337c5a865ad445d07696a8b8d188e4ccb35bc
Author:     Niklas Haas <[email protected]>
AuthorDate: Wed Oct 21 19:07:43 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sat Oct 24 19:10:48 2026 +0000

    swscale/vulkan/ops: use type helpers for the initial data vector
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/vulkan/ops.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index ab176e6517..6582eb2ad9 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -1073,15 +1073,10 @@ static int emit_shader(SwsContext *sws, VulkanPriv *p, 
FFVulkanOpsCtx *s,
     spi_OpLabel(spi, merge_label);
 
     /* Initialize main data state */
-    int data;
-    if (ff_sws_op_output_type(&ops->ops[0]) == SWS_PIXEL_F32)
-        data = spi_OpCompositeConstruct(spi, id->f32vec4_type,
-                                        id->f32_0, id->f32_0,
-                                        id->f32_0, id->f32_0);
-    else
-        data = spi_OpCompositeConstruct(spi, id->u32vec4_type,
-                                        id->u32_cid[0], id->u32_cid[0],
-                                        id->u32_cid[0], id->u32_cid[0]);
+    const SwsPixelType type0 = ff_sws_op_output_type(&ops->ops[0]);
+    const int zero0 = const_zero(id, type0);
+    int data = spi_OpCompositeConstruct(spi, type_vec4(id, type0),
+                                        zero0, zero0, zero0, zero0);
 
     /* Operations */
     for (int n = 0; n < ops->num_ops; n++) {

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