From b3c7b07813f6082c1be0165a261626852f3b284e Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Mon, 18 Apr 2022 22:21:22 +0200 Subject: [PATCH] GS-qt: Gray out texture barriers and geometry shaders on d3d or sw renderers. --- pcsx2-qt/Settings/GraphicsSettingsWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp index 0e5d372286..0059c95211 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp @@ -354,8 +354,10 @@ void GraphicsSettingsWidget::updateRendererDependentOptions() #ifdef _WIN32 const bool is_dx11 = (type == GSRendererType::DX11 || type == GSRendererType::SW); + const bool is_sw_dx = (type == GSRendererType::DX11 || type == GSRendererType::DX12 || type == GSRendererType::SW); #else const bool is_dx11 = false; + const bool is_sw_dx = false; #endif const bool is_hardware = (type == GSRendererType::DX11 || type == GSRendererType::DX12 || type == GSRendererType::OGL || type == GSRendererType::VK); @@ -413,6 +415,9 @@ void GraphicsSettingsWidget::updateRendererDependentOptions() m_software_renderer_visible = is_software; } + m_ui.overrideTextureBarriers->setDisabled(is_sw_dx); + m_ui.overrideGeometryShader->setDisabled(is_sw_dx); + m_ui.useBlitSwapChain->setEnabled(is_dx11); // populate adapters