Remove the vendor config value in prep for it to be auto-detected

This commit is contained in:
Marc Di Luzio
2019-02-16 12:22:47 +00:00
parent d582b580b2
commit 0847d3b452
5 changed files with 9 additions and 16 deletions

View File

@ -421,16 +421,15 @@ int run_gpu_optimisation_tests(struct GameModeConfig *config)
/* Get current GPU values */
GameModeGPUInfo gpuinfo;
gpuinfo.device = config_get_gpu_device(config);
gpuinfo.vendor = config_get_gpu_vendor(config);
if (gpuinfo.vendor == Vendor_NVIDIA)
gpuinfo.nv_perf_level = config_get_nv_perf_level(config);
if (game_mode_get_gpu(&gpuinfo) != 0) {
LOG_ERROR("Could not get current GPU info, see above!\n");
return -1;
}
if (gpuinfo.vendor == Vendor_NVIDIA)
gpuinfo.nv_perf_level = config_get_nv_perf_level(config);
/* Store the original values */
long original_core = gpuinfo.core;
long original_mem = gpuinfo.mem;