From c7b94d0a42f8db9706b910f528d86adb84ae2c8b Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sun, 20 Aug 2023 12:48:26 +0200 Subject: [PATCH] Qt: Remove Target Partial Invalidation hwfix from the gui. --- pcsx2-qt/Settings/GraphicsSettingsWidget.cpp | 17 ----------------- pcsx2-qt/Settings/GraphicsSettingsWidget.h | 1 - pcsx2-qt/Settings/GraphicsSettingsWidget.ui | 7 ------- 3 files changed, 25 deletions(-) diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp index 9e83a1b495..9609afaab0 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp @@ -198,18 +198,13 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsDialog* dialog, QWidget* SettingWidgetBinder::BindWidgetToIntSetting( sif, m_ui.textureInsideRt, "EmuCore/GS", "UserHacks_TextureInsideRt", static_cast(GSTextureInRtMode::Disabled)); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.readTCOnClose, "EmuCore/GS", "UserHacks_ReadTCOnClose", false); - SettingWidgetBinder::BindWidgetToBoolSetting( - sif, m_ui.targetPartialInvalidation, "EmuCore/GS", "UserHacks_TargetPartialInvalidation", false); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.estimateTextureRegion, "EmuCore/GS", "UserHacks_EstimateTextureRegion", false); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.gpuPaletteConversion, "EmuCore/GS", "paltex", false); connect(m_ui.cpuSpriteRenderBW, QOverload::of(&QComboBox::currentIndexChanged), this, &GraphicsSettingsWidget::onCPUSpriteRenderBWChanged); - connect( - m_ui.textureInsideRt, QOverload::of(&QComboBox::currentIndexChanged), this, &GraphicsSettingsWidget::onTextureInsideRtChanged); connect(m_ui.gpuPaletteConversion, QOverload::of(&QCheckBox::stateChanged), this, &GraphicsSettingsWidget::onGpuPaletteConversionChanged); onCPUSpriteRenderBWChanged(); - onTextureInsideRtChanged(); onGpuPaletteConversionChanged(m_ui.gpuPaletteConversion->checkState()); ////////////////////////////////////////////////////////////////////////// @@ -559,10 +554,6 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsDialog* dialog, QWidget* tr("Flushes all targets in the texture cache back to local memory when shutting down. Can prevent lost visuals when saving " "state or switching renderers, but can also cause graphical corruption.")); - dialog->registerWidgetHelp(m_ui.targetPartialInvalidation, tr("Target Partial Invalidation"), tr("Unchecked"), - tr("Allows partial invalidation of render targets, which can fix graphical errors in some games. Texture Inside Render Target " - "automatically enables this option.")); - dialog->registerWidgetHelp(m_ui.estimateTextureRegion, tr("Estimate Texture Region"), tr("Unchecked"), tr("Attempts to reduce the texture size when games do not set it themselves (e.g. Snowblind games).")); } @@ -889,13 +880,6 @@ void GraphicsSettingsWidget::onCPUSpriteRenderBWChanged() m_ui.cpuSpriteRenderLevel->setEnabled(value != 0); } -void GraphicsSettingsWidget::onTextureInsideRtChanged() -{ - const bool disabled = static_cast(m_ui.textureInsideRt->currentIndex()) >= GSTextureInRtMode::InsideTargets; - - m_ui.targetPartialInvalidation->setDisabled(disabled); -} - GSRendererType GraphicsSettingsWidget::getEffectiveRenderer() const { const GSRendererType type = @@ -1060,7 +1044,6 @@ void GraphicsSettingsWidget::resetManualHardwareFixes() check_bool("EmuCore/GS", "UserHacks_DisablePartialInvalidation", false); check_int("EmuCore/GS", "UserHacks_TextureInsideRt", static_cast(GSTextureInRtMode::Disabled)); check_bool("EmuCore/GS", "UserHacks_ReadTCOnClose", false); - check_bool("EmuCore/GS", "UserHacks_TargetPartialInvalidation", false); check_bool("EmuCore/GS", "UserHacks_EstimateTextureRegion", false); check_bool("EmuCore/GS", "paltex", false); check_int("EmuCore/GS", "UserHacks_HalfPixelOffset", 0); diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.h b/pcsx2-qt/Settings/GraphicsSettingsWidget.h index 592827289c..248aa8d277 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.h +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.h @@ -42,7 +42,6 @@ private Q_SLOTS: void onTrilinearFilteringChanged(); void onGpuPaletteConversionChanged(int state); void onCPUSpriteRenderBWChanged(); - void onTextureInsideRtChanged(); void onFullscreenModeChanged(int index); void onShadeBoostChanged(); void onCaptureContainerChanged(); diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui index 21103d6841..ae561dfa65 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui @@ -1027,13 +1027,6 @@ - - - - Target Partial Invalidation - - -