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

Git pushed a commit to branch master
in repository ffmpeg.

commit b6ebee038f9c18d026124aa5b48c02dd1d822afd
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Mar 6 19:01:57 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Mar 9 11:25:57 2026 +0100

    swscale/vulkan/ops: move fractional read/write rejection to implementation
    
    Rather than testing for it separately for some reason.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/vulkan/ops.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index db59e123ef..8d614232ac 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -182,10 +182,6 @@ static int add_ops_glsl(VulkanPriv *p, FFVulkanOpsCtx *s,
     for (int n = 0; n < ops->num_ops; n++) {
         const SwsOp *op = &ops->ops[n];
         /* Set initial type */
-        if (op->op == SWS_OP_READ || op->op == SWS_OP_WRITE) {
-            if (op->rw.frac)
-                return AVERROR(ENOTSUP);
-        }
         if (op->op == SWS_OP_READ || op->op == SWS_OP_WRITE) {
             const char *img_type = op->type == SWS_PIXEL_F32 ? "rgba32f"  :
                                    op->type == SWS_PIXEL_U32 ? "rgba32ui" :
@@ -237,7 +233,9 @@ static int add_ops_glsl(VulkanPriv *p, FFVulkanOpsCtx *s,
 
         switch (op->op) {
         case SWS_OP_READ: {
-            if (op->rw.packed) {
+            if (op->rw.frac) {
+                return AVERROR(ENOTSUP);
+            } else if (op->rw.packed) {
                 GLSLF(1, %s = %s(imageLoad(src_img[0], pos));                  
,
                       type_name, type_v);
             } else {
@@ -248,7 +246,9 @@ static int add_ops_glsl(VulkanPriv *p, FFVulkanOpsCtx *s,
             break;
         }
         case SWS_OP_WRITE: {
-            if (op->rw.packed) {
+            if (op->rw.frac) {
+                return AVERROR(ENOTSUP);
+            } else if (op->rw.packed) {
                 GLSLF(1, imageStore(dst_img[0], pos, %s(%s));                  
,
                       type_v, type_name);
             } else {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to