The OpenVG state tracker depends on the Gallium architecture and a working EGL implementation.
+Please refer to Mesa EGL for more information about EGL.
Building the library
-
Build Mesa3D with Gallium3D. Any build that builds Gallium3D libraries and EGL will suffice
+
Build Mesa3D with Gallium3D. Any build that builds Gallium3D libraries, EGL, and Gallium EGL drivers will suffice
cd src/gallium/state_trackers/vega; make
The last step will build libOpenVG library. You can add the libdir to LD_LIBRARY_PATH or install libOpenVG
@@ -33,12 +34,9 @@ The OpenVG state tracker depends on the Gallium architecture and a working EGL i
Sample build
A sample build looks as follows:
- make linux-x86-64-debug
- cd src/gallium/state_trackers/vega
- make
- cd ../../../..
- export LD_LIBRARY_PATH=$PWD/lib64
- export EGL_DRIVER="egl_softpipe"
+ $ ./configure --with-state-trackers=egl,vega --enable-gallium-intel
+ $ make
+ $ make install
OpenVG Demos
@@ -59,10 +57,5 @@ To run a demo:
-
Notes
-
-
EGL_DRIVER environmental variable: forces usage of a specific EGL driver. Unless you force egl_softpipe the implementation will look for a DRI hardware accelerate driver and unless you have a Gallium driver that supports it, you'll see crashes