Fix linux build

This commit is contained in:
kd-11 2021-07-14 20:18:53 +03:00 committed by kd-11
parent 369f1132f3
commit 974a3c8807
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;