mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 00:40:11 +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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
@ -29,7 +29,7 @@ namespace vk
|
||||
else
|
||||
{
|
||||
// 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;
|
||||
|
@ -1258,7 +1258,7 @@ namespace vk
|
||||
|
||||
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)
|
||||
{
|
||||
@ -1266,7 +1266,7 @@ namespace vk
|
||||
}
|
||||
else
|
||||
{
|
||||
quota = std::min(128ull, total_device_memory / 2);
|
||||
quota = std::min<u64>(128, total_device_memory / 2);
|
||||
}
|
||||
|
||||
quota *= 0x100000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user