Closed
Bug 488851
Opened 16 years ago
Closed 14 years ago
Enable SSE2 for pixman
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b5
People
(Reporter: m_kato, Assigned: m_kato)
References
Details
(Keywords: perf)
Attachments
(2 files, 3 obsolete files)
1.16 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
1.13 KB,
patch
|
jrmuizel
:
review+
joe
:
approval2.0+
|
Details | Diff | Splinter Review |
Due to bug 410509, SSE2 optimization for pixman is disable on GCC platform.
But this bug was already fixed at Oct 2008. So, we should enable SSE2 on GCC platform, too.
Assignee | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
We had something like this before in bug 461202, but it got backed out. We should try again.
Assignee | ||
Comment 3•16 years ago
|
||
Tested on Linux x86/x86_64 and MacOS X (gcc platform).
Attachment #373327 -
Attachment is obsolete: true
Attachment #373608 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 4•16 years ago
|
||
This patch causes that gcc may generate SSE2 code for pixman-mmx.c.
So I have to consider this situation, so I will send a review with new patch...
Assignee | ||
Updated•16 years ago
|
Attachment #373608 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 5•16 years ago
|
||
Attachment #373608 -
Attachment is obsolete: true
Attachment #376411 -
Flags: review?(jmuizelaar)
Comment 6•16 years ago
|
||
Comment on attachment 376411 [details] [diff] [review]
patch v2
>diff -r ab664753cc72 gfx/cairo/libpixman/src/Makefile.in
>--- a/gfx/cairo/libpixman/src/Makefile.in Fri May 08 13:46:36 2009 +0200
>+++ b/gfx/cairo/libpixman/src/Makefile.in Sat May 09 00:08:59 2009 +0900
>@@ -69,6 +69,7 @@
> USE_MMX=1
> USE_SSE2=1
> MMX_CFLAGS=
>+SSE2_CFLAGS=
> endif
> endif
> ifeq (arm,$(findstring arm,$(OS_TEST)))
>@@ -81,11 +82,11 @@
> ifeq (86,$(findstring 86,$(OS_TEST)))
> USE_MMX=1
> MMX_CFLAGS=-mmmx -Winline
>-# See bug 410509 why we can't use SSE2 yet on linux
>-#USE_SSE2=1
>-#MMX_CFLAGS+=-msse -msse2
>+USE_SSE2=1
>+SSE2_CFLAGS=-msse2 -Winline
> ifneq ($(MOZ_WIDGET_TOOLKIT),os2)
> MMX_CFLAGS+=--param inline-unit-growth=10000 --param large-function-growth=10000
>+SSE2_CFLAGS+=--param inline-unit-growth=10000 --param large-function-growth=10000
These lines should be vertically aligned like:
MMX_CFLAGS +=--param inline-unit-growth=10000 --param large-function-growth=10000
SSE2_CFLAGS+=--param inline-unit-growth=10000 --param large-function-growth=10000
Other than that, it looks good to me.
Attachment #376411 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 7•16 years ago
|
||
backout checkin.
But no symbols set up on Linux leak test. I cannot analyze where is failure due to no stack.
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1242397437.1242398983.16275.gz
I will investigate this again.
Assignee | ||
Comment 8•16 years ago
|
||
segfault in fbcomposeSetupSSE2. Maybe, it is by alignment access.
Assignee | ||
Comment 9•15 years ago
|
||
Assignee | ||
Comment 10•15 years ago
|
||
Attachment #376411 -
Attachment is obsolete: true
Attachment #429483 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
Attachment #376411 -
Attachment is obsolete: false
Assignee | ||
Comment 11•15 years ago
|
||
Comment on attachment 432415 [details] [diff] [review]
patch v4
old GCC such as 4.1 doesn't support align arg pointer. If it is old, don't compile SSE2 code.
Attachment #432415 -
Flags: review?(jmuizelaar)
Updated•15 years ago
|
Attachment #432415 -
Flags: review?(jmuizelaar) → review+
Comment 12•14 years ago
|
||
Looks like this was landed (c4b8a7e21ec9) and backed out (8cf7bc6629a7). What's its current status?
Assignee | ||
Comment 13•14 years ago
|
||
(In reply to comment #12)
> Looks like this was landed (c4b8a7e21ec9) and backed out (8cf7bc6629a7).
> What's its current status?
Ahh, I forgot pushing this!. 8cf7bc6629a7 was gcc 4.1.x bug that past tinderbox used. New patch checks gcc really has alignment support.
Also, current tinderbox is gcc4.3 or 4.4.
Assignee | ||
Updated•14 years ago
|
Attachment #432415 -
Flags: approval2.0?
Comment 14•14 years ago
|
||
Comment on attachment 432415 [details] [diff] [review]
patch v4
Very short leash on this one - push it, but if it bounces, it's out.
Attachment #432415 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 15•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Target Milestone: --- → mozilla2.0b5
You need to log in
before you can comment on or make changes to this bug.
Description
•