Poor performance on RX 580 (Polaris20)
System information
- OS: Archlinux (5.5.13)
- GPU: AMD RX 580 (09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7))
- Kernel version: 5.5.13
- Mesa version: mesa-19.3.4
- Xserver version (if applicable): 1.20.7
- Desktop manager and compositor: AwesomeWM + compton
Describe the issue
Running
ffmpeg -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'hwupload,scale_vaapi=w=1920:h=1080:format=nv12' -c:v h264_vaapi -b:v 5M -maxrate 5M output.mp4
Yields 30fps (0.5x)
I would expect >60fps on a RX 580.
Regression
First time I try, new GPU.
Log files as attachment
Let me know what you need me to provide here