From: "Rémi Denis-Courmont" <remi@remlab.net>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] lavc/vc1dsp: R-V V inv_trans
Date: Mon, 04 Dec 2023 17:15:41 +0200
Message-ID: <3488362.4jH3KRUo1u@basile.remlab.net> (raw)
In-Reply-To: <CAEa-L+twacRyWofx7BEKZ4X8EKxiO45MWw8Ry2zTqLYDMjVwdA@mail.gmail.com>
Le maanantaina 4. joulukuuta 2023, 10.48.56 EET flow gg a écrit :
> > Probably missing VLENB checks.
>
> Changed.
>
> > You can multiply by 3, 5 or 9 with shift-and-add. By 12 with shift-and-add
> > then shift, and by 17 with shift then add. You don't need multiplications.
>
> Changed.
>
> > Do you really need to splat? Can't .vx or .wx be used instead?
>
> Okay, for example in ff_vc1_inv_trans_8x8_dc_rvv
>
> + vsetvli zero, t0, e8, m2, ta, ma
> + vwaddu.vx v4, v0, zero
> + vsetvli zero, t0, e16, m4, ta, ma
> + vadd.vx v4, v4, t2
> - vsetvli zero, t0, e16, m4, ta, ma
> - vmv.v.x v4, t2
> - vsetvli zero, t0, e8, m2, ta, ma
> - vwaddu.wv v4, v4, v0
>
> But the speed has slowed down slightly on the c910,
> I'm not sure if I should modify it.
OK, unfortunately, there is no widening addition with wide scalar operand. But
you can do zero-extension then addition here. In the end, I doubt that you can
reasonably optimise whilst working with a C910-based board. This function
deviates too much on non-conformant hardware.
--
レミ・デニ-クールモン
http://www.remlab.net/
_______________________________________________
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:[~2023-12-04 15:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-03 14:40 flow gg
2023-12-03 17:17 ` Rémi Denis-Courmont
2023-12-04 8:48 ` flow gg
2023-12-04 15:15 ` Rémi Denis-Courmont [this message]
2023-12-04 21:14 ` flow gg
2023-12-05 5:25 ` flow gg
2023-12-05 16:41 ` Rémi Denis-Courmont
2023-12-05 19:25 ` flow gg
2023-12-05 20:10 ` Rémi Denis-Courmont
2023-12-05 23:50 ` flow gg
2023-12-06 2:23 ` flow gg
2023-12-08 7:31 ` flow gg
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=3488362.4jH3KRUo1u@basile.remlab.net \
--to=remi@remlab.net \
--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