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

Git pushed a commit to branch master
in repository ffmpeg.

commit 8e3a1bd53b8be66b0fcd87b9f62c1559acca408d
Author:     Ramiro Polla <[email protected]>
AuthorDate: Mon Sep 28 15:24:36 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Sep 29 18:54:39 2026 +0000

    swscale/tests/swscale: fix -backends spirv with -hw option
    
    The Vulkan backend test wasn't updated to work with the -backends
    option since it was introduced in 945151851e, so it could only be
    tested with "-flags unstable".
    
    For example, "-backends spirv -hw 0" doesn't test any conversions:
     $ ./libswscale/tests/swscale -backends spirv -hw 0 -scaler none
     [swscaler @ 0x55ac23ceaf40] Failed initializing scaling graph (Operation 
not supported): fmt:yuv444p csp:unknown prim:unknown trc:unknown -> fmt:gray 
csp:unknown prim:unknown trc:unknown
     Failed vulkan ---> vulkan
     [...]
    
    This commit also passes -scaler/-scaler_sub/-threads to scale_hw(),
    which were forgotten in fcaafd2c11 and 990768080e.
---
 libswscale/tests/swscale.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
index e505dafbc4..5ea40d1830 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -346,8 +346,12 @@ static int scale_hw(AVFrame *dst, const AVFrame *src,
         goto error;
     }
 
-    sws_hw->flags  = mode->flags;
-    sws_hw->dither = mode->dither;
+    sws_hw->flags      = mode->flags;
+    sws_hw->dither     = mode->dither;
+    sws_hw->scaler     = mode->scaler;
+    sws_hw->scaler_sub = mode->scaler_sub;
+    sws_hw->threads    = opts->threads;
+    sws_hw->backends   = opts->backends;
 
     in_ref = av_hwframe_ctx_alloc(hw_device_ctx);
     if (!in_ref) {

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