mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-11 06:40:39 +00:00
Fix linux build
This commit is contained in:
parent
369f1132f3
commit
974a3c8807
@ -16,7 +16,7 @@ namespace vk
|
|||||||
|
|
||||||
if (total_device_memory >= 2048)
|
if (total_device_memory >= 2048)
|
||||||
{
|
{
|
||||||
quota = std::min(6144ull, (total_device_memory * 40) / 100);
|
quota = std::min<u64>(6144, (total_device_memory * 40) / 100);
|
||||||
}
|
}
|
||||||
else if (total_device_memory >= 1024)
|
else if (total_device_memory >= 1024)
|
||||||
{
|
{
|
||||||
@ -29,7 +29,7 @@ namespace vk
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Remove upto 128MB but at least aim for half of available VRAM
|
// Remove upto 128MB but at least aim for half of available VRAM
|
||||||
quota = std::min(128ull, total_device_memory / 2);
|
quota = std::min<u64>(128, total_device_memory / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
return quota * 0x100000;
|
return quota * 0x100000;
|
||||||
|
@ -1258,7 +1258,7 @@ namespace vk
|
|||||||
|
|
||||||
if (total_device_memory >= 1024)
|
if (total_device_memory >= 1024)
|
||||||
{
|
{
|
||||||
quota = std::min(3072ull, (total_device_memory * 40) / 100);
|
quota = std::min<u64>(3072, (total_device_memory * 40) / 100);
|
||||||
}
|
}
|
||||||
else if (total_device_memory >= 768)
|
else if (total_device_memory >= 768)
|
||||||
{
|
{
|
||||||
@ -1266,7 +1266,7 @@ namespace vk
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
quota = std::min(128ull, total_device_memory / 2);
|
quota = std::min<u64>(128, total_device_memory / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
quota *= 0x100000;
|
quota *= 0x100000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user