Hardware acceleration with AMD Radeon RX580

Hi

I’m trying to get decent graphics performance in FlightGear but at the moment it’s struggling to make 2 or 3 fps. glxinfo tells me:

glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: VMware, Inc. (0xffffffff)
    Device: llvmpipe (LLVM 3.8, 128 bits) (0xffffffff)
    Version: 17.0.5
    Accelerated: no
    Video memory: 7938MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.8, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.0.5
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 17.0.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00


so I’m taking that to mean that hardware acceleration is not operating.

The setup is new PC with an AMD Ryzen 5 and Radeon RX580 and I just did a fresh install of 42.3 (sitting alongside Windows 10 in dual boot), so the setup is exactly as the Opensuse installer decided.
Am I right that I have no hardware acceleration? If so, how light I enable it?

Cheers

Fred

Are you running in a VM?? In general VM’s do not have direct Video hardware rendering since the host owns the hardware

On Tue 07 Aug 2018 01:56:03 PM CDT, gogalthorp wrote:

Are you running in a VM?? In general VM’s do not have direct Video
hardware rendering since the host owns the hardware

Hi
Could also be the new hardware with old kernel…

@OP, why not install Leap 15.0 it should have better support for your
hardware?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.6-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

No,as I say, just dual booting with Windows.

Yeah, was toying with that idea, but wasn’t sure it would make any difference. I guess from what you guys are saying that I’m right there’s no acceleration?

Hi
It’s not even using the amdgpu or radeon driver, falling back to a vmware one…

What does the output from the following say;


/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"

This is from a Mullins card… 4.12.x kernel;


 glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD MULLINS (DRM 3.15.0 / 4.12.14-25.6-default, LLVM 5.0.1) (0x9851)
    Version: 18.0.2
    Accelerated: yes
....

/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
09:00.0 **VGA** compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/580] [1002:67df] (rev c7)
        Subsystem: Dell Device [1028:1701]
09:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 580] [1002:aaf0]
        Subsystem: Dell Device [1028:aaf0]

On Tue 07 Aug 2018 05:16:02 PM CDT, fredsie wrote:

malcolmlewis;2876613 Wrote:
> Hi
> It’s not even using the amdgpu or radeon driver, falling back to a
> vmware one…
>
> What does the output from the following say;
> >
Code:

> >
> /sbin/lspci -nnk | egrep -A3 “VGA|Display|3D”
>

> >
>
>

Code:

/sbin/lspci -nnk | egrep -A3 “VGA|Display|3D”
09:00.0 VGA compatible controller [0300]: Advanced Micro Devices,
Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/580] [1002:67df] (rev
c7) Subsystem: Dell Device [1028:1701] 09:00.1 Audio device [0403]:
Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 580]
[1002:aaf0] Subsystem: Dell Device [1028:aaf0] --------------------

Hi
Nothing… I would suggest grabbing a Tumbleweed live USB image and
boot from that to see if it’s working, also run that command again. I
suspect you will have more success…


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.6-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

OK thanks, will give that a go.

Well I tried to do that and got into a whole bunch of other issues - couldn’t boot from DVD (Dual boot with Windows 10, Fastboot, Secure boot …) but that’s all stuff for a different thread!
But I was convinced that your idea was correct - that the kernel with 42.3 just couldn’t cope with my very recent hardware. So I decided to jump in with both feet. Since I couldn’t (yet) use external installation media I just went for a zypper dup to version 15. Worked without a hitch, and now FlightGear is running at between 42 and 50 fps with all the default complexity settings active. And the output from glxinfo is now:

glxinfo -B    
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.15.0 / 4.12.14-lp150.12.10-default, LLVM 5.0.1) (0x67df)
    Version: 18.0.2
    Accelerated: yes
    Video memory: 8154MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: X.Org
OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.15.0 / 4.12.14-lp150.12.10-default, LLVM 5.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 18.0.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.0.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10


It’s also fixed a number of minor display glitches (e.g. Google maps faulty display) that I had just been ignoring.
Many thanks Malcolm for your help. :good:

Regards

Fred