Closed Bug 1319389 Opened 8 years ago Closed 8 years ago

Skia assumes powerpc is big endian

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox52 --- fixed
firefox53 --- fixed

People

(Reporter: glandium, Assigned: glandium)

Details

(Whiteboard: [skia-upstream])

Attachments

(1 file)

Powerpc can run as little-endian and there are now ports that default to this mode. But building Skia assumes powerpc is big-endian, and the build fails with the message "Skia gpu currently assumes little endian".
Whiteboard: [skia-upstream]
I'm not sure how this is supposed to be submitted upstream considering their CLA policy. We have a corporate CLA don't we? How do we use it?
Attachment #8813136 - Flags: review?(jmuizelaar) → review?(lsalzman)
Comment on attachment 8813136 [details]
Bug 1319389 - Generically set SK_CPU_[BL]ENDIAN based on __BYTE_ORDER__ when available.

https://reviewboard.mozilla.org/r/94660/#review96154
Attachment #8813136 - Flags: review?(lsalzman) → review+
Should I add a patch file somewhere before landing this?
(In reply to Mike Hommey [:glandium] from comment #5)
> Should I add a patch file somewhere before landing this?

I already got this upstreamed just now, so it's clear to land. No patch funniness required.
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/2a1e74ffb4fe
Generically set SK_CPU_[BL]ENDIAN based on __BYTE_ORDER__ when available. r=lsalzman
https://hg.mozilla.org/mozilla-central/rev/2a1e74ffb4fe
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Comment on attachment 8813136 [details]
Bug 1319389 - Generically set SK_CPU_[BL]ENDIAN based on __BYTE_ORDER__ when available.

Approval Request Comment
[Feature/Bug causing the regression]: regression from some skia update
[User impact if declined]: Build failure on little-endian powerpc. I want to avoid having to carry this patch in Debian for the esr52 cycle.
[Needs manual test from QE? If yes, steps to reproduce]: no
[List of other uplifts needed for the feature/fix]: N/A
[Is the change risky?]: no
[Why is the change risky/not risky?]: NPOTB
[String changes made/needed]: none
Attachment #8813136 - Flags: approval-mozilla-beta?
Comment on attachment 8813136 [details]
Bug 1319389 - Generically set SK_CPU_[BL]ENDIAN based on __BYTE_ORDER__ when available.

skia endian detection fix, beta52+
Attachment #8813136 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Setting qe-verify- per Comment 9.
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: