Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This build of mesa includes all the variants we might want to use in a single package:
This package is set up so that using it does not automatically trigger any particular library to be linked. The package user is responsible for supplying the appropriate
-l
arguments depending on the desired library:-lGL -lX11
-lGLESv2 -lEGL -lgbm
-lOSMesa
LLVM is statically linked (fixes #280).
Other differences from previous packagings of mesa:
CFLAGS=-g CXXFLAGS=-g
, for debuggability.--enable-valgrind
to try to cut down on valgrind false positives.--enable-glx
(same as--enable-glx=dri
), rather than--enable-glx=gallium-xlib
, because the latter is incompatible with--enable-dri
, which we need for EGL.LD_LIBRARY_PATH
if you want to actually use the mason mesa .so's at runtime. (You probably want to do this in CI but use drivers with hardware acceleration in production.)Important learnings obtained over the course of several days of investigation:
--enable-gallium-osmesa
. The--enable-osmesa
option produces rendering artifacts in GL Native. Basically, we want to build such that we use the Gallium llvmpipe software renderer no matter what library interface we use (GLX, EGL, or OSMesa).cc @springmeyer @brunoabinader