Commit 52e113f360 for ffmpeg
commit 52e113f3600487217eba73b33c38487837fc88fb
Author: Niklas Haas <git@haasn.dev>
Date: Wed Oct 21 19:08:13 2026 +0200
swscale/vulkan/ops: compare image sampled types directly
Instead of checking whether both are float.
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 6582eb2ad9..91ab24aef7 100644
--- a/libswscale/vulkan/ops.c
+++ b/libswscale/vulkan/ops.c
@@ -479,8 +479,8 @@ static void define_shader_bindings(const SwsOpList *ops, SPICtx *spi, SPIRVIDs *
if (op_r) {
/* If the formats match, we have to reuse the types due to SPIR-V not
* allowing redundant type defines */
- int match = ((op_w->rw.type == SWS_PIXEL_F32) ==
- (op_r->rw.type == SWS_PIXEL_F32));
+ int match = type_scalar(id, op_w->rw.type) ==
+ type_scalar(id, op_r->rw.type);
id->in_img_type = match ? id->out_img_type :
spi_OpTypeImage(spi, type_scalar(id, op_r->rw.type),
2, 0, 0, 0, 2, SpvImageFormatUnknown);