summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2016-12-28 00:37:35 +0100
committerdegasus <wickmarkus@web.de>2017-01-04 19:59:41 +0100
commitb7d8bd13a6c44eecf5c5e59ea60796e3018785f9 (patch)
tree12be532b9cc06e3491b4858c92e743832f671586 /Source/Core/VideoBackends/Vulkan
parentf46f779f70d70d6cdd3de63286ca0da69be9aa00 (diff)
OGL/Vulkan: Drop dual pass alpha.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VertexManager.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp
index f3116a8cb6..251c3651ab 100644
--- a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp
@@ -202,27 +202,6 @@ void VertexManager::vFlush(bool use_dst_alpha)
vkCmdDrawIndexed(g_command_buffer_mgr->GetCurrentCommandBuffer(), index_count, 1,
m_current_draw_base_index, m_current_draw_base_vertex, 0);
- // If the GPU does not support dual-source blending, we can approximate the effect by drawing
- // the object a second time, with the write mask set to alpha only using a shader that outputs
- // the destination/constant alpha value (which would normally be SRC_COLOR.a).
- //
- // This is also used when logic ops and destination alpha is enabled, since we can't enable
- // blending and logic ops concurrently (and the logical operation applies to all channels).
- bool logic_op_enabled = bpmem.blendmode.logicopenable && !bpmem.blendmode.blendenable;
- if (use_dst_alpha && (!g_vulkan_context->SupportsDualSourceBlend() || logic_op_enabled))
- {
- StateTracker::GetInstance()->CheckForShaderChanges(m_current_primitive_type,
- DSTALPHA_ALPHA_PASS);
- if (!StateTracker::GetInstance()->Bind())
- {
- WARN_LOG(VIDEO, "Skipped draw of %u indices (alpha pass)", index_count);
- return;
- }
-
- vkCmdDrawIndexed(g_command_buffer_mgr->GetCurrentCommandBuffer(), index_count, 1,
- m_current_draw_base_index, m_current_draw_base_vertex, 0);
- }
-
StateTracker::GetInstance()->OnDraw();
}