Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext
@ 2024-03-02 21:12 Kieran Kunhya
  2024-03-02 21:20 ` Andreas Rheinhardt
  2024-03-02 23:31 ` Henrik Gramner via ffmpeg-devel
  0 siblings, 2 replies; 5+ messages in thread
From: Kieran Kunhya @ 2024-03-02 21:12 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

[-- Attachment #1: Type: text/plain, Size: 203 bytes --]

$subj

Old:
pred8x8_horizontal_8_c: 6.8
pred8x8_horizontal_8_mmxext: 8.6
pred8x8_horizontal_8_ssse3: 4.8

New:
pred8x8_horizontal_8_c: 9.2
pred8x8_horizontal_8_sse2: 12.2
pred8x8_horizontal_8_ssse3: 4.9

[-- Attachment #2: 0001-libavcodec-h264pred-Remove-pred8x8_horizontal_8_mmxe.patch --]
[-- Type: application/octet-stream, Size: 2982 bytes --]

[-- Attachment #3: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext
  2024-03-02 21:12 [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext Kieran Kunhya
@ 2024-03-02 21:20 ` Andreas Rheinhardt
  2024-03-02 21:31   ` James Almer
  2024-03-02 21:37   ` Kieran Kunhya
  2024-03-02 23:31 ` Henrik Gramner via ffmpeg-devel
  1 sibling, 2 replies; 5+ messages in thread
From: Andreas Rheinhardt @ 2024-03-02 21:20 UTC (permalink / raw)
  To: ffmpeg-devel

Kieran Kunhya:
> $subj
> 
> Old:
> pred8x8_horizontal_8_c: 6.8
> pred8x8_horizontal_8_mmxext: 8.6
> pred8x8_horizontal_8_ssse3: 4.8
> 
> New:
> pred8x8_horizontal_8_c: 9.2
> pred8x8_horizontal_8_sse2: 12.2
> pred8x8_horizontal_8_ssse3: 4.9
> 

You do realize that the SSE2 version is worse than the mmxext version?
In fact, worse than the C version. Given that both the mmxext and sse2
versions are worse than C, there is no point in having the mmxext one at
all and no need for an SSE2 replacement.

- Andreas

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext
  2024-03-02 21:20 ` Andreas Rheinhardt
@ 2024-03-02 21:31   ` James Almer
  2024-03-02 21:37   ` Kieran Kunhya
  1 sibling, 0 replies; 5+ messages in thread
From: James Almer @ 2024-03-02 21:31 UTC (permalink / raw)
  To: ffmpeg-devel

On 3/2/2024 6:20 PM, Andreas Rheinhardt wrote:
> Kieran Kunhya:
>> $subj
>>
>> Old:
>> pred8x8_horizontal_8_c: 6.8
>> pred8x8_horizontal_8_mmxext: 8.6
>> pred8x8_horizontal_8_ssse3: 4.8
>>
>> New:
>> pred8x8_horizontal_8_c: 9.2
>> pred8x8_horizontal_8_sse2: 12.2
>> pred8x8_horizontal_8_ssse3: 4.9
>>
> 
> You do realize that the SSE2 version is worse than the mmxext version?
> In fact, worse than the C version. Given that both the mmxext and sse2
> versions are worse than C, there is no point in having the mmxext one at
> all and no need for an SSE2 replacement.

The SSSE3 version needs to be updated to use xmm registers either way.

> 
> - Andreas
> 
> _______________________________________________
> 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".
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext
  2024-03-02 21:20 ` Andreas Rheinhardt
  2024-03-02 21:31   ` James Almer
@ 2024-03-02 21:37   ` Kieran Kunhya
  1 sibling, 0 replies; 5+ messages in thread
From: Kieran Kunhya @ 2024-03-02 21:37 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

On Sat, 2 Mar 2024 at 21:18, Andreas Rheinhardt <
andreas.rheinhardt@outlook.com> wrote:

> Kieran Kunhya:
> > $subj
> >
> > Old:
> > pred8x8_horizontal_8_c: 6.8
> > pred8x8_horizontal_8_mmxext: 8.6
> > pred8x8_horizontal_8_ssse3: 4.8
> >
> > New:
> > pred8x8_horizontal_8_c: 9.2
> > pred8x8_horizontal_8_sse2: 12.2
> > pred8x8_horizontal_8_ssse3: 4.9
> >
>
> You do realize that the SSE2 version is worse than the mmxext version?
> In fact, worse than the C version. Given that both the mmxext and sse2
> versions are worse than C, there is no point in having the mmxext one at
> all and no need for an SSE2 replacement.
>
> - Andreas
>

On my machine, others may have different speeds.

Kieran
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext
  2024-03-02 21:12 [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext Kieran Kunhya
  2024-03-02 21:20 ` Andreas Rheinhardt
@ 2024-03-02 23:31 ` Henrik Gramner via ffmpeg-devel
  1 sibling, 0 replies; 5+ messages in thread
From: Henrik Gramner via ffmpeg-devel @ 2024-03-02 23:31 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Henrik Gramner

On Sat, Mar 2, 2024 at 10:13 PM Kieran Kunhya <kierank@obe.tv> wrote:
>      SPLATB_LOAD m0, r0+r1*0-1, m2
>      SPLATB_LOAD m1, r0+r1*1-1, m2

This adds an extra unnecessary shuffle in the SSE2 code as it splats
to a full register. The easiest way of fixing it would probably be to
unroll the macro and manually get rid of it.

Although on x86-64 it might be faster to do a 1->8 byte splat using a
GPR multiply with 0x0101010101010101.
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-02 23:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-02 21:12 [FFmpeg-devel] [PATCH] libavcodec/h264pred: Remove pred8x8_horizontal_8_mmxext Kieran Kunhya
2024-03-02 21:20 ` Andreas Rheinhardt
2024-03-02 21:31   ` James Almer
2024-03-02 21:37   ` Kieran Kunhya
2024-03-02 23:31 ` Henrik Gramner via ffmpeg-devel

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