mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
Remove the vendor config value in prep for it to be auto-detected
This commit is contained in:
@ -71,9 +71,11 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
||||
memset(new_info, 0, sizeof(GameModeGPUInfo));
|
||||
|
||||
/* Get the config parameters */
|
||||
new_info->vendor = config_get_gpu_vendor(config);
|
||||
new_info->device = config_get_gpu_device(config);
|
||||
|
||||
/* TODO fill in GPU vendor */
|
||||
new_info->vendor = 0;
|
||||
|
||||
/* verify device ID */
|
||||
if (new_info->device == -1) {
|
||||
LOG_ERROR(
|
||||
@ -86,10 +88,9 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
||||
/* verify GPU vendor */
|
||||
if (!GPUVendorValid(new_info->vendor)) {
|
||||
LOG_ERROR(
|
||||
"Invalid gpu_vendor value (0x%04x) set in configuration, will not apply "
|
||||
"optimisations!\n",
|
||||
"Unknown vendor value (0x%04x) found, cannot apply optimisations!\n",
|
||||
(unsigned int)new_info->vendor);
|
||||
LOG_ERROR("Possible values are: 0x%04x (NVIDIA) 0x%04x (AMD) 0x%04x (Intel)\n",
|
||||
LOG_ERROR("Known values are: 0x%04x (NVIDIA) 0x%04x (AMD) 0x%04x (Intel)\n",
|
||||
Vendor_NVIDIA,
|
||||
Vendor_AMD,
|
||||
Vendor_Intel);
|
||||
|
Reference in New Issue
Block a user