Closed
Bug 1142056
Opened 9 years ago
Closed 8 years ago
Skia does not build on arm64 (aarch64)
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: stransky, Assigned: m_kato)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(3 files, 1 obsolete file)
828 bytes,
patch
|
gw280
:
review+
|
Details | Diff | Splinter Review |
2.92 KB,
patch
|
gw280
:
review+
|
Details | Diff | Splinter Review |
58 bytes,
text/x-review-board-request
|
gw280
:
review+
|
Details |
Skia does not build on arm64 (aarch64) although upstream Skia may have this support already.
Updated•9 years ago
|
Whiteboard: [gfx-noted]
Comment 1•9 years ago
|
||
As Firefox failed to build in Fedora I took a look at upstream and made that fix based on their commits. But proper solution would be update of Skia to latest version.
Updated•9 years ago
|
Attachment #8587220 -
Flags: review?(jmuizelaar)
Updated•9 years ago
|
Attachment #8587220 -
Flags: review?(jmuizelaar) → review?(gwright)
Comment 2•9 years ago
|
||
Comment on attachment 8587220 [details] [diff] [review] Fix used for firefox 37/38b1 Review of attachment 8587220 [details] [diff] [review]: ----------------------------------------------------------------- r+ conditional upon confirmation of an upstream change, please ensure the upstream change is referenced in the commit message.
Attachment #8587220 -
Flags: review?(gwright) → review+
Assignee | ||
Comment 3•9 years ago
|
||
This change is included in the following changeset. https://skia.googlesource.com/skia/+/b79ff56de23fef680ae7187040f2d6a9516b553d
Comment 4•9 years ago
|
||
Now that the Skia update has landed, can you confirm if this has been resolved?
Flags: needinfo?(stransky)
Assignee | ||
Comment 5•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → m_kato
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8700920 [details] [diff] [review] Part 1. Add aarch64 configuration to skia's moz.build When building for aarch64, some files are missing.
Attachment #8700920 -
Flags: review?(gwright)
Reporter | ||
Comment 7•8 years ago
|
||
I can confirm that when the fix hits stable release - Fedora does not build nightly on aarch64 and I don't have such HW handy. I'll watch this and post here.
Flags: needinfo?(stransky)
Comment 8•8 years ago
|
||
Comment on attachment 8700920 [details] [diff] [review] Part 1. Add aarch64 configuration to skia's moz.build Review of attachment 8700920 [details] [diff] [review]: ----------------------------------------------------------------- This looks fine to me, providing it builds.
Attachment #8700920 -
Flags: review?(gwright) → review+
Assignee | ||
Comment 9•8 years ago
|
||
Ah, I forget landing this. So after rebasing this, I will handle this again.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 12•8 years ago
|
||
mozreview-review |
Comment on attachment 8783857 [details] Bug 1142056 - Part 2. Enable skia on aarch64 as default. https://reviewboard.mozilla.org/r/73526/#review71928
Attachment #8783857 -
Flags: review?(mh+mozilla) → review+
Comment 13•8 years ago
|
||
mozreview-review |
Comment on attachment 8783856 [details] Bug 1142056 - Part 1. Add aarch64 configuration on Skia's moz.build. https://reviewboard.mozilla.org/r/73524/#review71476 ::: gfx/skia/generate_mozbuild.py:435 (Diff revision 1) > write_sources(f, sources['intel'], 4) > > - f.write("elif CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_CC']:\n") > + f.write("elif CONFIG['CPU_ARCH'] in ('arm', 'aarch64') and CONFIG['GNU_CC']:\n") > write_sources(f, sources['arm'], 4) > > - f.write(" if CONFIG['BUILD_ARM_NEON']:\n") > + f.write(" if CONFIG['CPU_ARCH'] == 'aarch64':\n") Why isn't BUILD_ARM_NEON defined on aarch64? This should probably be enabled here: http://searchfox.org/mozilla-central/source/build/autoconf/arch.m4#204 ::: gfx/skia/generate_mozbuild.py:437 (Diff revision 1) > - f.write("elif CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_CC']:\n") > + f.write("elif CONFIG['CPU_ARCH'] in ('arm', 'aarch64') and CONFIG['GNU_CC']:\n") > write_sources(f, sources['arm'], 4) > > - f.write(" if CONFIG['BUILD_ARM_NEON']:\n") > + f.write(" if CONFIG['CPU_ARCH'] == 'aarch64':\n") > + write_sources(f, sources['neon'], 8) > + f.write(" elif CONFIG['BUILD_ARM_NEON']:\n") It seems like we should ensure that BUILD_ARM_NEON is defined on aarch64? It looks like we only check for NEON on "arm"; I suspect we need to add aarch64 to this: http://searchfox.org/mozilla-central/source/build/autoconf/arch.m4# glandium, what do you think? ::: gfx/skia/moz.build:531 (Diff revision 1) > 'skia/src/opts/SkBlitMask_opts_arm.cpp', > ] > SOURCES += [ > 'skia/src/opts/SkBlitRow_opts_arm.cpp', > ] > - if CONFIG['BUILD_ARM_NEON']: > + if CONFIG['CPU_ARCH'] == 'aarch64': Same issue here re. BUILD_ARM_NEON.
Attachment #8783856 -
Flags: review?(gwright) → review-
Comment 14•8 years ago
|
||
Oops, I reviewed this a while back but forgot to hit publish. Anyway, ignore the duplicate review comment :)
Assignee | ||
Comment 15•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8783856 [details] Bug 1142056 - Part 1. Add aarch64 configuration on Skia's moz.build. https://reviewboard.mozilla.org/r/73524/#review71476 > Why isn't BUILD_ARM_NEON defined on aarch64? This should probably be enabled here: http://searchfox.org/mozilla-central/source/build/autoconf/arch.m4#204 We don't set BUILD_ARM_NEON on aarch64 now. Some NEON code with BUILD_ARM_NEON use inline assembler, but assembler syntax of arm32 and arm64 isn't compatible.
Assignee | ||
Comment 16•8 years ago
|
||
Although I ask glandium to add BUILD_ARM_NEON to aarch64, this is his comment. From bug 1303952 comment #10. > Which leaves us with the NEON assembly case, and I think that should be handled separately than by setting BUILD_ARM_NEON > and/or HAVE_ARM_NEON. :gw280, could you reconsider review for Part 1 patch since there is a reason that we don't add BUILD_ARM_NEON to aarch64?
Flags: needinfo?(gwright)
Updated•8 years ago
|
Flags: needinfo?(gwright)
Attachment #8783856 -
Flags: review- → review+
Assignee | ||
Comment 17•8 years ago
|
||
part 2 is unnecessary by another changes (bug 1137305)
Assignee | ||
Updated•8 years ago
|
Attachment #8783857 -
Attachment is obsolete: true
Comment 18•8 years ago
|
||
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/mozilla-inbound/rev/5bab8ab8cd03 Add aarch64 configuration on Skia's moz.build. r=gw280
Comment 19•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5bab8ab8cd03
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•