You are not logged in.

#1 2018-02-27 08:50:51

eamonn
Member
Registered: 2018-02-27
Posts: 9

Switching from NVIDIA gtx 970 to AMD RX 580

Hi all,

After swapping out a gtx 970 for a new RX 580, uninstalling all the existing nvidia drivers and removing any config I had and then installing the AMDGPU opensource drivers things don't seem to be right. If I open and close a window very quickly, in the wake of that window are gpu artefacts for a short while. Furthermore, the performance has been very poor and using Radeon Profile my GPU usage never goes above 0%, although, a small amount of vram is being used.

I am at a loss on how I can diagnose what is going wrong here? The stdout of xorg doesn't seem to give any clues.

Thanks

Offline

#2 2018-02-27 08:58:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Switching from NVIDIA gtx 970 to AMD RX 580

What environment specifically? Have you looked at your xorg.log? What's the output of

glxinfo | grep OpenGL

Offline

#3 2018-02-27 09:09:19

eamonn
Member
Registered: 2018-02-27
Posts: 9

Re: Switching from NVIDIA gtx 970 to AMD RX 580

What do you mean exactly by what environment? I am using i3wm, a 4k 60hz monitor, the mesa drivers, and xf86-video-amdgpu.

Looking at /var/log/Xorg.0.log didn't seem to give any clues either. It looks like the device is detected without issue and acceleration is enabled.

The output of gtxinfo | grep OpenGL was:

OpenGL vendor string: X.Org
OpenGL renderer string: Radeon RX 580 Series (POLARIS10 / DRM 3.23.0 / 4.15.5-1-ARCH, LLVM 5.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.5
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.3.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Offline

#4 2018-02-27 09:15:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Switching from NVIDIA gtx 970 to AMD RX 580

eamonn wrote:

What do you mean exactly by what environment? I am using i3wm, a 4k 60hz monitor, the mesa drivers, and xf86-video-amdgpu.

This is what I meant. Two things to try, current kernels might have an issue with the new dc code so if you aren't relying on it (most specifically HDMI/DP audio output) try booting with

amdgpu.dc=0

in your kernel params. if that didn't help already. Try to use a compositor, because afaik (anyone correct me if I'm wrong here) amdgpu doesn't implement a dedicated 2D renderer like earlier drivers and opts to use GLAMOR which might need a compositor for proper operation/flickerfree operation.

Last edited by V1del (2018-02-27 09:16:42)

Offline

#5 2018-02-27 10:21:05

eamonn
Member
Registered: 2018-02-27
Posts: 9

Re: Switching from NVIDIA gtx 970 to AMD RX 580

Huh. It seems like using awesome as the wm fixes all the issues. Is there no known way to use a modern AMD gpu with i3 and not get correct operation?

It also seems like the 0% gpu usage was a red herring. Also is there any reason why webgl performance seems to be so slow? http://webglsamples.org/aquarium/aquarium.html This demo runs awfully for me but spinning up a ton of glxgears instances works perfectly smoothly.

Last edited by eamonn (2018-02-27 10:25:54)

Offline

#6 2018-02-27 14:47:07

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,558

Re: Switching from NVIDIA gtx 970 to AMD RX 580

Amdgpu has always used glamor, and it's been the default for older chipsets for a few years now.

webgl performance : which browser are you using ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2018-03-01 08:01:27

eamonn
Member
Registered: 2018-02-27
Posts: 9

Re: Switching from NVIDIA gtx 970 to AMD RX 580

Yep, should have tried another browser, google-chrome had performance issues with webgl but good old firefox seems to be doing much better.

I have been playing around with bspwm and have found it doesn't have as bad artifacting issues (very infrequently there is a checkerboard effect) but still has an awful framerate moving windows around. I also can't seem to be able to get rid of screen tearing. I have tried all manner of different configurations with compton and  putting Option "TearFree" "true" in my /etc/X11/xorg.conf.d/20-amdgpu.conf but with no avail.

What exactly going on here? I have tried to search around to find other people using amd GPUs and i3wm or bspwm and experiencing these issues but haven't found much. Is the only option to use another window manager? Thanks, I would greatly help being pointed in the right the direction for finding out more.

Offline

#8 2018-03-01 13:34:03

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,558

Re: Switching from NVIDIA gtx 970 to AMD RX 580

Are you using a compositor like compton with i3 ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2018-03-02 03:22:35

eamonn
Member
Registered: 2018-02-27
Posts: 9

Re: Switching from NVIDIA gtx 970 to AMD RX 580

Yes I have tried a bunch of different configs with compton to get rid of the screen tearing. I am still getting very bad performance using a wm like i3 or bspwm but awesomewm seems to be fine.

Offline

#10 2018-03-02 11:26:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,558

Re: Switching from NVIDIA gtx 970 to AMD RX 580

awesomewm also doesn't have  a compositor, you could try something like openbox .
If both openbox and awesomewm perform fine, the problem must be in i3 or bspwm screen/rendering handling.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#11 2018-03-04 06:58:53

eamonn
Member
Registered: 2018-02-27
Posts: 9

Re: Switching from NVIDIA gtx 970 to AMD RX 580

Openbox does seem to be performing fine too. Does someone what to try and see if they are experiencing the same thing as me? Using i3 or bspwm open the file picker dialog and move it around the screen. Performance should seem choppy. Now do the same thing in openbox or awesomewm and it what I am finding is a silky 60fps.

Offline

Board footer

Powered by FluxBB