Repository navigation
Add support of OSMesa (Gallium) headless backend - #6899
Conversation
|
@brunoabinader, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jfirebaugh, @kkaefer and @tmpsantos to be potential reviewers. |
91078d4 to
4940f1b
Compare
b979d9b to
13348b2
Compare
|
Also missing:
|
8e06e5e to
a7470f6
Compare
|
Still working on a few things to make sure |
a10319b to
dd445bc
Compare
c52ca82 to
b657dab
Compare
|
Tracking gdb hang when attempting to run |
80e27d8 to
23db25b
Compare
|
This is now ready for review:
Please review @jfirebaugh @kkaefer @mikemorris. |
23db25b to
1c54237
Compare
There was a problem hiding this comment.
Are these X packages still necessary?
There was a problem hiding this comment.
Yes - these are needed for building the GLFW-based demo application.
There was a problem hiding this comment.
Is this cleanup necessary if glContext == nullptr?
There was a problem hiding this comment.
Should we build a Mesa 13 binary that can be used here as well?
There was a problem hiding this comment.
It is possible, though we'd need a separate mason version e.g. mesa-13.0.0-glx for that, to not mess with the OSMesa-based mesa 13.0.0 we're using. If wanted, I can make this happen on a separate PR.
There was a problem hiding this comment.
BTW, I'm planning on a posterior PR to rework our Travis workflow e.g. the clang-tidy check shouldn't need gcc nor LLVM libs. Having a GLX-based mesa 13.0.0 could be part of that.
Enable OSMesa backend via WITH_OSMESA=1 envvar. OSMesa backend uses Gallium OSMesa implementation, which uses LLVMpipe as default driver.
1c54237 to
9b46ccf
Compare
9b46ccf to
6d1b77d
Compare
As per #4498 (comment) - using OSMesa as headless backend fixes the rendering artifacts that were causing us to ignore 42 render tests. This matches 1:1 with macOS results, so we can safely unignore them.
Follow-up to work started by @mikemorris in #4638.
Fixes #1555 and #4498.
Caveats:
.travis.ymlafter this, as e.g. the node build won't need X library dependencies anymore.Default backends on Linux:
mbgl-glfwandmbgl-rendermbgl-node,mbgl-testandmbgl-benchmark