设置Vulkan API时遇到问题

时间:2017-01-13 08:13:55

标签: api vulkan

我想在我的Linux Ubuntu 16.04机器上设置Vulkan API,但它不起作用。我按照"入门"准确。

当我尝试运行vulkaninfo时,我得到了这个:

===========
VULKAN INFO
===========

Vulkan API Version: 1.0.37

INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_core_validation.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_api_dump.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_parameter_validation.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_object_tracker.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_monitor.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_threading.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_swapchain.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_vktrace_layer.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_image.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_screenshot.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d/VkLayer_unique_objects.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/.local/share/vulkan/implicit_layer.d/steamoverlay_i386.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/adrian/.local/share/vulkan/implicit_layer.d/steamoverlay_x86_64.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/icd.d/nvidia_icd.json, version "1.0.0"

Instance Extensions:
====================
Instance Extensions count = 4
    VK_KHR_surface                      : extension revision 25
    VK_KHR_xcb_surface                  : extension revision  6
    VK_KHR_xlib_surface                 : extension revision  6
    VK_EXT_debug_report                 : extension revision  2
/home/adrian/vulkan/VulkanSDK/1.0.37.0/examples/vulkaninfo.c:1481: failed with VK_ERROR_INITIALIZATION_FAILED

当我尝试启动立方体时,我得到了这个:

cube: /home/adrian/vulkan/VulkanSDK/1.0.37.0/examples/cube.c:2789: demo_init_vk: Assertion `!err && gpu_count > 0' failed.
Abgebrochen (Speicherabzug geschrieben)

最后一条消息表示" Aborted"然后在括号中"核心转储"

我正确设置了环境变量:

export PATH=$HOME/vulkan/VulkanSDK/1.0.37.0/x86_64/bin
export LD_LIBRARY_PATH=$HOME/vulkan/VulkanSDK/1.0.37.0/x86_64/lib
export VK_LAYER_PATH=$HOME/vulkan/VulkanSDK/1.0.37.0/x86_64/etc/explicit_layer.d

我有Nvidia Geforce GT 730和支持Vulkan的367.57驱动程序

任何人都可以帮助我吗?

2 个答案:

答案 0 :(得分:0)

作为Vulkan SDK的一部分,包含了Vulkan安装分析器(VIA)。运行此工具以完整分析您的安装。如果您不了解输出,请在LunarXchange(vulkan.lunarg.com)上提交您的VIA输出作为问题,LunarG工程师将为您提供帮助。您可以在此处找到有关如何在SDK安装中运行VIA的文档,或者在LunarXchange上查看它:https://vulkan.lunarg.com/doc/sdk/1.0.37.0/windows/via.html

答案 1 :(得分:0)

在Linux发行版上,如果我安装假/垫片驱动程序(例如,在禁用iGPU时使用Mesa Intel或在我的GPU仍然不受支持的情况下使用Mesa RADV),这就会发生。

请注意,此页面上的Vulkan支持列出
https://developer.nvidia.com/vulkan-driver