void-packages/srcpkgs/nvidia/files/prime-run
Érico Rolim ec00ae50e1 nvidia: add linux5.7 patch, prime-run script.
Building the DKMS module was failing due to a missing header. Patch
taken from Arch Linux, should be fixed in the next release.

prime-run script to run applications using PRIME Offload.
2020-06-25 18:28:54 -05:00

5 lines
136 B
Bash

#!/bin/sh
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"