Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76668

[macOS] Vulkan Window won't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.12.4
    • Fix Version/s: None
    • Component/s: GUI: Vulkan
    • Labels:
      None
    • Environment:
      macOS 10.14.5, Xcode 10.2
    • Platform/s:
      macOS

      Description

      Qt 5.12.4 vulkan enabled build won't work with MoltenVK on macOS. Followings are output by running hellovulkanwindow example.

      4:03:40: Starting /Users/akihitoi/Qt/Examples/Qt-5.12.4/vulkan/build-hellovulkanwindow-Qt_5_12_4_Vulkan-Release/hellovulkanwindow.app/Contents/MacOS/hellovulkanwindow ...
      qt.vulkan: Vulkan init (/Users/akihitoi/MoltenVK/Package/Release/MoltenVK/macOS/dynamic/libMoltenVK.dylib)
      qt.vulkan: Supported Vulkan instance layers: QVector(QVulkanLayer("MoltenVK" 10036 1.0.108 "MoltenVK driver layer"))
      qt.vulkan: Supported Vulkan instance extensions: QVector(QVulkanExtension("VK_KHR_16bit_storage" 1), QVulkanExtension("VK_KHR_8bit_storage" 1), QVulkanExtension("VK_KHR_bind_memory2" 1), QVulkanExtension("VK_KHR_dedicated_allocation" 3), QVulkanExtension("VK_KHR_descriptor_update_template" 1), QVulkanExtension("VK_KHR_get_memory_requirements2" 1), QVulkanExtension("VK_KHR_get_physical_device_properties2" 1), QVulkanExtension("VK_KHR_get_surface_capabilities2" 1), QVulkanExtension("VK_KHR_image_format_list" 1), QVulkanExtension("VK_KHR_maintenance1" 2), QVulkanExtension("VK_KHR_maintenance2" 1), QVulkanExtension("VK_KHR_maintenance3" 1), QVulkanExtension("VK_KHR_push_descriptor" 2), QVulkanExtension("VK_KHR_relaxed_block_layout" 1), QVulkanExtension("VK_KHR_sampler_mirror_clamp_to_edge" 1), QVulkanExtension("VK_KHR_shader_draw_parameters" 1), QVulkanExtension("VK_KHR_shader_float16_int8" 1), QVulkanExtension("VK_KHR_storage_buffer_storage_class" 1), QVulkanExtension("VK_KHR_surface" 25), QVulkanExtension("VK_KHR_swapchain" 70), QVulkanExtension("VK_KHR_swapchain_mutable_format" 1), QVulkanExtension("VK_KHR_variable_pointers" 1), QVulkanExtension("VK_EXT_debug_marker" 4), QVulkanExtension("VK_EXT_debug_report" 9), QVulkanExtension("VK_EXT_debug_utils" 1), QVulkanExtension("VK_EXT_host_query_reset" 1), QVulkanExtension("VK_EXT_memory_budget" 1), QVulkanExtension("VK_EXT_shader_viewport_index_layer" 1), QVulkanExtension("VK_EXT_vertex_attribute_divisor" 3), QVulkanExtension("VK_EXTX_portability_subset" 1), QVulkanExtension("VK_MVK_macos_surface" 2), QVulkanExtension("VK_MVK_moltenvk" 21), QVulkanExtension("VK_AMD_gpu_shader_half_float" 2), QVulkanExtension("VK_AMD_negative_viewport_height" 1), QVulkanExtension("VK_NV_glsl_shader" 1))
      qt.vulkan: Enabling Vulkan instance layers: ()
      qt.vulkan: Enabling Vulkan instance extensions: ("VK_EXT_debug_report", "VK_KHR_surface")
      [mvk-info] MoltenVK version 1.0.36. Vulkan version 1.0.108.
      	The following 35 Vulkan extensions are supported:
      		VK_KHR_16bit_storage v1
      		VK_KHR_8bit_storage v1
      		VK_KHR_bind_memory2 v1
      		VK_KHR_dedicated_allocation v3
      		VK_KHR_descriptor_update_template v1
      		VK_KHR_get_memory_requirements2 v1
      		VK_KHR_get_physical_device_properties2 v1
      		VK_KHR_get_surface_capabilities2 v1
      		VK_KHR_image_format_list v1
      		VK_KHR_maintenance1 v2
      		VK_KHR_maintenance2 v1
      		VK_KHR_maintenance3 v1
      		VK_KHR_push_descriptor v2
      		VK_KHR_relaxed_block_layout v1
      		VK_KHR_sampler_mirror_clamp_to_edge v1
      		VK_KHR_shader_draw_parameters v1
      		VK_KHR_shader_float16_int8 v1
      		VK_KHR_storage_buffer_storage_class v1
      		VK_KHR_surface v25
      		VK_KHR_swapchain v70
      		VK_KHR_swapchain_mutable_format v1
      		VK_KHR_variable_pointers v1
      		VK_EXT_debug_marker v4
      		VK_EXT_debug_report v9
      		VK_EXT_debug_utils v1
      		VK_EXT_host_query_reset v1
      		VK_EXT_memory_budget v1
      		VK_EXT_shader_viewport_index_layer v1
      		VK_EXT_vertex_attribute_divisor v3
      		VK_EXTX_portability_subset v1
      		VK_MVK_macos_surface v2
      		VK_MVK_moltenvk v21
      		VK_AMD_gpu_shader_half_float v2
      		VK_AMD_negative_viewport_height v1
      		VK_NV_glsl_shader v1
      [mvk-info] GPU device:
      		model: AMD Radeon Pro 460
      		type: Discrete
      		vendorID: 0x1002
      		deviceID: 0x67ef
      		pipelineCacheUUID: 00002734-0000-2715-4104-E363005A079A
      	supports Metal Shading Language version 2.1 and the following Metal Feature Sets:
      		macOS GPU Family 2 v1
      		macOS GPU Family 1 v4
      		macOS GPU Family 1 v3
      		macOS GPU Family 1 v2
      		macOS GPU Family 1 v1
      		macOS Read-Write Texture Tier 2
      [mvk-info] GPU device:
      		model: Intel(R) HD Graphics 530
      		type: Integrated
      		vendorID: 0x8086
      		deviceID: 0x191b
      		pipelineCacheUUID: 00002734-0000-2715-4104-E363005A079A
      	supports Metal Shading Language version 2.1 and the following Metal Feature Sets:
      		macOS GPU Family 2 v1
      		macOS GPU Family 1 v4
      		macOS GPU Family 1 v3
      		macOS GPU Family 1 v2
      		macOS GPU Family 1 v1
      [mvk-info] Created VkInstance with the following 2 Vulkan extensions enabled:
      		VK_KHR_surface v25
      		VK_EXT_debug_report v9
      surface:  0x0
      qt.vulkan: QVulkanWindow init
      Failed to find vkCreateMacOSSurfaceMVK
      QVulkanWindow: Failed to retrieve Vulkan surface for window
      qt.vulkan: QVulkanWindow init
      Failed to find vkCreateMacOSSurfaceMVK
      QVulkanWindow: Failed to retrieve Vulkan surface for window
      

      Set QT_VULKAN_LIB=/Users/akihitoi/MoltenVK/Package/Release/MoltenVK/macOS/dynamic/libMoltenVK.dylib on Qt Creator.

       

      > Failed to find vkCreateMacOSSurfaceMVK 

      It seems that libMoltenVK.dylib doesn't export above.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            akizawa Akihito Izawa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes