mirror of https://github.com/RPCS3/rpcs3.git
VK: make static chip_family_tables const
This commit is contained in:
parent
6f80fd0063
commit
7262f3d0b7
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace vk
|
namespace vk
|
||||||
{
|
{
|
||||||
static chip_family_table s_AMD_family_tree = []()
|
static const chip_family_table s_AMD_family_tree = []()
|
||||||
{
|
{
|
||||||
chip_family_table table;
|
chip_family_table table;
|
||||||
table.default_ = chip_class::AMD_gcn_generic;
|
table.default_ = chip_class::AMD_gcn_generic;
|
||||||
|
@ -26,7 +26,7 @@ namespace vk
|
||||||
return table;
|
return table;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
static chip_family_table s_NV_family_tree = []()
|
static const chip_family_table s_NV_family_tree = []()
|
||||||
{
|
{
|
||||||
chip_family_table table;
|
chip_family_table table;
|
||||||
table.default_ = chip_class::NV_generic;
|
table.default_ = chip_class::NV_generic;
|
||||||
|
@ -88,7 +88,7 @@ namespace vk
|
||||||
lut[id] = family;
|
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())
|
if (auto found = lut.find(device_id); found != lut.end())
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,7 @@ namespace vk
|
||||||
void add(u32 first, u32 last, chip_class family);
|
void add(u32 first, u32 last, chip_class family);
|
||||||
void add(u32 id, 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();
|
chip_class get_chip_family();
|
||||||
|
|
Loading…
Reference in New Issue