[X11] Initial EGL runtime support
Categories
(Core :: Graphics, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: rmader, Assigned: rmader)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Implement initial EGL on X11 support.
Assignee | ||
Comment 1•5 years ago
|
||
This add initial support for EGL on X11, enabled by setting the
MOZ_X11_EGL
env variable. It allows running the Webrender
and OpenGL compositors.
Note that that there are several things missing yet:
- no GPU process support
- no pixmap sharing support
- hard-coded to use 32bit visuals
- it still uses GLX for several things like VSync, glxtest etc.
It includes some cleanups, mostly in order to decouple the X11
and Wayland implementations a bit more.
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D76417
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Turns out things are easier than expected and we don't need pixmaps for the GPU process - so that works now, too.
Assignee | ||
Comment 4•5 years ago
|
||
Jeff, I think the revision is in a good shape for a review/landing and I'd love to get some feedback if the general approach looks good to you. So if you find time, I'd highly appreciate if you have a look :)
Assignee | ||
Comment 5•5 years ago
|
||
Found a hopefully acceptable solution for the color depth problem, trying to keep X11 specific things out of the EGL provider. This makes the EGL implementation mostly complete - pixmaps are missing, but we don't seem to use them by default (and probably shouldn't), and we still use GLX for vsync and glxtest (which shouldn't be problematic as long as we don't want to remove GLX support).
Comment 6•5 years ago
|
||
Thanks a log, I'm going to use your patch as a template to implement Bug 1619523.
Assignee | ||
Comment 7•5 years ago
|
||
Jan: I think I finally managed to make a try push (https://treeherder.mozilla.org/#/jobs?repo=try&revision=992d60ba9d8167a0f5de0421e4455decae405609) - I don't quite understand where it should be possible to download it though. If it's possible, mind having a look if partial damage works on you nvidia gpu?
p.s.: try server and git doesn't seem to work :/
Comment 8•5 years ago
|
||
I don't quite understand where it should be possible to download it though.
Linux x64 opt > B > Job Details > target.tar.bz2
or
$ pip3 install --upgrade mozregression
$ MOZ_X11_EGL=1 ~/.local/bin/mozregression --repo try --launch 992d60ba9d8167a0f5de0421e4455decae405609 --pref gfx.webrender.all:true gfx.webrender.max-partial-present-rects:-1 -a about:support
Assignee | ||
Comment 9•5 years ago
|
||
Ah thanks, good to know! So unfortunately the build also suffers from bug 1648872 on Wayland - probably the same applies on X11 :(
Comment 10•5 years ago
|
||
Robert, if you don't mind I can take care of this one as it's needed for Bug 1619523.
Assignee | ||
Comment 11•5 years ago
|
||
(In reply to Martin Stránský [:stransky] from comment #10)
Robert, if you don't mind I can take care of this one as it's needed for Bug 1619523.
Sure, thanks!
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
Comment 15•5 years ago
|
||
(In reply to Robert Mader [:rmader] from comment #7)
mind having a look if partial damage works on you nvidia gpu?
It works (bug 1625070 comment 30), but is blocked by bug 1650583.
Description
•