Closed Bug 890950 Opened 11 years ago Closed 11 years ago

Upload textures in BGRA format on OSX

Categories

(Core :: Graphics: Layers, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

Attachments

(1 file)

OSX drivers use this format internally (even with LOCAL_GL_RGBA set as the internal format), and will swizzle RGBA uploads (on the cpu for glTexSubImage2D).

It should be much faster to pretend our source data is BGRA and swizzle using shaders during drawing.
Attachment #772100 - Flags: review?(jmuizelaar)
Comment on attachment 772100 [details] [diff] [review]
Upload using BGRA

Review of attachment 772100 [details] [diff] [review]:
-----------------------------------------------------------------

r=jrmuizel in person while bugzilla and power was out.
Attachment #772100 - Flags: review?(jmuizelaar) → review+
https://hg.mozilla.org/mozilla-central/rev/46f85b38be9b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Depends on: 892467
Assignee: nobody → matt.woodrow
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: