b6e12dd09af856bbd8738f81194fa2ce479fc529
[libreriscv.git] / 3d_gpu / mesa.mdwn
1 # MESA Driver sponsored by NLNet
2
3 todo http://lists.libre-soc.org/pipermail/libre-soc-dev/2020-August/000246.html
4
5 # build instructions, by vivek
6
7 Sure I will add details about how to build the code, I use basically meson
8 and ninja commands,
9 My build directory located in mesa source here is my meson command to
10 configure (I know this does more work than require please add more options
11 if you find useful):
12
13 meson -Dbuildtype=debug -Dprefix=/home/vivek/install -Dvulkan-drivers=libresoc ..
14
15 and then
16
17 ninja
18 ninja install.
19
20 I also have script to set few environment variables like
21
22 export VK_ICD_FILENAMES=/home/vivek/install/share/vulkan/icd.d/libresoc_icd.x86_64.json
23 export VK_LOADER_DEBUG=warn
24 export LIBRESOC_TRACE=1
25
26 To test the code I am sing simple tests built by
27 https://github.com/GameTechDev/IntroductionToVulkan
28
29 I am also using debug build for vulkan loader if any one interested in that
30 please look at
31 https://github.com/KhronosGroup/Vulkan-Loader/blob/master/BUILD.md