Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omnibus mesa 13.0.3 #324

Merged
merged 1 commit into from
Jan 20, 2017
Merged

Omnibus mesa 13.0.3 #324

merged 1 commit into from
Jan 20, 2017

Conversation

jfirebaugh
Copy link
Contributor

@jfirebaugh jfirebaugh commented Jan 20, 2017

This build of mesa includes all the variants we might want to use in a single package:

  • libGL (GLX, DRI, and Gallium LLVM based implementation)
  • libEGL + libGLEs (EGL, X11, DRI, and Gallium LLVM based implementation)
  • libOSMesa (Gallium LLVM based implementation)

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:

  • For GLX: -lGL -lX11
  • For EGL: -lGLESv2 -lEGL -lgbm
  • For OSMesa: -lOSMesa

LLVM is statically linked (fixes #280).

Other differences from previous packagings of mesa:

  • It's built with CFLAGS=-g CXXFLAGS=-g, for debuggability.
  • It's built with --enable-valgrind to try to cut down on valgrind false positives.
  • It's built with --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.
  • Building with it won't add the mason mesa lib directory to the built output's rpath. You'll need to set 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:

cc @springmeyer @brunoabinader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revisiting mesa package
1 participant