From eac90ce6ce6fa07169580a0b569543b120bbe940 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 11 Apr 2026 18:15:57 +0200 Subject: [PATCH] tests/checkasm/sw_ops: set correct plane index order All four components were accidentally being read/written to/from the same plane. Signed-off-by: Niklas Haas --- tests/checkasm/sw_ops.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/checkasm/sw_ops.c b/tests/checkasm/sw_ops.c index 47660b7610..1205721c3e 100644 --- a/tests/checkasm/sw_ops.c +++ b/tests/checkasm/sw_ops.c @@ -117,12 +117,17 @@ static void check_ops(const char *report, const unsigned ranges[NB_PLANES], SwsContext *ctx = sws_alloc_context(); SwsCompiledOp comp_ref = {0}, comp_new = {0}; const SwsOpBackend *backend_new = NULL; - SwsOpList oplist = { .ops = (SwsOp *) ops }; const SwsOp *read_op, *write_op; static const unsigned def_ranges[4] = {0}; if (!ranges) ranges = def_ranges; + SwsOpList oplist = { + .ops = (SwsOp *) ops, + .plane_src = {0, 1, 2, 3}, + .plane_dst = {0, 1, 2, 3}, + }; + declare_func(void, const SwsOpExec *, const void *, int bx, int y, int bx_end, int y_end); static DECLARE_ALIGNED_64(char, src0)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])];