Vulkan on LFS using intel i915

Vulkan comes in mesa. You need to build mesa with vulkan support for your video driver.

You need vulkan sdk:
wget https://vulkan.lunarg.com/sdk/home#sdk/downloadConfirm/1.0.42.2/linux/vulkansdk-linux-x86_64-1.0.42.2.run

To run vulkan sdk samples, you need DRI3 enabled.

- To test if you have dri3 enabled, you can use:
$ cat /var/log/Xorg.0.log | grep DRI3
[   939.805] (II) intel(0): direct rendering: DRI2 DRI3 enabled

If you don't have it, you need build mesa, dri3proto, xf86-video-intel and xserver.
        url = git://anongit.freedesktop.org/mesa/mesa.git
        url = git://anongit.freedesktop.org/xorg/proto/dri3proto
        url = git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
        url = git://anongit.freedesktop.org/xorg/xserver

- mesa build with dri3 and vulkan drivers
  $ ./configure CFLAGS=-O2 CXXFLAGS=-O2 --prefix=/usr --sysconfdir=/etc --enable-texture-float --enable-opengl --enable-gles1 --enable-gles2 --enable-dri --enable-dri3 --enable-glx=dri --enable-nine --enable-openvg --enable-osmesa --enable-xa --enable-gbm --enable-gallium-egl --enable-gallium-gbm --enable-glx-tls --with-egl-platforms=drm,x11 --with-gallium-drivers=i915,swrast --enable-llvm-shared-libs --with-vulkan-drivers=intel --with-dri-drivers=i915,i965

PS: I'm not sure but think you may need copy ...mesa/include/vulcan/* /usr/include/vulkan

- xf86-video-intel
  $ ./configure --prefix=/usr --enable-dri3 --disable-dga

dri3proto
  $ ./configure --prefix=/usr

- xserver
  $ ./configure --prefix=/usr --enable-dri3


And you need configure Xorg to use DRI 3:
$ cat /etc/Xorg/xorg.conf.d/20-intel.conf
Section "Device"
        Identifier "Intel Graphics"
        Driver  "intel"
        Option  "DRI"   "3"
EndSection

After it you may be able to start X with DRI3 support and use Vulkan samples.
Postar um comentário

Postagens mais visitadas