Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Add support of OSMesa (Gallium) headless backend - #6899

Merged
brunoabinader merged 5 commits into
masterfrom
osmesa-v2
Nov 4, 2016
Merged

brunoabinader merged 5 commits into
masterfrom
osmesa-v2

Conversation

@brunoabinader

Copy link
Copy Markdown
Contributor

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:

  • We'll need some ❤️ in our .travis.yml after this, as e.g. the node build won't need X library dependencies anymore.
  • EGL support to be added in a following PR.

Default backends on Linux:

  • GLX: mbgl-glfw and mbgl-render
  • OSMesa: mbgl-node, mbgl-test and mbgl-benchmark

@brunoabinader brunoabinader added build tests Node.js node-mapbox-gl-native labels Nov 3, 2016
@mention-bot

Copy link
Copy Markdown

@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.

@brunoabinader

Copy link
Copy Markdown
Contributor Author

Also missing:

  • Remove render test ignores - to be properly reviewed on a following PR.

@brunoabinader
brunoabinader force-pushed the osmesa-v2 branch 3 times, most recently from 8e06e5e to a7470f6 Compare November 4, 2016 00:16
@brunoabinader brunoabinader added ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold and removed ✓ ready for review labels Nov 4, 2016
@brunoabinader

Copy link
Copy Markdown
Contributor Author

Still working on a few things to make sure mesa mason package works in both Ubuntu Trusty and Xenial (-cxx11abi).

@brunoabinader
brunoabinader force-pushed the osmesa-v2 branch 3 times, most recently from a10319b to dd445bc Compare November 4, 2016 12:35
@brunoabinader

Copy link
Copy Markdown
Contributor Author

Extracted 29f764b from fix-symbol-clipping branch to satisfy updated symbol-features-in/pitched-screen query test results.

Fixes #1555 and #4498.

Also fixes #3175, #1600 and #4593.

@brunoabinader

Copy link
Copy Markdown
Contributor Author

Tracking gdb hang when attempting to run make run-test with OSMesa backend in #6918.

@brunoabinader
brunoabinader force-pushed the osmesa-v2 branch 3 times, most recently from 80e27d8 to 23db25b Compare November 4, 2016 15:07
@brunoabinader brunoabinader added ✓ ready for review and removed ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold labels Nov 4, 2016
@brunoabinader

Copy link
Copy Markdown
Contributor Author

This is now ready for review:

Please review @jfirebaugh @kkaefer @mikemorris.

Comment thread .travis.yml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these X packages still necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - these are needed for building the GLFW-based demo application.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this cleanup necessary if glContext == nullptr?

Comment thread scripts/travis_setup.sh Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we build a Mesa 13 binary that can be used here as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

build Node.js node-mapbox-gl-native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

headless tests on travis don't antialias fills

4 participants