From d26eabe2bf37e05b9ba4aec7fbd6ff0d4ca4cdc3 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 21 Jul 2021 14:13:44 +0200 Subject: [PATCH] Fix glitches on Android Vulkan --- Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp b/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp index 4197cab8a..27c2b4dc8 100644 --- a/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp +++ b/Source/Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.cpp @@ -507,7 +507,11 @@ RenderPassVulkan::RenderPassVulkan(GPUDeviceVulkan* device, const RenderTargetLa attachment.flags = 0; attachment.format = RenderToolsVulkan::ToVulkanFormat(layout.RTVsFormats[i]); attachment.samples = (VkSampleCountFlagBits)layout.MSAA; +#if PLATFORM_ANDROID + attachment.loadOp = VK_ATTACHMENT_LOAD_OP_LOAD; // TODO: Adreno 640 has glitches when blend is disabled and rt data not loaded +#else attachment.loadOp = layout.BlendEnable ? VK_ATTACHMENT_LOAD_OP_LOAD : VK_ATTACHMENT_LOAD_OP_DONT_CARE; +#endif attachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; attachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; attachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;