This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new f523577512 swscale/aarch64: convert generation of ops_entries.c to a
fate test
f523577512 is described below
commit f523577512eace3c0ef9b097f444e30e5f0ac1fb
Author: Ramiro Polla <[email protected]>
AuthorDate: Wed Apr 1 12:32:46 2026 +0200
Commit: Ramiro Polla <[email protected]>
CommitDate: Fri Jun 19 14:33:28 2026 +0000
swscale/aarch64: convert generation of ops_entries.c to a fate test
This serves two purposes:
- there is a test to check that the file is always up-to-date
- it can easily be regenerated using fate's own infrastructure
---
libswscale/Makefile | 6 ------
libswscale/aarch64/ops_asmgen.c | 2 +-
libswscale/aarch64/ops_entries.c | 2 +-
libswscale/tests/sws_ops_aarch64.c | 2 +-
tests/fate/libswscale.mak | 5 +++++
5 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/libswscale/Makefile b/libswscale/Makefile
index 2f08bc36bc..b8dca3c4e9 100644
--- a/libswscale/Makefile
+++ b/libswscale/Makefile
@@ -53,9 +53,3 @@ TESTPROGS = colorspace
\
swscale \
sws_ops \
sws_ops_aarch64 \
-
-sws_ops_entries_aarch64: TAG = GEN
-sws_ops_entries_aarch64: $(SUBDIR)tests/sws_ops_aarch64$(EXESUF)
- $(M)$< > $(SRC_PATH)/libswscale/aarch64/ops_entries.c.tmp
- $(CP) $(SRC_PATH)/libswscale/aarch64/ops_entries.c.tmp
$(SRC_PATH)/libswscale/aarch64/ops_entries.c
- $(RM) $(SRC_PATH)/libswscale/aarch64/ops_entries.c.tmp
diff --git a/libswscale/aarch64/ops_asmgen.c b/libswscale/aarch64/ops_asmgen.c
index c03e0832ee..25d98cd42b 100644
--- a/libswscale/aarch64/ops_asmgen.c
+++ b/libswscale/aarch64/ops_asmgen.c
@@ -88,7 +88,7 @@ static void *av_dynarray2_add(void **tab_ptr, int *nb_ptr,
size_t elem_size,
* compiled by performing a dummy run of all conversions in sws_ops and
* collecting all functions that need to be generated. This is achieved
* by running:
- * make sws_ops_entries_aarch64
+ * make fate-sws-ops-entries-aarch64 GEN=1
*/
static const SwsAArch64OpImplParams impl_params[] = {
#include "ops_entries.c"
diff --git a/libswscale/aarch64/ops_entries.c b/libswscale/aarch64/ops_entries.c
index 4b8e4bbae1..77a15f7c37 100644
--- a/libswscale/aarch64/ops_entries.c
+++ b/libswscale/aarch64/ops_entries.c
@@ -1,6 +1,6 @@
/*
* This file is automatically generated. Do not edit manually.
- * To regenerate, run: make sws_ops_entries_aarch64
+ * To regenerate, run: make fate-sws-ops-entries-aarch64 GEN=1
*/
{ .op = AARCH64_SWS_OP_READ_BIT, .block_size = 8, .type = AARCH64_PIXEL_U8,
.mask = 0x0001 },
diff --git a/libswscale/tests/sws_ops_aarch64.c
b/libswscale/tests/sws_ops_aarch64.c
index 2089a0f1b7..3dc68bf5c1 100644
--- a/libswscale/tests/sws_ops_aarch64.c
+++ b/libswscale/tests/sws_ops_aarch64.c
@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
*/
printf("/*\n");
printf(" * This file is automatically generated. Do not edit manually.\n");
- printf(" * To regenerate, run: make sws_ops_entries_aarch64\n");
+ printf(" * To regenerate, run: make fate-sws-ops-entries-aarch64 GEN=1\n");
printf(" */\n");
printf("\n");
av_tree_enumerate(root, stdout, NULL, print_op);
diff --git a/tests/fate/libswscale.mak b/tests/fate/libswscale.mak
index f39cd50ab9..8f6616dd8e 100644
--- a/tests/fate/libswscale.mak
+++ b/tests/fate/libswscale.mak
@@ -56,6 +56,11 @@ fate-sws-uops-macros: REF =
$(SRC_PATH)/libswscale/uops_macros.h
fate-sws-uops-macros: CMD = run libswscale/tests/sws_ops$(EXESUF) -macros
endif
+FATE_LIBSWSCALE-$(CONFIG_UNSTABLE) += fate-sws-ops-entries-aarch64
+fate-sws-ops-entries-aarch64: libswscale/tests/sws_ops_aarch64$(EXESUF)
+fate-sws-ops-entries-aarch64: REF =
$(SRC_PATH)/libswscale/aarch64/ops_entries.c
+fate-sws-ops-entries-aarch64: CMD = run
libswscale/tests/sws_ops_aarch64$(EXESUF)
+
FATE_LIBSWSCALE += $(FATE_LIBSWSCALE-yes)
FATE_LIBSWSCALE_SAMPLES += $(FATE_LIBSWSCALE_SAMPLES-yes)
FATE-$(CONFIG_SWSCALE) += $(FATE_LIBSWSCALE)
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]