Commit 3cf06fe177 for ffmpeg
commit 3cf06fe177022c9da29816c8abc3158187a68439
Author: Niklas Haas <git@haasn.dev>
Date: Fri Jul 17 12:46:25 2026 +0200
swscale/vulkan/ops: error out on integer linear ops
As this is code explicitly marked experimental/unstable code, I have opted to
just error out for now. Adding these properly will require additional work
from Lynne, as part of a different STF milestone.
This will still set up some descriptors containing junk data (integer
bits reinterpreted as float), but this is harmless.
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index eeb86eec35..68750dc3bb 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -1239,6 +1239,8 @@ static int add_ops_spirv(SwsContext *sws, VulkanPriv *p, FFVulkanOpsCtx *s,
break;
}
case SWS_OP_LINEAR: {
+ if (op->type != SWS_PIXEL_F32)
+ return AVERROR(ENOTSUP);
if (sws->flags & SWS_BITEXACT)
data = insert_bitexact_linear(op, spi, id, data, nb_linear_ops, nb_const_ids);
else