Please help to solve my problem with APU graphics performance. Ubuntu 19.10 is freshly installed using defaults on a new PC with the Ryzen3 3200G APU with VEGA 8 graphics.
The driver looks loaded properly but performance is very low, as if there was no hardware acceleration; glxgears runs at 30-50 FPS !
root@HTPC:/home/htpc# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.5.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_5
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.5 (libva 2.5.0)
vainfo: Driver version: Mesa Gallium driver 19.2.1 for AMD RAVEN (DRM 3.33.0, 5.3.0-18-generic, LLVM 9.0.0)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
and
root@HTPC:/home/htpc# lsmod | grep amdgpu
amdgpu 4190208 17
amd_iommu_v2 20480 1 amdgpu
gpu_sched 32768 1 amdgpu
ttm 106496 1 amdgpu
drm_kms_helper 184320 1 amdgpu
drm 491520 8 gpu_sched,drm_kms_helper,amdgpu,ttm
i2c_algo_bit 16384 2 saa716x_tbs_dvb,amdgpu
Everything looks like Ubuntu detected the hardware properly and loaded good drivers, but why is it slower than my old PC with an i3-4130? :(
How may I troubleshoot this for improved graphics performance?