From 6de8774aa4c5c504d0f6bfbd06a0cc4d8ca0813b Mon Sep 17 00:00:00 2001 From: Boria138 Date: Thu, 31 Aug 2023 18:49:38 +0600 Subject: [PATCH] Update PW_PRIME_RENDER_OFFLOAD the VK_LAYER_NV_optimus layer looks at the __VK_LAYER_NV_optimus environment variable. The value NVIDIA_only causes VK_LAYER_NV_optimus to only report NVIDIA GPUs to the Vulkan application --- data_from_portwine/scripts/runlib | 1 + 1 file changed, 1 insertion(+) diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib index 70a512c8..0829605f 100755 --- a/data_from_portwine/scripts/runlib +++ b/data_from_portwine/scripts/runlib @@ -171,6 +171,7 @@ start_portwine () { if [[ "${PW_PRIME_RENDER_OFFLOAD}" == 1 ]] ; then export __NV_PRIME_RENDER_OFFLOAD=1 + export __VK_LAYER_NV_optimus=NVIDIA_only export __GLX_VENDOR_LIBRARY_NAME=nvidia fi