diff options
| author | Stenzek <stenzek@gmail.com> | 2017-05-25 23:59:23 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-08-03 17:40:15 +1000 |
| commit | 7f887111868f2463ea8cdc8c4b28f96b19bf4bcd (patch) | |
| tree | e4ba32503eea4309042818644ccc5c6f3984ea50 /Source/Core/VideoBackends | |
| parent | 6a76ca7bb7ad6bacb877b20e3a35c296720a35d3 (diff) | |
Vulkan: Add a driver bug for NV when MSAA is enabled
This causes the card to lock up when vkCmdClearAttachments is called,
when multisampling is enabled. Seems to be restricted to Maxwell and
newer?
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/Renderer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/Renderer.cpp b/Source/Core/VideoBackends/Vulkan/Renderer.cpp index 3037e3e5f4..5f79897842 100644 --- a/Source/Core/VideoBackends/Vulkan/Renderer.cpp +++ b/Source/Core/VideoBackends/Vulkan/Renderer.cpp @@ -33,6 +33,7 @@ #include "VideoCommon/AVIDump.h" #include "VideoCommon/BPFunctions.h" #include "VideoCommon/BPMemory.h" +#include "VideoCommon/DriverDetails.h" #include "VideoCommon/OnScreenDisplay.h" #include "VideoCommon/PixelEngine.h" #include "VideoCommon/PixelShaderManager.h" @@ -391,6 +392,8 @@ void Renderer::ClearScreen(const EFBRectangle& rc, bool color_enable, bool alpha // Fast path: Use vkCmdClearAttachments to clear the buffers within a render path // We can't use this when preserving alpha but clearing color. + if (g_ActiveConfig.iMultisamples == 1 || + !DriverDetails::HasBug(DriverDetails::BUG_BROKEN_MSAA_VKCMDCLEARATTACHMENTS)) { VkClearAttachment clear_attachments[2]; uint32_t num_clear_attachments = 0; |
