From 590eb4b70db14892e19cb3363c05b1323e03330a Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 7 Apr 2026 17:14:10 +0200 Subject: [PATCH] tests/checkasm/sw_ops: remove some unnecessary checks These don't actually exist at runtime, and will soon be removed from the backends as well. This commit is intentionally a bit incomplete; as I will rewrite this based on the auto-generated macros in the upcoming ops_micro series. Signed-off-by: Niklas Haas --- tests/checkasm/sw_ops.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/checkasm/sw_ops.c b/tests/checkasm/sw_ops.c index 39a053172c..47660b7610 100644 --- a/tests/checkasm/sw_ops.c +++ b/tests/checkasm/sw_ops.c @@ -714,27 +714,17 @@ static void check_linear(void) const char *name; uint32_t mask; } patterns[] = { - { "noop", 0 }, { "luma", SWS_MASK_LUMA }, { "alpha", SWS_MASK_ALPHA }, { "luma+alpha", SWS_MASK_LUMA | SWS_MASK_ALPHA }, { "dot3", 0x7 }, - { "dot4", 0xF }, - { "row0", SWS_MASK_ROW(0) }, - { "row0+alpha", SWS_MASK_ROW(0) | SWS_MASK_ALPHA }, - { "off3", SWS_MASK_OFF3 }, - { "off3+alpha", SWS_MASK_OFF3 | SWS_MASK_ALPHA }, + { "row0", SWS_MASK_ROW(0) ^ SWS_MASK(0, 3) }, { "diag3", SWS_MASK_DIAG3 }, { "diag4", SWS_MASK_DIAG4 }, { "diag3+alpha", SWS_MASK_DIAG3 | SWS_MASK_ALPHA }, { "diag3+off3", SWS_MASK_DIAG3 | SWS_MASK_OFF3 }, - { "diag3+off3+alpha", SWS_MASK_DIAG3 | SWS_MASK_OFF3 | SWS_MASK_ALPHA }, - { "diag4+off4", SWS_MASK_DIAG4 | SWS_MASK_OFF4 }, - { "matrix3", SWS_MASK_MAT3 }, { "matrix3+off3", SWS_MASK_MAT3 | SWS_MASK_OFF3 }, { "matrix3+off3+alpha", SWS_MASK_MAT3 | SWS_MASK_OFF3 | SWS_MASK_ALPHA }, - { "matrix4", SWS_MASK_MAT4 }, - { "matrix4+off4", SWS_MASK_MAT4 | SWS_MASK_OFF4 }, }; for (SwsPixelType t = F32; t < SWS_PIXEL_TYPE_NB; t++) {