GPU/Vulkan: Fix downloads messing up later commands

This commit is contained in:
Connor McLaughlin
2022-10-05 17:41:55 +10:00
parent 564a9bdeb4
commit 5f6490f68b
8 changed files with 25 additions and 15 deletions

View File

@ -69,7 +69,7 @@ bool GPU_HW::Initialize()
m_using_uv_limits = ShouldUseUVLimits();
m_chroma_smoothing = g_settings.gpu_24bit_chroma_smoothing;
m_downsample_mode = GetDownsampleMode(m_resolution_scale);
m_disable_color_perspective = ShouldDisableColorPerspective();
m_disable_color_perspective = m_supports_disable_color_perspective && ShouldDisableColorPerspective();
if (m_multisamples != g_settings.gpu_multisamples)
{
@ -96,6 +96,8 @@ bool GPU_HW::Initialize()
"OSDMessage", "Adaptive downsampling is not supported with the current renderer, using box filter instead."),
20.0f);
}
if (!m_supports_disable_color_perspective && !ShouldDisableColorPerspective())
Log_WarningPrint("Disable color perspective not supported, but should be used.");
m_pgxp_depth_buffer = g_settings.UsingPGXPDepthBuffer();
@ -146,7 +148,7 @@ void GPU_HW::UpdateHWSettings(bool* framebuffer_changed, bool* shaders_changed)
const bool per_sample_shading = g_settings.gpu_per_sample_shading && m_supports_per_sample_shading;
const GPUDownsampleMode downsample_mode = GetDownsampleMode(resolution_scale);
const bool use_uv_limits = ShouldUseUVLimits();
const bool disable_color_perspective = ShouldDisableColorPerspective();
const bool disable_color_perspective = m_supports_disable_color_perspective && ShouldDisableColorPerspective();
*framebuffer_changed =
(m_resolution_scale != resolution_scale || m_multisamples != multisamples || m_downsample_mode != downsample_mode);