Closed
Bug 1215085
Opened 9 years ago
Closed 7 years ago
[Wayland] - Enable EGL on Linux
Categories
(Core :: Graphics, enhancement, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 1433081
Tracking | Status | |
---|---|---|
firefox44 | --- | affected |
People
(Reporter: stransky, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [gfx-noted])
Attachments
(2 files)
(deleted),
patch
|
jrmuizel
:
review-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #635134 +++ AFAIK GLX can't work on non-X11 displays so we need to disable it there.
Reporter | ||
Comment 1•9 years ago
|
||
Again, I wonder who is a correct reviewer here.
Attachment #8674189 -
Flags: review?(jmuizelaar)
Comment 2•9 years ago
|
||
Comment on attachment 8674189 [details] [diff] [review] patch Review of attachment 8674189 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/gl/GLContextProviderGLX.cpp @@ +79,5 @@ > + mGLXMinorVersion = 0; > + return false; > + } > +#endif > + It feels like this should be avoided by not trying initialize GLContextProviderGLX instead of having it fail.
Attachment #8674189 -
Flags: review?(jmuizelaar) → review-
Comment 3•9 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #2) > Comment on attachment 8674189 [details] [diff] [review] > patch > > Review of attachment 8674189 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: gfx/gl/GLContextProviderGLX.cpp > @@ +79,5 @@ > > + mGLXMinorVersion = 0; > > + return false; > > + } > > +#endif > > + > > It feels like this should be avoided by not trying initialize > GLContextProviderGLX instead of having it fail. Is Wayland something we know at build time, or are we supposed to support running both X and Wayland with same binary?
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3) > Is Wayland something we know at build time, or are we supposed to support > running both X and Wayland with same binary? It's just a different Gtk backend and it's switched at run time. It's possible to build for Wayland only but IMHO better to support both (and other possible non-X11 backends) in one binary.
Reporter | ||
Comment 5•9 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #2) > Comment on attachment 8674189 [details] [diff] [review] > patch > > Review of attachment 8674189 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: gfx/gl/GLContextProviderGLX.cpp > @@ +79,5 @@ > > + mGLXMinorVersion = 0; > > + return false; > > + } > > +#endif > > + > > It feels like this should be avoided by not trying initialize > GLContextProviderGLX instead of having it fail. What's the best way to do that? Fail in GLContextProviderGLX::GetGlobalContext?
Updated•9 years ago
|
Whiteboard: [gfx-noted]
Comment 6•9 years ago
|
||
So this brings up a bit of an issue. We currently only support a single GLContextProvider type per build (i.e. GLX or EGL). For now, I'd suggest switching the wayland builds to a build time configuration and moving them to use the GLContextProviderEGL. Do you know what the recommended way of dealing with GLX vs EGL with GTK is supposed to be?
Flags: needinfo?(stransky)
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #6) > Do you know what the recommended way of dealing with GLX vs EGL with GTK is > supposed to be? I asked Gtk guys and they don't have any clear recommendation here. Also the build-time configuration looks impractical - GL would be only reason to have extra binary for X11 and for Wayland.
Flags: needinfo?(stransky)
Updated•9 years ago
|
Reporter | ||
Comment 8•8 years ago
|
||
According to Bug 788319 we should use EGL everywhere. Unfortunately the --with-gl-providel=EGL param does not work right now.
Reporter | ||
Updated•8 years ago
|
Summary: [Wayland] - Disable GLX for non-X11 displays → [Wayland] - Enable EGL on Linux
Comment hidden (spam) |
Comment 10•7 years ago
|
||
(In reply to Martin Stránský from comment #8) > According to Bug 788319 we should use EGL everywhere. Unfortunately the > --with-gl-providel=EGL param does not work right now. Is this still true? What's the plan for this bug now? Bug 788319 confused me a bit here.
Depends on: linux-egl
Reporter | ||
Comment 11•7 years ago
|
||
This patch allows to build trunk with --with-gl-providel=EGL and it actually works (at least with Wayland) when sandbox is weakened - it tries to load gl libraries which is disabled by sandbox right now.
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Comment 13•7 years ago
|
||
Let's fix that at Bug 1433081
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•