GPUOpen-Drivers / AMDVLK

AMD Open Source Driver For Vulkan
MIT License
1.72k stars 161 forks source link

Vulkan is not identified. #247

Closed Pakrohk closed 3 years ago

Pakrohk commented 3 years ago

For some time now, steam proton and wine games have had problems identifying dx11 (Problem on DXVK), and I used PROTON_USE_WINED3D = 1% command% to solve the problem, until I tried version 4 of the Godot game engine.

image

Vulkan API 1.2.162
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        terminator_CreateInstance: Failed to CreateInstance in ICD 0.  Skipping ICD.
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 147994592
     at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:154)
ERROR: Cannot find a compatible Vulkan installable client driver (ICD).

vkCreateInstance Failure
   at: _create_physical_device (drivers/vulkan/vulkan_context.cpp:673)
ERROR: Could not initialize Vulkan
   at: DisplayServerX11 (platform/linuxbsd/display_server_x11.cpp:3987)

WARNING: Changing the VSync mode is not supported by this display server.
     at: window_get_vsync_mode (servers/display_server.cpp:316)
ERROR: Sub-windows not supported by this display server.
   at: create_sub_window (servers/display_server.cpp:188)
ERROR: Condition "window_id == DisplayServer::INVALID_WINDOW_ID" is true.
   at: _make_window (scene/main/window.cpp:232)

This was very strange to me so with the order of vulkaninfo I tried to get more information but got the following output:

 WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to CreateInstance in ICD 0.  Skipping ICD.
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.2.184/vulkaninfo/vulkaninfo.h:687:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER

I am using an asus n551zu laptop. My hardware is:

cpu: Fx7600p
Gpu: amd R9 m280x
ram: 16gb

Currently the driver installed on my system is xf86-video-amdgpu along with the mesa and amdvlk drivers. I tested the arch linux distribution and the linux-zen and linux-xanmod-lts kernels, but the problem persisted in both kernels.

lspci -k output:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Complex
        Subsystem: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) I/O Memory Management Unit
        Subsystem: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics]
        Subsystem: ASUSTeK Computer Inc. Device 223d
        Kernel driver in use: amdgpu
        Kernel modules: radeon, amdgpu
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller
        Subsystem: ASUSTeK Computer Inc. Device 223d
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Kaveri P2P Bridge for GFX PCIe Port [1:0]
        Kernel driver in use: pcieport
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
        Kernel driver in use: pcieport
00:03.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
        Kernel driver in use: pcieport
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: ahci
        Kernel modules: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: ohci-pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: ohci-pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 16)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel modules: i2c_piix4, sp5100_tco
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 3
        Kernel driver in use: k10temp
        Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 4
        Kernel driver in use: fam15h_power
        Kernel modules: fam15h_power
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 5
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Saturn PRO/XT [Radeon R9 M270X/M280X]
        Subsystem: ASUSTeK Computer Inc. N551ZU laptop Radeon R9 M280X
        Kernel driver in use: amdgpu
        Kernel modules: radeon, amdgpu
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
        Subsystem: Intel Corporation Dual Band Wireless-N 7260
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
        Subsystem: ASUSTeK Computer Inc. Device 18ed
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci
03:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
        Subsystem: ASUSTeK Computer Inc. Device 205f
        Kernel driver in use: r8169
        Kernel modules: r8169