Allow nv_perl_level and nv_powermizer_mode to be set independently

This commit is contained in:
Marc Di Luzio
2019-03-08 16:03:24 +00:00
committed by Alex Smith
parent 834a18aab4
commit 54d7d3f259
3 changed files with 87 additions and 78 deletions

View File

@@ -456,6 +456,10 @@ int run_gpu_optimisation_tests(struct GameModeConfig *config)
char original_amd_performance_level[CONFIG_VALUE_MAX];
strncpy(original_amd_performance_level, gpuinfo->amd_performance_level, CONFIG_VALUE_MAX);
/* account for when powermizer is not set */
if( expected_nv_powermizer_mode == -1 )
expected_nv_powermizer_mode = original_nv_powermizer_mode;
/* Start gamemode and check the new values */
gamemode_request_start();