Skip to content

Commit

Permalink
loader: QNX Screen WSI not supported for VulkanSC
Browse files Browse the repository at this point in the history
  • Loading branch information
aruby-blackberry authored and aqnuep committed Apr 14, 2024
1 parent 6b77445 commit ab7cbd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions loader/wsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,14 @@ void wsi_create_instance(struct loader_instance *loader_inst, const VkInstanceCr
continue;
}
#endif
#ifndef VULKANSC
#if defined(VK_USE_PLATFORM_SCREEN_QNX)
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_QNX_SCREEN_SURFACE_EXTENSION_NAME) == 0) {
loader_inst->wsi_screen_surface_enabled = true;
continue;
}
#endif // VK_USE_PLATFORM_SCREEN_QNX
#endif // VULKANSC
#if defined(VK_USE_PLATFORM_VI_NN)
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_NN_VI_SURFACE_EXTENSION_NAME) == 0) {
loader_inst->wsi_vi_surface_enabled = true;
Expand Down Expand Up @@ -1623,6 +1625,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateMetalSurfaceEXT(VkInstance insta

#endif // VK_USE_PLATFORM_METAL_EXT

#ifndef VULKANSC
#if defined(VK_USE_PLATFORM_SCREEN_QNX)

// This is the trampoline entrypoint for CreateScreenSurfaceQNX
Expand Down Expand Up @@ -1743,6 +1746,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL terminator_GetPhysicalDeviceScreenPresentationSup
return icd_term->dispatch.GetPhysicalDeviceScreenPresentationSupportQNX(phys_dev_term->phys_dev, queueFamilyIndex, window);
}
#endif // VK_USE_PLATFORM_SCREEN_QNX
#endif // VULKANSC

#if defined(VK_USE_PLATFORM_VI_NN)

Expand Down Expand Up @@ -2992,6 +2996,7 @@ bool wsi_swapchain_instance_gpa(struct loader_instance *loader_inst, const char
}
#endif // VK_USE_PLATFORM_METAL_EXT

#ifndef VULKANSC
#if defined(VK_USE_PLATFORM_SCREEN_QNX)

// Functions for the VK_QNX_screen_surface extension:
Expand All @@ -3004,6 +3009,7 @@ bool wsi_swapchain_instance_gpa(struct loader_instance *loader_inst, const char
return true;
}
#endif // VK_USE_PLATFORM_SCREEN_QNX
#endif // VULKANSC

#if defined(VK_USE_PLATFORM_VI_NN)

Expand Down
2 changes: 2 additions & 0 deletions loader/wsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ terminator_CreateStreamDescriptorSurfaceGGP(VkInstance instance, const VkStreamD
VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateMetalSurfaceEXT(VkInstance instance, const VkMetalSurfaceCreateInfoEXT *pCreateInfo,
const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface);
#endif
#ifndef VULKANSC
#if defined(VK_USE_PLATFORM_SCREEN_QNX)
VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateScreenSurfaceQNX(VkInstance instance,
const VkScreenSurfaceCreateInfoQNX *pCreateInfo,
Expand All @@ -168,6 +169,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL terminator_GetPhysicalDeviceScreenPresentationSup
uint32_t queueFamilyIndex,
struct _screen_window *window);
#endif // VK_USE_PLATFORM_SCREEN_QNX
#endif // VULKANSC
#if defined(VK_USE_PLATFORM_VI_NN)
VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateViSurfaceNN(VkInstance instance, const VkViSurfaceCreateInfoNN *pCreateInfo,
const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface);
Expand Down

0 comments on commit ab7cbd1

Please sign in to comment.