From 966cb89d41657ec990c1c6d40170eb63b2afb835 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 19 Mar 2016 01:57:13 +0100 Subject: [PATCH] Vulkan: Fix our use of dual source blending, re-enable if available. --- Common/Vulkan/VulkanContext.cpp | 2 +- GPU/Vulkan/StateMappingVulkan.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/Vulkan/VulkanContext.cpp b/Common/Vulkan/VulkanContext.cpp index 2643ae9ca7..f0d0de5107 100644 --- a/Common/Vulkan/VulkanContext.cpp +++ b/Common/Vulkan/VulkanContext.cpp @@ -644,7 +644,7 @@ VkResult VulkanContext::CreateDevice(int physical_device) { // Enable a few safe ones if they are available. if (featuresAvailable_.dualSrcBlend) { - // featuresEnabled_.dualSrcBlend = true; + featuresEnabled_.dualSrcBlend = true; } if (featuresAvailable_.largePoints) { featuresEnabled_.largePoints = true; diff --git a/GPU/Vulkan/StateMappingVulkan.cpp b/GPU/Vulkan/StateMappingVulkan.cpp index 488439999f..05f40f5dc0 100644 --- a/GPU/Vulkan/StateMappingVulkan.cpp +++ b/GPU/Vulkan/StateMappingVulkan.cpp @@ -48,8 +48,8 @@ static const VkBlendFactor vkBlendFactorLookup[(size_t)BlendFactor::COUNT] = { VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR, VK_BLEND_FACTOR_CONSTANT_ALPHA, VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA, - VK_BLEND_FACTOR_SRC1_COLOR, - VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, + VK_BLEND_FACTOR_SRC1_ALPHA, + VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA, VK_BLEND_FACTOR_MAX_ENUM, };