diff options
Diffstat (limited to 'src/yuzu/configuration')
| -rw-r--r-- | src/yuzu/configuration/config.cpp | 8 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 37 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.h | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.ui | 9 | 
4 files changed, 8 insertions, 48 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 9686412d0..ca10e9f23 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp @@ -682,12 +682,6 @@ void Config::ReadRendererValues() {      ReadGlobalSetting(Settings::values.bg_green);      ReadGlobalSetting(Settings::values.bg_blue); -    if (!global && UISettings::values.has_broken_vulkan && -        Settings::values.renderer_backend.GetValue() == Settings::RendererBackend::Vulkan && -        !Settings::values.renderer_backend.UsingGlobal()) { -        Settings::values.renderer_backend.SetGlobal(true); -    } -      if (global) {          ReadBasicSetting(Settings::values.renderer_debug);          ReadBasicSetting(Settings::values.renderer_shader_feedback); @@ -807,7 +801,6 @@ void Config::ReadUIValues() {      ReadBasicSetting(UISettings::values.pause_when_in_background);      ReadBasicSetting(UISettings::values.mute_when_in_background);      ReadBasicSetting(UISettings::values.hide_mouse); -    ReadBasicSetting(UISettings::values.has_broken_vulkan);      ReadBasicSetting(UISettings::values.disable_web_applet);      qt_config->endGroup(); @@ -1355,7 +1348,6 @@ void Config::SaveUIValues() {      WriteBasicSetting(UISettings::values.pause_when_in_background);      WriteBasicSetting(UISettings::values.mute_when_in_background);      WriteBasicSetting(UISettings::values.hide_mouse); -    WriteBasicSetting(UISettings::values.has_broken_vulkan);      WriteBasicSetting(UISettings::values.disable_web_applet);      qt_config->endGroup(); diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index 85f34dc35..6b33c4535 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp @@ -58,24 +58,9 @@ ConfigureGraphics::ConfigureGraphics(const Core::System& system_, QWidget* paren          UpdateBackgroundColorButton(new_bg_color);      }); -    connect(ui->button_check_vulkan, &QAbstractButton::clicked, this, [this] { -        UISettings::values.has_broken_vulkan = false; - -        if (RetrieveVulkanDevices()) { -            ui->api->setEnabled(true); -            ui->button_check_vulkan->hide(); - -            for (const auto& device : vulkan_devices) { -                ui->device->addItem(device); -            } -        } else { -            UISettings::values.has_broken_vulkan = true; -        } -    }); - -    ui->api->setEnabled(!UISettings::values.has_broken_vulkan.GetValue()); -    ui->button_check_vulkan->setVisible(UISettings::values.has_broken_vulkan.GetValue()); - +    ui->api->setEnabled(!UISettings::values.has_broken_vulkan); +    ui->api_widget->setEnabled(!UISettings::values.has_broken_vulkan || +                               Settings::IsConfiguringGlobal());      ui->bg_label->setVisible(Settings::IsConfiguringGlobal());      ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal());  } @@ -315,7 +300,7 @@ void ConfigureGraphics::UpdateAPILayout() {          vulkan_device = Settings::values.vulkan_device.GetValue(true);          shader_backend = Settings::values.shader_backend.GetValue(true);          ui->device_widget->setEnabled(false); -        ui->backend_widget->setEnabled(UISettings::values.has_broken_vulkan.GetValue()); +        ui->backend_widget->setEnabled(false);      } else {          vulkan_device = Settings::values.vulkan_device.GetValue();          shader_backend = Settings::values.shader_backend.GetValue(); @@ -337,9 +322,9 @@ void ConfigureGraphics::UpdateAPILayout() {      }  } -bool ConfigureGraphics::RetrieveVulkanDevices() try { +void ConfigureGraphics::RetrieveVulkanDevices() try {      if (UISettings::values.has_broken_vulkan) { -        return false; +        return;      }      using namespace Vulkan; @@ -355,11 +340,8 @@ bool ConfigureGraphics::RetrieveVulkanDevices() try {          const std::string name = vk::PhysicalDevice(device, dld).GetProperties().deviceName;          vulkan_devices.push_back(QString::fromStdString(name));      } - -    return true;  } catch (const Vulkan::vk::Exception& exception) {      LOG_ERROR(Frontend, "Failed to enumerate devices with error: {}", exception.what()); -    return false;  }  Settings::RendererBackend ConfigureGraphics::GetCurrentGraphicsBackend() const { @@ -440,11 +422,4 @@ void ConfigureGraphics::SetupPerGameUI() {          ui->api, static_cast<int>(Settings::values.renderer_backend.GetValue(true)));      ConfigurationShared::InsertGlobalItem(          ui->nvdec_emulation, static_cast<int>(Settings::values.nvdec_emulation.GetValue(true))); - -    if (UISettings::values.has_broken_vulkan) { -        ui->backend_widget->setEnabled(true); -        ConfigurationShared::SetColoredComboBox( -            ui->backend, ui->backend_widget, -            static_cast<int>(Settings::values.shader_backend.GetValue(true))); -    }  } diff --git a/src/yuzu/configuration/configure_graphics.h b/src/yuzu/configuration/configure_graphics.h index 8438f0187..1b101c940 100644 --- a/src/yuzu/configuration/configure_graphics.h +++ b/src/yuzu/configuration/configure_graphics.h @@ -41,7 +41,7 @@ private:      void UpdateDeviceSelection(int device);      void UpdateShaderBackendSelection(int backend); -    bool RetrieveVulkanDevices(); +    void RetrieveVulkanDevices();      void SetupPerGameUI(); diff --git a/src/yuzu/configuration/configure_graphics.ui b/src/yuzu/configuration/configure_graphics.ui index 2f94c94bc..1e4f74704 100644 --- a/src/yuzu/configuration/configure_graphics.ui +++ b/src/yuzu/configuration/configure_graphics.ui @@ -6,7 +6,7 @@     <rect>      <x>0</x>      <y>0</y> -    <width>471</width> +    <width>541</width>      <height>759</height>     </rect>    </property> @@ -574,13 +574,6 @@       </property>      </spacer>     </item> -   <item> -    <widget class="QPushButton" name="button_check_vulkan"> -     <property name="text"> -      <string>Check for Working Vulkan</string> -     </property> -    </widget> -   </item>    </layout>   </widget>   <resources/>  | 
