summaryrefslogtreecommitdiff
path: root/libavutil/tx.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-09-03 03:34:57 +0200
committerLynne <dev@lynne.ee>2022-09-06 04:21:41 +0200
commit2425d5cd7e37387305f85bef63f7441c8b1cc147 (patch)
tree83c67a7dd2a300607a6cca3df4928ab842c6bb81 /libavutil/tx.c
parentb881d2db8892e88a625dfa4ac2d5b8ca53ab9595 (diff)
downloadffmpeg-2425d5cd7e37387305f85bef63f7441c8b1cc147.tar.gz
x86/tx_float: add support for calling assembly functions from assembly
Needed for the next patch. We get this for the extremely small cost of a branch on _ns functions, which wouldn't be used anyway with assembly.
Diffstat (limited to 'libavutil/tx.c')
-rw-r--r--libavutil/tx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/tx.c b/libavutil/tx.c
index 28e49a5d41..edd2af07c7 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -313,6 +313,8 @@ static void print_flags(AVBPrint *bp, uint64_t f)
av_bprintf(bp, "%spreshuf", prev > 1 ? sep : "");
if ((f & AV_TX_FULL_IMDCT) && ++prev)
av_bprintf(bp, "%simdct_full", prev > 1 ? sep : "");
+ if ((f & FF_TX_ASM_CALL) && ++prev)
+ av_bprintf(bp, "%sasm_call", prev > 1 ? sep : "");
av_bprintf(bp, "]");
}
@@ -484,7 +486,7 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
uint64_t req_flags = flags;
/* Flags the codelet may require to be present */
- uint64_t inv_req_mask = AV_TX_FULL_IMDCT | FF_TX_PRESHUFFLE;
+ uint64_t inv_req_mask = AV_TX_FULL_IMDCT | FF_TX_PRESHUFFLE | FF_TX_ASM_CALL;
/* Unaligned codelets are compatible with the aligned flag */
if (req_flags & FF_TX_ALIGNED)