Created
November 10, 2021 15:48
-
-
Save kallestrop/0d1e72b35891667ce706c9c93a907efe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Do not execute this file in your shell, instead "source" it using: | |
# . ~/enable-new-mesa-opt.source | |
# or | |
# source ~/enable-new-mesa-opt.source | |
# | |
# This will have effects only once in the current shell. It will not apply to | |
# other shells, terminals, users, whole desktop, other running programs, or once | |
# you close this shell, logout, reboot, etc. It is temporary. | |
# | |
# If you want you get remove eventually. It will be regenerated every time you | |
# run "mesa-build.sh" script to build new Mesa. | |
echo "Warning: Will remove existing LD_LIBRARY_PATH." >&2 | |
export LD_LIBRARY_PATH="/home/user/mesa-git/installdir/build-amd64-opt/install/lib:/home/user/mesa-git/installdir/build-i386-opt/install/lib:/home/user/mesa-git/installdir/build-amd64-opt/install/lib/vdpau:/home/user/mesa-git/installdir/build-i386-opt/install/lib/vdpau" | |
export LIBGL_DRIVERS_PATH="/home/user/mesa-git/installdir/build-amd64-opt/install/lib/dri:/home/user/mesa-git/installdir/build-i386-opt/install/lib/dri" | |
export VK_LAYER_PATH="/home/user/mesa-git/installdir/build-amd64-opt/install/share/vulkan/explicit_layer.d:/home/user/mesa-git/installdir/build-i386-opt/install/share/vulkan/explicit_layer.d:/usr/share/vulkan/explicit_layer.d" | |
export VK_ICD_FILENAMES="/home/user/mesa-git/installdir/build-amd64-opt/install/share/vulkan/icd.d/radeon_icd.x86_64.json:/home/user/mesa-git/installdir/build-i386-opt/install/share/vulkan/icd.d/radeon_icd.i686.json:/home/user/mesa-git/installdir/build-amd64-opt/install/share/vulkan/icd.d/lvp_icd.x86_64.json:/home/user/mesa-git/installdir/build-i386-opt/install/share/vulkan/icd.d/lvp_icd.i686.json" | |
export OCL_ICD_VENDORS="/home/user/mesa-git/installdir/build-amd64-opt/install/etc/OpenCL/vendors/mesa.icd:/home/user/mesa-git/installdir/build-i386-opt/install/etc/OpenCL/vendors/mesa.icd" | |
export VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay | |
# To enable frametime outputs uncommend next line. It requires modified Mesa. | |
#export VK_LAYER_MESA_OVERLAY_CONFIG=output_relative_time,fps,frame,frame_timing,gpu_timing,pipeline_graphics,graph_y_zero,output_csv=0,output_per_frame=1,output_flush=0,position=top-right,width=300,output_file=/tmp/mesa_overlay_%T_%p.txt | |
# This uses some extra modified features, but they will only produce warnings in | |
# normal Mesa. | |
# export VK_LAYER_MESA_OVERLAY_CONFIG=output_relative_time,fps,frame,frame_timing,gpu_timing,pipeline_graphics,graph_y_zero,output_csv=0,output_per_frame=1,output_flush=0,position=top-right,width=300 | |
export VK_LAYER_MESA_OVERLAY_CONFIG=fps,frame,frame_timing,gpu_timing,pipeline_graphics,position=top-right,width=300 | |
export GALLIUM_HUD=fps | |
export DXVK_HUD=full | |
# If one wishes to use exported dev files, one can use /home/user/mesa/build-i386/install/lib/pkgconfig | |
# And possible /home/user/mesa/build-i386/install/include , for some state trackers, vulkan_intel.h, | |
# GL, GLEX, KHR headers. | |
CAPTURE_DIR="${HOME}/vkpipeline-db-capture" | |
# Create directory for pipeline capture files. | |
if ! [ -d "${CAPTURE_DIR}" ]; then | |
mkdir "${CAPTURE_DIR}" | |
fi | |
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${HOME}/vkpipeline-db/build-amd64:${HOME}/vkpipeline-db/build-i386" | |
export VK_LAYER_PATH="${VK_LAYER_PATH}:${HOME}/vkpipeline-db" | |
# To enable vkpipeline-db layer uncommend next line. | |
#export VK_INSTANCE_LAYERS="${VK_INSTANCE_LAYERS}:VK_LAYER_vkpipeline_db" | |
# Set up the pipeline capture directory. | |
export VKPIPELINE_DB_CAPTURE_PATH="${CAPTURE_DIR}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment