Merge pull request #14587 from SuperSamus/arbitrary-mipmap-gpu-decoding-checkbox-fix
VideoCommon: Fixup #14336
This commit is contained in:
3 files changed
+11
-7
No files matched your search
@@ -162,8 +162,6 @@ void EnhancementsWidget::CreateWidgets()
|
|||||||
m_arbitrary_mipmap_detection =
|
m_arbitrary_mipmap_detection =
|
||||||
new ConfigBool(tr("Arbitrary Mipmap Detection"),
|
new ConfigBool(tr("Arbitrary Mipmap Detection"),
|
||||||
Config::GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION, m_game_layer);
|
Config::GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION, m_game_layer);
|
||||||
m_arbitrary_mipmap_detection->setEnabled(
|
|
||||||
!Get(m_game_layer, Config::GFX_ENABLE_GPU_TEXTURE_DECODING));
|
|
||||||
m_hdr = new ConfigBool(tr("HDR Post-Processing"), Config::GFX_ENHANCE_HDR_OUTPUT, m_game_layer);
|
m_hdr = new ConfigBool(tr("HDR Post-Processing"), Config::GFX_ENHANCE_HDR_OUTPUT, m_game_layer);
|
||||||
|
|
||||||
int row = 0;
|
int row = 0;
|
||||||
|
|||||||
@@ -27,10 +27,8 @@ HacksWidget::HacksWidget(GraphicsPane* gfx_pane) : m_game_layer{gfx_pane->GetCon
|
|||||||
|
|
||||||
connect(gfx_pane, &GraphicsPane::BackendChanged, this, &HacksWidget::OnBackendChanged);
|
connect(gfx_pane, &GraphicsPane::BackendChanged, this, &HacksWidget::OnBackendChanged);
|
||||||
OnBackendChanged(QString::fromStdString(Config::Get(Config::MAIN_GFX_BACKEND)));
|
OnBackendChanged(QString::fromStdString(Config::Get(Config::MAIN_GFX_BACKEND)));
|
||||||
connect(gfx_pane, &GraphicsPane::UpdateGPUTextureDecoding, this, [this] {
|
connect(gfx_pane, &GraphicsPane::UpdateGPUTextureDecoding, this,
|
||||||
m_gpu_texture_decoding->setEnabled(
|
&HacksWidget::UpdateGPUTextureDecodingEnabled);
|
||||||
!Get(m_game_layer, Config::GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HacksWidget::CreateWidgets()
|
void HacksWidget::CreateWidgets()
|
||||||
@@ -130,7 +128,7 @@ void HacksWidget::OnBackendChanged(const QString& backend_name)
|
|||||||
const bool bbox = g_backend_info.bSupportsBBox;
|
const bool bbox = g_backend_info.bSupportsBBox;
|
||||||
const bool gpu_texture_decoding = g_backend_info.bSupportsGPUTextureDecoding;
|
const bool gpu_texture_decoding = g_backend_info.bSupportsGPUTextureDecoding;
|
||||||
|
|
||||||
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
|
UpdateGPUTextureDecodingEnabled();
|
||||||
m_disable_bounding_box->setEnabled(bbox);
|
m_disable_bounding_box->setEnabled(bbox);
|
||||||
|
|
||||||
const QString tooltip = tr("%1 doesn't support this feature on your system.")
|
const QString tooltip = tr("%1 doesn't support this feature on your system.")
|
||||||
@@ -263,6 +261,13 @@ void HacksWidget::AddDescriptions()
|
|||||||
m_vi_skip->SetDescription(tr(TR_VI_SKIP_DESCRIPTION));
|
m_vi_skip->SetDescription(tr(TR_VI_SKIP_DESCRIPTION));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HacksWidget::UpdateGPUTextureDecodingEnabled()
|
||||||
|
{
|
||||||
|
const bool gpu_texture_decoding = g_backend_info.bSupportsGPUTextureDecoding;
|
||||||
|
m_gpu_texture_decoding->setEnabled(
|
||||||
|
gpu_texture_decoding && !Get(m_game_layer, Config::GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION));
|
||||||
|
}
|
||||||
|
|
||||||
void HacksWidget::UpdateDeferEFBCopiesEnabled()
|
void HacksWidget::UpdateDeferEFBCopiesEnabled()
|
||||||
{
|
{
|
||||||
// We disable the checkbox for defer EFB copies when both EFB and XFB copies to texture are
|
// We disable the checkbox for defer EFB copies when both EFB and XFB copies to texture are
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ private:
|
|||||||
void ConnectWidgets();
|
void ConnectWidgets();
|
||||||
void AddDescriptions();
|
void AddDescriptions();
|
||||||
|
|
||||||
|
void UpdateGPUTextureDecodingEnabled();
|
||||||
void UpdateDeferEFBCopiesEnabled();
|
void UpdateDeferEFBCopiesEnabled();
|
||||||
void UpdateSkipPresentingDuplicateFramesEnabled();
|
void UpdateSkipPresentingDuplicateFramesEnabled();
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user