Commit 3ab4e278bc for ffmpeg
commit 3ab4e278bce21ddb4432ea5bd0189643a9faa705
Author: Niklas Haas <git@haasn.dev>
Date: Wed Oct 21 19:09:22 2026 +0200
swscale/vulkan/ops: take the pack types from the op
Same as for all other ops, instead of hard-coding 32-bit integers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Niklas Haas <git@haasn.dev>
diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c
index 230af3e257..1478073645 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -931,8 +931,9 @@ static int emit_linear(SPICtx *spi, SPIRVIDs *id, const SwsOp *op, int *data)
static int emit_pack(SPICtx *spi, SPIRVIDs *id, const SwsOp *op, int *data)
{
- const int type_v = id->u32vec4_type;
- const int type_s = id->u32_type;
+ const SwsPixelType type = ff_sws_op_input_type(op);
+ const int type_v = type_vec4(id, type);
+ const int type_s = type_scalar(id, type);
int shift, mask;
define_pack_consts(spi, id, op, &shift, &mask);