mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Remove remnants of separable shader setting (#6403)
This commit is contained in:
		
							parent
							
								
									000a616bd9
								
							
						
					
					
						commit
						227926c1fa
					
				
					 12 changed files with 0 additions and 81 deletions
				
			
		|  | @ -628,12 +628,6 @@ void Config::ReadRendererValues() { | |||
| 
 | ||||
|     ReadGlobalSetting(Settings::values.graphics_api); | ||||
|     ReadGlobalSetting(Settings::values.use_hw_shader); | ||||
| #ifdef __APPLE__ | ||||
|     // Hardware shader is broken on macos with Intel GPUs thanks to poor drivers.
 | ||||
|     // We still want to provide this option for test/development purposes, but disable it by
 | ||||
|     // default.
 | ||||
|     ReadGlobalSetting(Settings::values.separable_shader); | ||||
| #endif | ||||
|     ReadGlobalSetting(Settings::values.shaders_accurate_mul); | ||||
|     ReadGlobalSetting(Settings::values.use_disk_shader_cache); | ||||
|     ReadGlobalSetting(Settings::values.use_vsync_new); | ||||
|  | @ -1107,11 +1101,6 @@ void Config::SaveRendererValues() { | |||
| 
 | ||||
|     WriteGlobalSetting(Settings::values.graphics_api); | ||||
|     WriteGlobalSetting(Settings::values.use_hw_shader); | ||||
| #ifdef __APPLE__ | ||||
|     // Hardware shader is broken on macos thanks to poor drivers.
 | ||||
|     // TODO: enable this for none Intel GPUs
 | ||||
|     WriteGlobalSetting(Settings::values.separable_shader); | ||||
| #endif | ||||
|     WriteGlobalSetting(Settings::values.shaders_accurate_mul); | ||||
|     WriteGlobalSetting(Settings::values.use_disk_shader_cache); | ||||
|     WriteGlobalSetting(Settings::values.use_vsync_new); | ||||
|  |  | |||
|  | @ -3,9 +3,6 @@ | |||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <QColorDialog> | ||||
| #ifdef __APPLE__ | ||||
| #include <QMessageBox> | ||||
| #endif | ||||
| #include "citra_qt/configuration/configuration_shared.h" | ||||
| #include "citra_qt/configuration/configure_graphics.h" | ||||
| #include "common/settings.h" | ||||
|  | @ -37,28 +34,6 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent) | |||
|         ui->toggle_disk_shader_cache->setEnabled(checked); | ||||
|     }); | ||||
| 
 | ||||
| #ifdef __APPLE__ | ||||
|     connect(ui->toggle_hw_shader, &QCheckBox::stateChanged, this, [this](int state) { | ||||
|         if (state == Qt::Checked) { | ||||
|             ui->toggle_separable_shader->setEnabled(true); | ||||
|         } | ||||
|     }); | ||||
|     connect(ui->toggle_separable_shader, &QCheckBox::stateChanged, this, [this](int state) { | ||||
|         if (state == Qt::Checked) { | ||||
|             QMessageBox::warning( | ||||
|                 this, tr("Hardware Shader Warning"), | ||||
|                 tr("Separable Shader support is broken on macOS with Intel GPUs, and will cause " | ||||
|                    "graphical issues " | ||||
|                    "like showing a black screen.<br><br>The option is only there for " | ||||
|                    "test/development purposes. If you experience graphical issues with Hardware " | ||||
|                    "Shader, please turn it off.")); | ||||
|         } | ||||
|     }); | ||||
| #else | ||||
|     // TODO(B3N30): Hide this for macs with none Intel GPUs, too.
 | ||||
|     ui->toggle_separable_shader->setVisible(false); | ||||
| #endif | ||||
| 
 | ||||
|     SetupPerGameUI(); | ||||
|     SetConfiguration(); | ||||
| } | ||||
|  | @ -77,7 +52,6 @@ void ConfigureGraphics::SetConfiguration() { | |||
|     } | ||||
| 
 | ||||
|     ui->toggle_hw_shader->setChecked(Settings::values.use_hw_shader.GetValue()); | ||||
|     ui->toggle_separable_shader->setChecked(Settings::values.separable_shader.GetValue()); | ||||
|     ui->toggle_accurate_mul->setChecked(Settings::values.shaders_accurate_mul.GetValue()); | ||||
|     ui->toggle_disk_shader_cache->setChecked(Settings::values.use_disk_shader_cache.GetValue()); | ||||
|     ui->toggle_vsync_new->setChecked(Settings::values.use_vsync_new.GetValue()); | ||||
|  | @ -92,8 +66,6 @@ void ConfigureGraphics::ApplyConfiguration() { | |||
|                                              ui->graphics_api_combo); | ||||
|     ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_hw_shader, ui->toggle_hw_shader, | ||||
|                                              use_hw_shader); | ||||
|     ConfigurationShared::ApplyPerGameSetting(&Settings::values.separable_shader, | ||||
|                                              ui->toggle_separable_shader, separable_shader); | ||||
|     ConfigurationShared::ApplyPerGameSetting(&Settings::values.shaders_accurate_mul, | ||||
|                                              ui->toggle_accurate_mul, shaders_accurate_mul); | ||||
|     ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_disk_shader_cache, | ||||
|  | @ -115,7 +87,6 @@ void ConfigureGraphics::SetupPerGameUI() { | |||
|     if (Settings::IsConfiguringGlobal()) { | ||||
|         ui->graphics_api_group->setEnabled(Settings::values.graphics_api.UsingGlobal()); | ||||
|         ui->toggle_hw_shader->setEnabled(Settings::values.use_hw_shader.UsingGlobal()); | ||||
|         ui->toggle_separable_shader->setEnabled(Settings::values.separable_shader.UsingGlobal()); | ||||
|         ui->toggle_accurate_mul->setEnabled(Settings::values.shaders_accurate_mul.UsingGlobal()); | ||||
|         ui->toggle_disk_shader_cache->setEnabled( | ||||
|             Settings::values.use_disk_shader_cache.UsingGlobal()); | ||||
|  | @ -132,8 +103,6 @@ void ConfigureGraphics::SetupPerGameUI() { | |||
| 
 | ||||
|     ConfigurationShared::SetColoredTristate(ui->toggle_hw_shader, Settings::values.use_hw_shader, | ||||
|                                             use_hw_shader); | ||||
|     ConfigurationShared::SetColoredTristate(ui->toggle_separable_shader, | ||||
|                                             Settings::values.separable_shader, separable_shader); | ||||
|     ConfigurationShared::SetColoredTristate( | ||||
|         ui->toggle_accurate_mul, Settings::values.shaders_accurate_mul, shaders_accurate_mul); | ||||
|     ConfigurationShared::SetColoredTristate(ui->toggle_disk_shader_cache, | ||||
|  |  | |||
|  | @ -32,7 +32,6 @@ private: | |||
|     void SetupPerGameUI(); | ||||
| 
 | ||||
|     ConfigurationShared::CheckState use_hw_shader; | ||||
|     ConfigurationShared::CheckState separable_shader; | ||||
|     ConfigurationShared::CheckState shaders_accurate_mul; | ||||
|     ConfigurationShared::CheckState use_disk_shader_cache; | ||||
|     ConfigurationShared::CheckState use_vsync_new; | ||||
|  |  | |||
|  | @ -114,13 +114,6 @@ | |||
|             <property name="bottomMargin"> | ||||
|              <number>0</number> | ||||
|             </property> | ||||
|             <item> | ||||
|              <widget class="QCheckBox" name="toggle_separable_shader"> | ||||
|               <property name="text"> | ||||
|                <string>Separable Shader (Intel GPUs only)</string> | ||||
|               </property> | ||||
|              </widget> | ||||
|             </item> | ||||
|             <item> | ||||
|              <widget class="QCheckBox" name="toggle_accurate_mul"> | ||||
|               <property name="toolTip"> | ||||
|  | @ -195,7 +188,6 @@ | |||
|   </layout> | ||||
|  </widget> | ||||
|  <tabstops> | ||||
|   <tabstop>toggle_separable_shader</tabstop> | ||||
|   <tabstop>toggle_accurate_mul</tabstop> | ||||
|   <tabstop>toggle_shader_jit</tabstop> | ||||
|   <tabstop>toggle_disk_shader_cache</tabstop> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue