From 2081ed7db22d62b82acfddcd4b7c10a03bb3daaf Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Tue, 4 Sep 2018 13:54:50 +0200 Subject: command_processor: Use std::array for bound_engines. subchannel is a 3 bit field. So there must not be more than 8 bound engines. And using a hashmap for up to 8 values is a bit overpowered. --- src/video_core/gpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video_core/gpu.h') diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 2c3dbd97b..d29f31f52 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -4,8 +4,8 @@ #pragma once +#include #include -#include #include "common/common_types.h" #include "core/hle/service/nvflinger/buffer_queue.h" #include "video_core/memory_manager.h" @@ -136,7 +136,7 @@ private: std::unique_ptr memory_manager; /// Mapping of command subchannels to their bound engine ids. - std::unordered_map bound_engines; + std::array bound_engines = {}; /// 3D engine std::unique_ptr maxwell_3d; -- cgit v1.2.3