You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webrender: WebGL fast path does not work on Mac #11138
On mac webrender uses OpenGL 3.2 Core.
The WebGL spec conforms to the OpenGL ES 2.0 API.
This causes an incompatibility and breaks webgl on mac when using webrender.
servo/surfman#82 contains most of the details, I think we need to emulate a compat context (what WebGL wants) but using a core context, so that resources can be shared with WR.
The alternative, I think, is using shared textures (using IOSurface on Mac) as the backing storage for the WebGL stuff, and teach WR about those. WR probably knows or has a hook to interact with these for Gecko I suspect.
I'm not sure which of the two solutions is the right long-term architecture (maybe none?), I'd probably talk with @jdashg (jgilbert on IRC), about that, I don't know all the trade-offs and pitfalls, and I don't know if WebGL 2 would change those.
Activity
metajack commentedon May 11, 2016
cc @glennw @pcwalton
emilio commentedon May 12, 2016
This is a dupe of #10376, so one of them should be closed.
cbrewster commentedon Jul 12, 2016
Can we close this? #11744
emilio commentedon Jul 12, 2016
Sort of, I'd prefer to leave this open until we make the fast path work.
[-]Webrender: WebGL does not work on Mac[/-][+]Webrender: WebGL fast path does not work on Mac[/+]nox commentedon Oct 1, 2017
@emilio Can we close this now?
jdm commentedon Oct 1, 2017
I'm pretty sure we still don't use a fast path on macOS.
nox commentedon Mar 21, 2018
@emilio Could you describe what needs to be done to get this?
emilio commentedon Mar 21, 2018
servo/surfman#82 contains most of the details, I think we need to emulate a compat context (what WebGL wants) but using a core context, so that resources can be shared with WR.
The alternative, I think, is using shared textures (using
IOSurfaceon Mac) as the backing storage for the WebGL stuff, and teach WR about those. WR probably knows or has a hook to interact with these for Gecko I suspect.I'm not sure which of the two solutions is the right long-term architecture (maybe none?), I'd probably talk with @jdashg (
jgilberton IRC), about that, I don't know all the trade-offs and pitfalls, and I don't know if WebGL 2 would change those.Auto merge of #23509 - szeged:texture-sharing-iosurface, r=<try>
Auto merge of #23509 - szeged:texture-sharing-iosurface, r=<try>
jdm commentedon Nov 20, 2019
This was fixed by #24482.