Skip to content

Commit

Permalink
VK: make static chip_family_tables const
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse authored and Nekotekina committed Dec 31, 2020
1 parent 6f80fd0 commit 7262f3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rpcs3/Emu/RSX/VK/vkutils/chip_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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())
{
Expand Down
2 changes: 1 addition & 1 deletion rpcs3/Emu/RSX/VK/vkutils/chip_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7262f3d

Please sign in to comment.