OpenGL and NVidia to run under Wine

Questions about Wine on Linux
Locked
alain.roger
Level 2
Level 2
Posts: 17
Joined: Sat Feb 11, 2017 4:04 am

OpenGL and NVidia to run under Wine

Post by alain.roger »

Hi,

I'm trying to use NVidia card from my laptop under wine. First, I checked glxinfo -B:

Code: Select all

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 1536 MB
    Total available memory: 1536 MB
    Currently available dedicated video memory: 722 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 460M/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 390.138
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 390.138
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.138
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
However, when i run the windows app i get the following error:
0249:err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.

i also setup : winetricks orm=backbuffer glsl=disable
but without any help. It is not faster and still the background of window is black for a while before to be painted to standard app color.

How could i solve it ?
thx
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: OpenGL and NVidia to run under Wine

Post by jkfloris »

from my laptop
Do you have an NVIDIA Optimus/ PRIME/ multi-GPU laptop?
0249:err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
This doesn't always have to be a problem
when i run the windows app
..
How could i solve it ?
Can we download and test this application?
Which Wine version do you use?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: OpenGL and NVidia to run under Wine

Post by Bob Wya »

alain.roger wrote: Thu Dec 17, 2020 3:24 pm ...
i also setup : winetricks orm=backbuffer glsl=disable
but without any help. It is not faster and still the background of window is black for a while before to be painted to standard app color.

How could i solve it ?
thx
@alain.roger

Using the legacy Nvidia may be an issue, I'm not certain of this however...

If you remove these obsolete overrides and could retest, generating a Wine terminal log, using something like:

Code: Select all

cd ~/.wine/drive_c/???
WINEDEBUG=+wgl,+tid wine ???.exe &>~/wine_terminal_log.txt
So change directory to game executable. Launch the game executable directly with Wine.
Obviously you need to determine what the ??? paths should be, for your game (the example above assumes you are using the default WINEPREFIX path).

See: WineHQ FAQ for more information on how to run applications with Wine and how to obtain a terminal log (if you aren't already familiar with this process!)

Also you'd want to ensure that you have an up-to-date version of Wine or Wine Staging, currently version: 6.0-rc2.

Bob
alain.roger
Level 2
Level 2
Posts: 17
Joined: Sat Feb 11, 2017 4:04 am

Re: OpenGL and NVidia to run under Wine

Post by alain.roger »

jkfloris wrote: Thu Dec 17, 2020 5:48 pm Do you have an NVIDIA Optimus/ PRIME/ multi-GPU laptop?
I have a Nvidia GTX460M
jkfloris wrote: Thu Dec 17, 2020 5:48 pm Can we download and test this application?
Which Wine version do you use?
I'm testing Photoshop 2015 actually, but this issue (err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.) i have also with others windows applications and games. Basically it would be great to be able to use the perfomance of the video card and not a virtual card with limited performance.

I use wine-5.0.3
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: OpenGL and NVidia to run under Wine

Post by Bob Wya »

alain.roger wrote: Fri Dec 18, 2020 11:09 am ...
I'm testing Photoshop 2015 actually, but this issue (err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.) i have also with others windows applications and games. Basically it would be great to be able to use the perfomance of the video card and not a virtual card with limited performance.

I use wine-5.0.3
You probably want to take a look at: WineHQ AppDB: Graphics Editing / Adobe Photoshop / CC 2015 (16.0).

E.g.
If you're facing a black canvas, it helped me to disable the option: "Use Graphics Processor" under Edit > Performance
I believe Photoshop uses CUDA, for GPU acceleration, which isn't supported under Wine.

Bob
Locked