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 <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-04-11 18:15:57 +02:00
committed by Niklas Haas
parent 590eb4b70d
commit eac90ce6ce

View File

@@ -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])];