vulkan: flush allocations if needed

There is no guarantee that the created buffer is actually host coherent.
If it is not we have to manually flush it.
This commit is contained in:
niki
2022-10-06 02:12:36 +02:00
parent a95ff597d5
commit ecc272e0ca
6 changed files with 41 additions and 20 deletions
+1 -1
View File
@@ -1557,7 +1557,7 @@ void Graphics::createLogicalDevice()
optionalDeviceFeatures.memoryBudget = false;
if (optionalDeviceFeatures.spirv14 && !optionalDeviceFeatures.shaderFloatControls)
optionalDeviceFeatures.spirv14 = false;
if (optionalDeviceFeatures.spirv14 && vulkanApiVersion < VK_MAKE_API_VERSION(0, 1, 1, 0))
if (optionalDeviceFeatures.spirv14 && vulkanApiVersion < VK_API_VERSION_1_1)
optionalDeviceFeatures.spirv14 = false;
VkPhysicalDeviceFeatures deviceFeatures{};