Linux Tech Tips EP#20: Building Mesa from source with custom patches to test Raytracing performance

preview_player
Показать описание
Compiling custom Mesa with pending MR's to test Raytracing performance. The "Implement monolithic pipelines" MR seem to be a nice uplift on Raytracing performance in the games I tested.

==Time Stamps==
0:00 Intro
0:16 Test setup
0:37 Test description
0:47 Building your custom Mesa
3:35 Raytracing Benchmark Results

==Setup Notes==

Step 1. Install dependencies - use your distro's package manager

Step 2. Clone the mesa repo
mkdir -p ~/Projects
cd ~/Projects

Step 3. Add your custom patches
Download and save them into the newly created mesa folder - /home/YOURUSERNAME/Projects/mesa/

use "git apply" to apply diffs

Step 4. Create your 64-bit build
meson build64 --libdir lib64 --prefix $HOME/mesa -Dgallium-drivers=radeonsi,swrast,zink -Dvulkan-drivers=amd -Dgallium-nine=true -Dosmesa=false -Dbuildtype=release
ninja -C build64 install

Step 5. Verify build completed
cd ~/mesa && ls -la

Step 6. Using the compiled mesa binaries with a script
*If you used a different install prefix or a different lib dir above, you will need to adjust this script accordingly.

Step 6.1 Add the below to your script:
#!/bin/sh

MESA=$HOME/mesa \
LD_LIBRARY_PATH=$MESA/lib64:$MESA/lib:$LD_LIBRARY_PATH \
LIBGL_DRIVERS_PATH=$MESA/lib64/dri:$MESA/lib/dri \
exec "$@"

Step 7. Using the new Mesa driver for testing

Lutris
- Configure - System Options - Vulkan ICD loader - Unspecified
- save and exit, and then:

Heroic

or if you have a heroic alias defined

Steam
Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial! You wouldn't happen to know how turn that git into deb packages would you?

ToallpointsWest
Автор

lol the monolithic pipeline stuff got merged before this video was uploaded

etaashmathamsetty
welcome to shbcf.ru