Skip to content

Webrender: WebGL fast path does not work on Mac #11138

Closed

Description

@cbrewster

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.

Activity

  1. added
    P-mac
    A-content/webgl
    on May 11, 2016
  2. metajack commented on May 11, 2016

    @metajack
    Collaborator
  3. emilio commented on May 12, 2016

    @emilio
    Member

    This is a dupe of #10376, so one of them should be closed.

  4. cbrewster commented on Jul 12, 2016

    @cbrewster
    ContributorAuthor

    Can we close this? #11744

  5. emilio commented on Jul 12, 2016

    @emilio
    Member

    Sort of, I'd prefer to leave this open until we make the fast path work.

  6. changed the title [-]Webrender: WebGL does not work on Mac[/-] [+]Webrender: WebGL fast path does not work on Mac[/+] on Jul 12, 2016
  7. nox commented on Oct 1, 2017

    @nox
    Contributor

    @emilio Can we close this now?

  8. jdm commented on Oct 1, 2017

    @jdm
    Member

    I'm pretty sure we still don't use a fast path on macOS.

  9. self-assigned this
    on Mar 21, 2018
  10. nox commented on Mar 21, 2018

    @nox
    Contributor

    @emilio Could you describe what needs to be done to get this?

  11. emilio commented on Mar 21, 2018

    @emilio
    Member

    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.

  12. added a commit that references this issue on Jun 11, 2019
    d05a414
  13. added a commit that references this issue on Jun 24, 2019
    97bc820
  14. jdm commented on Nov 20, 2019

    @jdm
    Member

    This was fixed by #24482.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/webglA-webrenderP-mac

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions