Wine does not detect gpu?

Questions about Wine on Linux
Locked
peppeppep
Newbie
Newbie
Posts: 2
Joined: Fri Mar 11, 2022 4:09 pm

Wine does not detect gpu?

Post by peppeppep »

Currently i am trying to use wine with an Nvidia Geforce GTX 760 and nvidia-470xx-dkms drivers from the AUR.
When trying to run a game, wine seems falls back onto llvmpipe.

Driver version: 470.103.01
X Version: 11.0
Arch linux

Wine log in terminal:

Code: Select all

002c:err:module:load_apiset_dll failed to load apiset: c0000482
0034:err:module:load_apiset_dll failed to load apiset: c0000482
003c:err:module:load_apiset_dll failed to load apiset: c0000482
0048:err:module:load_apiset_dll failed to load apiset: c0000482
0068:err:module:load_apiset_dll failed to load apiset: c0000482
007c:err:module:load_apiset_dll failed to load apiset: c0000482
0094:err:module:load_apiset_dll failed to load apiset: c0000482
00bc:err:module:load_apiset_dll failed to load apiset: c0000482
00d4:err:module:load_apiset_dll failed to load apiset: c0000482
0024:err:module:load_apiset_dll failed to load apiset: c0000482
00f8:err:module:load_apiset_dll failed to load apiset: c0000482
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 13.0.1, 256 bits)").
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 13.0.1, 256 bits)").
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 13.0.1, 256 bits)").
007c:fixme:imm:ImeSetActiveContext (0x258ee0, 0): stub
007c:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000258EE0): stub
0024:fixme:imm:ImeSetActiveContext (0x397198, 1): stub
0024:fixme:imm:ImmReleaseContext (0001004E, 00397198): stub
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 13.0.1, 256 bits)").
0024:fixme:ddraw:ddraw7_WaitForVerticalBlank iface 0036E438, flags 0x1, event 00000000 stub!
0024:fixme:ddraw:DirectDrawEnumerateExA flags 0x00000004 not handled
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 13.0.1, 256 bits)").
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 13.0.1, 256 bits)").
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 13.0.1, 256 bits)").
0024:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
Installed cmd with winetricks and ran "wmic path win32_VideoController get name"

Code: Select all

0120:err:module:load_apiset_dll failed to load apiset: c0000482
0120:fixme:ole:CoInitializeSecurity 00000000, -1, 00000000, 00000000, 0, 3, 00000000, 0, 00000000 stub
info:  Game: wmic.exe
info:  DXVK: v1.10
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
0120:err:vulkan:wine_vk_instance_load_physical_devices Failed to enumerate physical devices, res=-3
0120:err:vulkan:wine_vkCreateInstance Failed to load physical devices, res=-3
err:   DxvkInstance::createInstance: Failed to create Vulkan 1.1 instance
Name
VideoController1
Looks like gpu works fine outside of wine. Installed dxvk using dxvk-bin and "setup_dxvk install" command.
hotfrostworm
Level 2
Level 2
Posts: 15
Joined: Fri Nov 06, 2020 3:20 pm

Re: Wine does not detect gpu?

Post by hotfrostworm »

Have you tried messing around with the registry settings?
https://wiki.winehq.org/Useful_Registry_Keys

The page states; On (mostly proprietary) drivers not supporting GLX_MESA_query_renderer, Wine will
instead try to pick an appropriate set of PCI IDs based on the OpenGL GL_RENDERER,
GL_VENDOR, and GL_EXTENSIONS strings.

Under the render topic; As of Wine 5.1, gl is the default and vulkan is still work in progress,
so don't expect great results with it yet.


Under HKEY_CURRENT_USER +Software +Wine +Direct3D
VideoPciDeviceID = Dword
VideoPciVendorID = Dword

You can obtain the 2 hex numbers using;
$ lspci -nn | grep VGA
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine does not detect gpu?

Post by jkfloris »

Which Wine version do you use?
It looks like bug 52614.
Do you have the same problem with Wine 7.4?
peppeppep
Newbie
Newbie
Posts: 2
Joined: Fri Mar 11, 2022 4:09 pm

Re: Wine does not detect gpu?

Post by peppeppep »

I'm using wine 7.4
After applying the registry change the log is now:

Code: Select all

0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
007c:fixme:imm:ImeSetActiveContext (0x273820, 0): stub
007c:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000273820): stub
0024:fixme:imm:ImeSetActiveContext (0x3a5288, 1): stub
0024:fixme:imm:ImmReleaseContext (0001004E, 003A5288): stub
0024:fixme:ddraw:ddraw7_WaitForVerticalBlank iface 003AE8B0, flags 0x1, event 00000000 stub!
0024:fixme:ddraw:DirectDrawEnumerateExA flags 0x00000004 not handled
0024:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
It runs but there is no gpu usage and low fps
I tried running other games and they have the same problem
Locked