User Tools

Site Tools


notes:vulkan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:vulkan [2023/09/21 03:51] osnrnotes:vulkan [2023/09/30 19:41] (current) osnr
Line 1: Line 1:
 ===== Vulkan ===== ===== Vulkan =====
  
-need to set up without X or Wayland+Tricky -- need to set up without X or Wayland, exact process depends on your GPU hardware. 
 + 
 +Install these deps first to get them out of the way: ''sudo apt-get install libvulkan-dev libvulkan1 vulkan-tools libdrm-dev libdrm-tests flex bison python3-mako python3-setuptools libexpat1-dev libudev-dev gettext ca-certificates xz-utils zlib1g-dev pkg-config meson --no-install-recommends''
  
  
 ==== Pi 4 ==== ==== Pi 4 ====
  
-Basically follow https:%%//%%forums.libretro.com/t/retroarch-raspberry-pi-4-vulkan-without-x-howto/31164/2 except:+Basically follow [[https://forums.libretro.com/t/retroarch-raspberry-pi-4-vulkan-without-x-howto/31164|this post]] except: 
 + 
 +Don't bother installing libdrm from source, just do ''sudo apt install libdrm-dev'' as we say above
  
 Run the ''meson'' configure command for Mesa without the ''%%-Ddri-drivers=''%%'' option, which was removed in some recent version of Mesa since the guide was written: Run the ''meson'' configure command for Mesa without the ''%%-Ddri-drivers=''%%'' option, which was removed in some recent version of Mesa since the guide was written:
Line 19: Line 23:
  
 Also similar to above Pi 4 instructions. Also similar to above Pi 4 instructions.
- 
-''%%sudo apt install libdrm-dev libdrm-tests%%'' 
  
 ''%%modetest -M amdgpu%%'' to list connectors and not try the Intel integrated graphics ''%%modetest -M amdgpu%%'' to list connectors and not try the Intel integrated graphics
Line 39: Line 41:
  
 ''%%sudo chmod 666 /dev/dri/renderD129%%'' ''%%sudo chmod 666 /dev/dri/renderD129%%''
 +
 +==== Other systems ====
 +
 +Usually, you need to change the ''-Dvulkan-drivers'' and ''-Dgallium-drivers'' options depending on your GPU.
 +
 +Intel i915 (Charles): ''meson -Dllvm=disabled -Dglx=disabled -Dplatforms= -Dvulkan-drivers=intel -Dgallium-drivers=i915 -Dbuildtype=release ..''
 +
 +You might need to chmod a different ''/dev/dri'' path if no Vulkan device found.
  
 ==== Other deps ==== ==== Other deps ====
notes/vulkan.1695268309.txt.gz · Last modified: 2023/09/21 03:51 by osnr

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki