Difference between revisions of "LIMA"

m (Building)
m (Building)
 
(4 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
* Clone the sources
 
* Clone the sources
 
   # git clone --depth=1 --branch 19.1 https://gitlab.freedesktop.org/mesa/mesa
 
   # git clone --depth=1 --branch 19.1 https://gitlab.freedesktop.org/mesa/mesa
 +
 +
Depending on distribution, your meson version may be outdated. You can use pip
 +
to install the latest version
 +
* Update meson
 +
  # apt install -y python3-pip
 +
  # pip3 install meson
  
 
* Configure meson
 
* Configure meson
Line 18: Line 24:
  
 
== Usage ==
 
== Usage ==
adasd
+
=== Without X ===
 +
 
 +
You can test the driver with kmscube
 +
  # apt-get install -y kmscube
 +
 +
Run and test
 +
  # kmscube
 +
  ......
 +
 
 +
=== With X ===

Latest revision as of 00:57, 29 August 2019

LIMA driver

Building

  • Install requirements
 # apt-get update
 # apt-get install -y bison g++ gcc gettext flex libdrm-dev libexpat1-dev libx11-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxdamage-dev libxrandr-dev libxshmfence-dev libxext-dev libxxf86vm-dev meson pkg-config python3-mako python3-pip python3-setuptools python3-wheel zlib1g-dev
  • Clone the sources
 # git clone --depth=1 --branch 19.1 https://gitlab.freedesktop.org/mesa/mesa

Depending on distribution, your meson version may be outdated. You can use pip to install the latest version

  • Update meson
 # apt install -y python3-pip
 # pip3 install meson
  • Configure meson
 # cd mesa
 # meson build -Dvulkan-drivers=[] -Dplatforms=drm,x11 -Ddri-drivers=[] -Dgallium-drivers=lima,kmsro
  • Build and install the sources
 # ninja -C build
 # ninja -C build install

Usage

Without X

You can test the driver with kmscube

 # apt-get install -y kmscube

Run and test

 # kmscube
 ......

With X