Skip to content

Instantly share code, notes, and snippets.

@digetx
Last active May 30, 2018 12:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digetx/99d62b96823bdfe2dc49dfbd372a65e6 to your computer and use it in GitHub Desktop.
Save digetx/99d62b96823bdfe2dc49dfbd372a65e6 to your computer and use it in GitHub Desktop.
Grate-driver compilation instructions
General rules:
----------------------
1. Use the master branches.
2. Install autotools and gcc.
3. Compile and install libdrm first.
4. Use the most recent mainline linux kernel or at least the most recent stable.
5. Update all libdrm / opentegra / mesa at once as there could be interdependencies, start from libdrm.
libdrm:
----------
Run the following commands:
1. `git clone https://github.com/grate-driver/libdrm.git`
2. `cd libdrm`
3. `sh autogen.sh`
4. `sh configure --prefix=/usr --enable-tegra-experimental-api --disable-freedreno --disable-vmwgfx --disable-nouveau --disable-amdgpu --disable-radeon --disable-intel --disable-vc4`
5. `make install`
opentegra:
-----------------
Run the following commands:
1. `git clone https://github.com/grate-driver/xf86-video-opentegra.git`
2. `cd xf86-video-opentegra`
3. `sh autogen.sh`
4. `sh configure --prefix=/usr`
5. `make install`
mesa:
---------
Run the following commands:
1. `git clone https://github.com/grate-driver/mesa.git`
2. `cd mesa`
3. `sh autogen.sh`
4. `sh configure --prefix=/usr --enable-dri --enable-glx --enable-shared-glapi --enable-texture-float --disable-nine --enable-debug --enable-dri3 --enable-egl --enable-gbm --enable-gles1 --enable-gles2 --enable-glx-tls --enable-valgrind=auto --enable-llvm-shared-libs --with-dri-drivers=swrast --with-gallium-drivers=swrast,tegra --with-vulkan-drivers= --with-egl-platforms=x11,drm --disable-nine --disable-llvm --disable-omx --disable-va --disable-vdpau --disable-xa --disable-xvmc --disable-gallium-osmesa`
5. `make install`
@Decatf
Copy link

Decatf commented Jul 20, 2017

Will this work with wayland at the moment?

@digetx
Copy link
Author

digetx commented Aug 2, 2017

@Decatf, no. Mesa driver is in a very early stage right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment