From dec0c3bce85ceda89ea05f00b94aad00e675598d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 25 Feb 2018 01:15:35 +1000 Subject: Move shader caches to VideoCommon --- Source/Core/VideoBackends/Vulkan/VertexManager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Source/Core/VideoBackends/Vulkan/VertexManager.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp index c9aad0254c..1e97cf6308 100644 --- a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp @@ -139,8 +139,6 @@ void VertexManager::vFlush() u32 index_count = IndexGenerator::GetIndexLen(); // Update tracked state - StateTracker::GetInstance()->SetVertexFormat(vertex_format); - StateTracker::GetInstance()->CheckForShaderChanges(); StateTracker::GetInstance()->UpdateVertexShaderConstants(); StateTracker::GetInstance()->UpdateGeometryShaderConstants(); StateTracker::GetInstance()->UpdatePixelShaderConstants(); @@ -165,12 +163,10 @@ void VertexManager::vFlush() bounding_box->Flush(); bounding_box->Invalidate(); } - - // Update which descriptor set/pipeline layout to use. - StateTracker::GetInstance()->SetBBoxEnable(bounding_box_enabled); } // Bind all pending state to the command buffer + g_renderer->SetPipeline(m_current_pipeline_object); if (!StateTracker::GetInstance()->Bind()) { WARN_LOG(VIDEO, "Skipped draw of %u indices", index_count); -- cgit v1.2.3