From 7262f3d0b7eaabe82ba23f41ac27c4be7802bca0 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 30 Dec 2020 10:52:07 +0100 Subject: [PATCH] VK: make static chip_family_tables const --- rpcs3/Emu/RSX/VK/vkutils/chip_class.cpp | 6 +++--- rpcs3/Emu/RSX/VK/vkutils/chip_class.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/vkutils/chip_class.cpp b/rpcs3/Emu/RSX/VK/vkutils/chip_class.cpp index 4c6037c3e6..d7b8fe061c 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/chip_class.cpp +++ b/rpcs3/Emu/RSX/VK/vkutils/chip_class.cpp @@ -3,7 +3,7 @@ namespace vk { - static chip_family_table s_AMD_family_tree = []() + static const chip_family_table s_AMD_family_tree = []() { chip_family_table table; table.default_ = chip_class::AMD_gcn_generic; @@ -26,7 +26,7 @@ namespace vk return table; }(); - static chip_family_table s_NV_family_tree = []() + static const chip_family_table s_NV_family_tree = []() { chip_family_table table; table.default_ = chip_class::NV_generic; @@ -88,7 +88,7 @@ namespace vk lut[id] = family; } - chip_class chip_family_table::find(u32 device_id) + chip_class chip_family_table::find(u32 device_id) const { if (auto found = lut.find(device_id); found != lut.end()) { diff --git a/rpcs3/Emu/RSX/VK/vkutils/chip_class.h b/rpcs3/Emu/RSX/VK/vkutils/chip_class.h index 2ff40d7fee..3bf11be49e 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/chip_class.h +++ b/rpcs3/Emu/RSX/VK/vkutils/chip_class.h @@ -40,7 +40,7 @@ namespace vk void add(u32 first, u32 last, chip_class family); void add(u32 id, chip_class family); - chip_class find(u32 device_id); + chip_class find(u32 device_id) const; }; chip_class get_chip_family();