This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit cd1dab13c362f0f82cbefac675f1f7cbc8370766 Author: Niklas Haas <[email protected]> AuthorDate: Wed Oct 21 18:27:54 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Sat Oct 24 19:10:48 2026 +0000 swscale/vulkan/ops: define dither offset constants at the point of use Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Niklas Haas <[email protected]> --- libswscale/vulkan/ops.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/libswscale/vulkan/ops.c b/libswscale/vulkan/ops.c index 854eed6630..5fcbed62c1 100644 --- a/libswscale/vulkan/ops.c +++ b/libswscale/vulkan/ops.c @@ -330,7 +330,6 @@ typedef struct LinearIDs { /* Constants and buffers used by a single op */ typedef struct OpIDs { union { - int comp[4]; /* CLEAR, MIN, MAX, DITHER */ LinearIDs lin; /* LINEAR */ }; int buf; /* index into dither[] or filt[] */ @@ -571,14 +570,6 @@ static void define_shader_consts(SwsContext *sws, const SwsOpList *ops, const SwsOp *op = &ops->ops[n]; OpIDs *oid = &id->op[n]; switch (op->op) { - case SWS_OP_DITHER: - for (int i = 0; i < 4; i++) { - if (op->dither.y_offset[i] < 0) - continue; - oid->comp[i] = spi_OpConstantUInt(spi, u32_type, - op->dither.y_offset[i]); - } - break; case SWS_OP_LINEAR: { LinearIDs *lin = &oid->lin; int vec[4], tmp[4]; @@ -1209,7 +1200,9 @@ static int emit_shader(SwsContext *sws, VulkanPriv *p, FFVulkanOpsCtx *s, if (op->dither.y_offset[i] < 0) continue; - int y_id = spi_OpIAdd(spi, id->u32_type, y_pos, oid->comp[i]); + int y_off = spi_OpConstantUInt(spi, id->u32_type, + op->dither.y_offset[i]); + int y_id = spi_OpIAdd(spi, id->u32_type, y_pos, y_off); y_id = spi_OpBitwiseAnd(spi, id->u32_type, y_id, d->mask_id); int ptr = spi_OpAccessChain(spi, id->dither_ptr_elem_id, d->id, -- 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]
