From c7865cb3b1ebafc70bf6c41ba1f99c814927edb6 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sat, 30 Sep 2017 14:57:03 +0200 Subject: [PATCH] fixup! CommandProcessor: Added 3 VS Units --- src/video_core/command_processor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 2a4f69b2f..71dcce1b4 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -479,9 +479,8 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { // TODO(B3N30): If GS is off use the 4th shader unit // unsigned int num_units = use_gs ? VS_UNITS : VS_UNITS + 1; unsigned int num_units = VS_UNITS; - std::future ft[num_units]; for (size_t unit_id = 0; unit_id < num_units; ++unit_id) { - ft[unit_id] = thread_pool.Push(UnitLoop, false, unit_id, num_units); + thread_pool.Push(UnitLoop, false, unit_id, num_units); } for (unsigned int index = 0; index < regs.pipeline.num_vertices; ++index) { while (unit_manager.vs_output[index].batch_id.load(std::memory_order_acquire) !=