This issue also affects other big endian architectures, like sparc64. It's interesting to note that a similar problem turned up 5 years ago and was fixed by simply disabling skia GPU rendering on big endian architectures: https://bugzilla.mozilla.org/show_bug.cgi?id=849253
Curious that this lack of compatibility came back in FF59+. Does your patch still work with FF61?