SWDEV-408843 - Fix vulkan_interop failure

Fix vulkan_interop build issue on CMake so that
it can be integrated into catch2 batch build.
Fix some test failures.
Update some code format.

Change-Id: I32c9bed861ddf4fe0d7bba21dce9bd720168c397
This commit is contained in:
taosang2
2023-08-02 14:58:42 -04:00
committed by Rakesh Roy
parent 0f99950ba7
commit 8cc7ed5a03
9 changed files with 80 additions and 47 deletions
+2 -1
View File
@@ -39,11 +39,12 @@ VkFence VulkanTest::CreateFence() {
VkSemaphore VulkanTest::CreateExternalSemaphore(VkSemaphoreType sem_type, uint64_t initial_value) {
VkExportSemaphoreCreateInfoKHR export_sem_create_info = {};
VkSemaphoreTypeCreateInfo timeline_create_info = {};
export_sem_create_info.sType = VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO_KHR;
export_sem_create_info.handleTypes = _sem_handle_type;
if (sem_type == VK_SEMAPHORE_TYPE_TIMELINE) {
VkSemaphoreTypeCreateInfo timeline_create_info = {};
timeline_create_info.sType = VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO;
timeline_create_info.semaphoreType = VK_SEMAPHORE_TYPE_TIMELINE;
timeline_create_info.initialValue = initial_value;