From cff1e3220fe49274674987b3e190cd5231e3e25e Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Tue, 22 Jul 2025 15:01:28 +0300 Subject: [PATCH] moved check nvidia rtx to pw_init_db --- data_from_portwine/scripts/functions_helper | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 6955b2f3..aa51a6fe 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2369,6 +2369,11 @@ check_dirs_and_files_in_pfx () { } pw_init_db () { + if echo "$LSPCI_VGA" | grep -i -q 'nvidia.*rtx' ; then + export PW_USE_NVAPI_AND_DLSS="1" + export PW_USE_RAY_TRACING="1" + fi + if [[ -f "${portwine_exe}" ]] ; then PORTWINE_DB="$(basename "${portwine_exe%.[Ee][Xx][Ee]}")" export PORTWINE_DB @@ -3543,12 +3548,6 @@ start_portwine () { done fi - # CHECK NVIDIA RTX - if echo "$LSPCI_VGA" | grep -i -q 'nvidia.*rtx' ; then - check_variables PW_USE_NVAPI_AND_DLSS "1" - check_variables PW_USE_RAY_TRACING "1" - fi - if [[ "${PW_USE_RAY_TRACING}" == "1" ]] ; then var_vkd3d_config_update dxr var_radv_perftest_config_update rt