Merge pull request #4924 from stenzek/vulkan-list-restart

Vulkan: Fix GPU hangs on AMD Polaris
This commit is contained in:
Stenzek
2017-02-18 21:58:30 +10:00
committed by GitHub
4 changed files with 31 additions and 2 deletions

View File

@ -153,7 +153,10 @@ void VertexManager::vFlush()
break;
case PRIMITIVE_TRIANGLES:
StateTracker::GetInstance()->SetPrimitiveTopology(VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP);
StateTracker::GetInstance()->SetPrimitiveTopology(
g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ?
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP :
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST);
g_renderer->SetGenerationMode();
break;
}