Remove the nv_perf_level config option and figure it out programmatically

This also fixes the instances in testing where we don't have the nv overclock in use, but we do have the mode set

	Solves issues explaining the what the perf_level actually meant, and future proofs for any PR that wants to set individual perf levels
This commit is contained in:
Marc Di Luzio
2019-03-10 15:11:24 +00:00
parent 873d0a224b
commit fec32ac53d
7 changed files with 105 additions and 104 deletions

View File

@ -456,9 +456,13 @@ 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 */
/* account for when settings are not set */
if (expected_nv_powermizer_mode == -1)
expected_nv_powermizer_mode = original_nv_powermizer_mode;
if (expected_core == -1)
expected_core = original_nv_core;
if (expected_mem == -1)
expected_mem = original_nv_mem;
/* Start gamemode and check the new values */
gamemode_request_start();