From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Subject: [FFmpeg-devel] [PATCH 5/6] checkasm/vvc_mc: Don't use declare_func_emms Date: Wed, 28 Feb 2024 17:18:43 +0100 Message-ID: <AS8P250MB0744816FCB9F4CD0F69F01DD8F582@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw) In-Reply-To: <AS8P250MB0744EECC42CA62E11880613C8F582@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> There is no MMX DSP code for VVC, so one can use the stricter declare_func which also tests that we are not in MMX mode at the end of this function. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- tests/checkasm/vvc_mc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c index 8adb00573f..ce34965b7d 100644 --- a/tests/checkasm/vvc_mc.c +++ b/tests/checkasm/vvc_mc.c @@ -74,7 +74,7 @@ static void check_put_vvc_luma(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, + declare_func(void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, const int height, const int8_t *hf, const int8_t *vf, const int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -122,7 +122,7 @@ static void check_put_vvc_luma_uni(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dststride, + declare_func(void, uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int height, const int8_t *hf, const int8_t *vf, int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -172,7 +172,7 @@ static void check_put_vvc_chroma(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, + declare_func(void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, const int height, const int8_t *hf, const int8_t *vf, const int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -220,7 +220,7 @@ static void check_put_vvc_chroma_uni(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dststride, + declare_func(void, uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int height, const int8_t *hf, const int8_t *vf, int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -282,7 +282,7 @@ static void check_avg(void) for (int h = 2; h <= MAX_CTU_SIZE; h *= 2) { for (int w = 2; w <= MAX_CTU_SIZE; w *= 2) { { - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dst_stride, + declare_func(void, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *src0, const int16_t *src1, int width, int height); if (check_func(c.inter.avg, "avg_%d_%dx%d", bit_depth, w, h)) { memset(dst0, 0, AVG_DST_BUF_SIZE); @@ -296,7 +296,7 @@ static void check_avg(void) } } { - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dst_stride, + declare_func(void, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *src0, const int16_t *src1, int width, int height, int denom, int w0, int w1, int o0, int o1); { -- 2.40.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-02-28 16:17 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-28 16:16 [FFmpeg-devel] [PATCH 1/6] avcodec/aacenc: Move initializing DSP out of aacenc.c Andreas Rheinhardt 2024-02-28 16:18 ` [FFmpeg-devel] [PATCH 2/6] avcodec/svq1enc: Move initializing DSP out of svq1enc.c Andreas Rheinhardt 2024-02-28 16:18 ` [FFmpeg-devel] [PATCH 3/6] avcodec/vvc/vvc_intra: Move utils " Andreas Rheinhardt 2024-02-28 16:33 ` Andreas Rheinhardt 2024-02-28 16:18 ` [FFmpeg-devel] [PATCH 4/6] avcodec/vvc/vvc_mvs: Add proper header include Andreas Rheinhardt 2024-02-28 16:18 ` Andreas Rheinhardt [this message] 2024-02-28 16:18 ` [FFmpeg-devel] [PATCH 6/6] tests/checkasm: Improve included headers Andreas Rheinhardt 2024-03-01 11:35 ` [FFmpeg-devel] [PATCH 1/6] avcodec/aacenc: Move initializing DSP out of aacenc.c Andreas Rheinhardt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=AS8P250MB0744816FCB9F4CD0F69F01DD8F582@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \ --to=andreas.rheinhardt@outlook.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git