Valve 的游戏 Artifact 错误!创建交换链无法查询支持格式的大小!

Valve 的游戏 Artifact 错误!创建交换链无法查询支持格式的大小!

我有 Geforce 660M,尝试安装 mesa 驱动程序,但我觉得我做的坏事比好事多。如果我使用 prime-select intel 从 Nvidia 切换到 Intel,游戏在安装 mesa 驱动程序和 vulkan lunar sdk 之前启动(启动了,但图形很低,没有字体,什么都读不出来),现在它可以启动,但我能听到游戏声音,只能看到光标,其余都是黑屏。如果我将 Nvidia 用作 prime 并在 steam 的设置启动设置中输入 -gl,也会发生同样的情况。

我使用 Ubuntu 18.04.1。

glxinfo | grep "OpenGL version"
OpenGL version string: 4.6.0 NVIDIA 410.78

也许这有帮助,当我使用时,vulkaninfo我得到了这个:

$ vulkaninfo
VULKANINFO

Vulkan Instance Version: 1.1.92

ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete

INTEL-MESA: warning: ../src/intel/vulkan/anv_device.c:1204: FINISHME: Implement pop-free point clipping
Instance Extensions:
Instance Extensions count = 17VK_EXT_acquire_xlib_display : extension revision 1VK_EXT_debug_report : extension revision 8VK_EXT_debug_utils : extension revision 1VK_EXT_direct_mode_display : extension revision 1VK_EXT_display_surface_counter : extension revision 1VK_KHR_device_group_creation : extension revision 1VK_KHR_display : extension revision 23VK_KHR_external_fence_capabilities : extension revision 1VK_KHR_external_memory_capabilities : extension revision 1VK_KHR_external_semaphore_capabilities: extension revision 1VK_KHR_get_display_properties2 : extension revision 1VK_KHR_get_physical_device_properties2: extension revision 1VK_KHR_get_surface_capabilities2 : extension revision 1VK_KHR_surface : extension revision 25VK_KHR_wayland_surface : extension revision 6VK_KHR_xcb_surface : extension revision 6VK_KHR_xlib_surface : extension revision 6Layers: count = 16

VK_LAYER_GOOGLE_threading (Google Validation Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_GOOGLE_unique_objects (Google Validation Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_LUNARG_api_dump (LunarG debug layer) Vulkan version 1.1.92, layer version 2
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_LUNARG_assistant_layer (LunarG Validation Layer Factory Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4

VK_LAYER_LUNARG_core_validation (LunarG Validation Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 2
VK_EXT_debug_marker : extension revision 4
VK_EXT_validation_cache : extension revision 1
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 2
VK_EXT_debug_marker : extension revision 4
VK_EXT_validation_cache : extension revision 1

VK_LAYER_LUNARG_demo_layer (LunarG Validation Layer Factory Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4

VK_LAYER_LUNARG_device_simulation (LunarG device simulation layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_LUNARG_monitor (Execution Monitoring Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_LUNARG_object_tracker (LunarG Validation Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4

VK_LAYER_LUNARG_parameter_validation (LunarG Validation Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4

VK_LAYER_LUNARG_screenshot (LunarG image capture layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_LUNARG_standard_validation (LunarG Standard Validation) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 2
VK_EXT_debug_marker : extension revision 4
VK_EXT_validation_cache : extension revision 1
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 2
VK_EXT_debug_marker : extension revision 4
VK_EXT_validation_cache : extension revision 1

VK_LAYER_LUNARG_starter_layer (LunarG Validation Layer Factory Layer) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 1
VK_EXT_debug_report : extension revision 6
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 1
VK_EXT_debug_marker : extension revision 4

VK_LAYER_LUNARG_vktrace (Vktrace tracing library) Vulkan version 1.1.92, layer version 1
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_VALVE_steam_overlay_32 (Steam Overlay Layer) Vulkan version 1.1.73, layer version 1
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0

VK_LAYER_VALVE_steam_overlay_64 (Steam Overlay Layer) Vulkan version 1.1.73, layer version 1
Layer Extensions count = 0
Devices count = 2
GPU id : 0 (GeForce GTX 660M)
Layer-Device Extensions count = 0
GPU id : 1 (Intel(R) Ivybridge Mobile)
Layer-Device Extensions count = 0
Presentable Surfaces:

GPU id : 0 (GeForce GTX 660M)
Surface type : VK_KHR_xcb_surface
vulkaninfo: /build/vulkan-tools-1.1.92.0~rc3/vulkaninfo/vulkaninfo.c:1309: AppDumpSurfaceFormats: Assertion `!err' failed.
Aborted (core dumped)

答案1

我通过sudo vulkaninfo在终端中使用而不是直接使用解决了这个vulkaninfo问题,它显示了所有信息而没有错误。我不知道为什么我甚至需要使用这个命令,但在我使用它之后,Artifact 启动没有问题。

相关内容