diff --git a/src/Device/Surface.hpp b/src/Device/Surface.hpp index 19d0dd15ebd4e..49f2e4ea4417b 100644 --- a/src/Device/Surface.hpp +++ b/src/Device/Surface.hpp @@ -18,7 +18,7 @@ #include "Color.hpp" #include "Device/Config.hpp" #include "System/Resource.hpp" -#include +#include namespace sw { diff --git a/src/Vulkan/VkGetProcAddress.h b/src/Vulkan/VkGetProcAddress.h index 2d5ba5fa4bdac..e322892ce9434 100644 --- a/src/Vulkan/VkGetProcAddress.h +++ b/src/Vulkan/VkGetProcAddress.h @@ -15,7 +15,7 @@ #ifndef VK_UTILS_HPP_ #define VK_UTILS_HPP_ -#include +#include namespace vk { diff --git a/src/Vulkan/VkMemory.h b/src/Vulkan/VkMemory.h index 29309b785f7ad..7fc383752b286 100644 --- a/src/Vulkan/VkMemory.h +++ b/src/Vulkan/VkMemory.h @@ -15,7 +15,7 @@ #ifndef VK_MEMORY_HPP_ #define VK_MEMORY_HPP_ -#include +#include namespace vk { diff --git a/src/Vulkan/VkObject.hpp b/src/Vulkan/VkObject.hpp index 5a9a414c64b9c..757d5560cc028 100644 --- a/src/Vulkan/VkObject.hpp +++ b/src/Vulkan/VkObject.hpp @@ -18,7 +18,8 @@ #include "VkConfig.h" #include "VkDebug.hpp" #include "VkMemory.h" -#include + +#include #include namespace vk diff --git a/src/Vulkan/VkPromotedExtensions.cpp b/src/Vulkan/VkPromotedExtensions.cpp index 8bfe9c4815ddf..b244216594b1a 100644 --- a/src/Vulkan/VkPromotedExtensions.cpp +++ b/src/Vulkan/VkPromotedExtensions.cpp @@ -40,7 +40,7 @@ // VK_KHR_storage_buffer_storage_class (no functions in this extension) // VK_KHR_variable_pointers (no functions in this extension) -#include +#include extern "C" { diff --git a/src/Vulkan/libVulkan.cpp b/src/Vulkan/libVulkan.cpp index 66c6a3e0400dd..9360e5120660f 100644 --- a/src/Vulkan/libVulkan.cpp +++ b/src/Vulkan/libVulkan.cpp @@ -467,22 +467,22 @@ VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit(VkQueue queue, uint32_t submitCount return VK_SUCCESS; } -VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle(VkQueue queue) -{ - TRACE("(VkQueue queue = 0x%X)", queue); - - vk::Cast(queue)->waitIdle(); - - return VK_SUCCESS; -} - -VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle(VkDevice device) -{ - TRACE("(VkDevice device = 0x%X)", device); - - vk::Cast(device)->waitIdle(); - - return VK_SUCCESS; +VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle(VkQueue queue) +{ + TRACE("(VkQueue queue = 0x%X)", queue); + + vk::Cast(queue)->waitIdle(); + + return VK_SUCCESS; +} + +VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle(VkDevice device) +{ + TRACE("(VkDevice device = 0x%X)", device); + + vk::Cast(device)->waitIdle(); + + return VK_SUCCESS; } VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) @@ -1209,8 +1209,8 @@ VKAPI_ATTR void VKAPI_CALL vkDestroyCommandPool(VkDevice device, VkCommandPool c VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags) { - TRACE("(VkDevice device = 0x%X, VkCommandPool commandPool = 0x%X, VkCommandPoolResetFlags flags = %d )", - device, commandPool, flags); + TRACE("(VkDevice device = 0x%X, VkCommandPool commandPool = 0x%X, VkCommandPoolResetFlags flags = %d )", + device, commandPool, flags); return vk::Cast(commandPool)->reset(flags); } @@ -1923,9 +1923,9 @@ VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties2(VkPhy VKAPI_ATTR void VKAPI_CALL vkTrimCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags) { - TRACE("(VkDevice device = 0x%X, VkCommandPool commandPool = 0x%X, VkCommandPoolTrimFlags flags = %d)", - device, commandPool, flags); - + TRACE("(VkDevice device = 0x%X, VkCommandPool commandPool = 0x%X, VkCommandPoolTrimFlags flags = %d)", + device, commandPool, flags); + vk::Cast(commandPool)->trim(flags); } diff --git a/tests/VulkanUnitTests/unittests.cpp b/tests/VulkanUnitTests/unittests.cpp index dfde2f8ec3615..eb3c8bd8c5168 100644 --- a/tests/VulkanUnitTests/unittests.cpp +++ b/tests/VulkanUnitTests/unittests.cpp @@ -18,7 +18,7 @@ #include "gtest/gtest.h" #include "gmock/gmock.h" -#include +#include #include #include