RX 6900 XT reported as HD5600 in windows games

Questions about Wine on Linux
Locked
Fionn
Newbie
Newbie
Posts: 4
Joined: Thu Nov 02, 2023 3:39 pm

RX 6900 XT reported as HD5600 in windows games

Post by Fionn »

Hi
I'm running
OS: Linux Mint 21.2 x86_64
Host: MS-7B09 1.0
Kernel: 5.15.0-88-generic
DE: Xfce 4.18
WM: Xfwm4

wine-8.19 (Staging)

lspci -nn | grep VGA
glxinfo -B
45:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6900 XT] [1002:73af] (rev c0)
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD Radeon RX 6900 XT (navi21, LLVM 16.0.6, DRM 3.54, 5.15.0-88-generic) (0x73af)
Version: 23.2.0
Accelerated: yes
Video memory: 16384MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 15437 MB, largest block: 15437 MB
VBO free aux. memory - total: 31784 MB, largest block: 31784 MB
Texture free memory - total: 15437 MB, largest block: 15437 MB
Texture free aux. memory - total: 31784 MB, largest block: 31784 MB
Renderbuffer free memory - total: 15437 MB, largest block: 15437 MB
Renderbuffer free aux. memory - total: 31784 MB, largest block: 31784 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 16384 MB
Total available memory: 48511 MB
Currently available dedicated video memory: 15437 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 6900 XT (navi21, LLVM 16.0.6, DRM 3.54, 5.15.0-88-generic)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.2.0-devel
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.2.0-devel
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.2.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

1 example is starcraft2 but all games do report the same HD5600.
sc2.png
some games do refuse to start as "minimum HW not met"

Is there a way to change this to the actual card in wine?

Thank you
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: RX 6900 XT reported as HD5600 in windows games

Post by jkfloris »

Does it make a difference if you start the game with a fake PCI ID?
This is the PCI ID of the Radeon RX 6800/6800 XT / 6900 XT

Code: Select all

WINE_D3D_CONFIG="VideoPciVendorID=0x1002;VideoPciDeviceID=0x73bf" wine program.exe
Fionn
Newbie
Newbie
Posts: 4
Joined: Thu Nov 02, 2023 3:39 pm

Re: RX 6900 XT reported as HD5600 in windows games

Post by Fionn »

Thank you for the feedback. :)

Does not seem to work.

Code: Select all

WINE_D3D_CONFIG="VideoPciVendorID=0x1002;VideoPciDeviceID=0x73bf" wine /path/to/StarCraft II.exe
002c:fixme:winediag:loader_init wine-staging 8.19 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
Application could not be started, or no application associated with the specifie
d file.
ShellExecuteEx failed: File not found.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: RX 6900 XT reported as HD5600 in windows games

Post by jkfloris »

Code: Select all

Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.
Somewhere there is an error in the path or name of the file.

Code: Select all

# Go to the StarCraft II.exe directory:
cd "/path/to/StarCraft"

# Run StarCraft:
# (Since the name contains a space, it needs to be quoted.)
WINE_D3D_CONFIG="VideoPciVendorID=0x1002;VideoPciDeviceID=0x73bf" wine "StarCraft II.exe"
Fionn
Newbie
Newbie
Posts: 4
Joined: Thu Nov 02, 2023 3:39 pm

Re: RX 6900 XT reported as HD5600 in windows games

Post by Fionn »

jkfloris wrote: Fri Nov 03, 2023 4:53 pm Does it make a difference if you start the game with a fake PCI ID?
This is the PCI ID of the Radeon RX 6800/6800 XT / 6900 XT

Code: Select all

WINE_D3D_CONFIG="VideoPciVendorID=0x1002;VideoPciDeviceID=0x73bf" wine program.exe
Yes it makes a difference, the games which refused to start now starts just fine :)
Can I make it somehow permanent?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: RX 6900 XT reported as HD5600 in windows games

Post by jkfloris »

You can add these values to the registry.
This is possible with:

Code: Select all

wine reg add 'HKCU\Software\Wine\Direct3D' /v 'VideoPciVendorID' /d '0x1002'
wine reg add 'HKCU\Software\Wine\Direct3D' /v 'VideoPciDeviceID' /d '0x73bf'
Fionn
Newbie
Newbie
Posts: 4
Joined: Thu Nov 02, 2023 3:39 pm

Re: RX 6900 XT reported as HD5600 in windows games

Post by Fionn »

reg: The operation completed successfully
Perfect thanks a lot for your support :)
Locked