Significant performance drop on Radeon HD 8400
OS: Fatdog64-812 [WIP] x86_64 Linux, Mesa-21.2.1, but currently 21.1.8 and before (in Fatdog64-811) it was 18.3.6.
GPU: AMD Kabini [Radeon HD 8400 / R3 Series], 512M shared VRAM, integrated in AMD-A6 5200.
Kernel: 5.10.63
X.Org X Server 1.20.13
I noticed a heavy perf drop in games after switching to 21.2.1. The last good version turned out to be 21.0.3.
Let's take Minetest as an example: just standing in one partiular spot, to get a steady FPS, yields 13 FPS for 21.0.3 and 6 FPS for anything newer.
Glmark2 results:
21.2.1: 452
21.0.3: 614
20.3.5: 658
18.3.6: 640
Note that 21.0.3 was built with '-Os', most likely that's why it's slightly worse than 20.3.5.
Anyway, I bisected 2455 revisions between 21.0.3 and 21.1.0, and got this one:
# git bisect bad
0580d4c1a25b75616d1b8732624bf63a27a929a9 is the first bad commit
commit 0580d4c1a25b75616d1b8732624bf63a27a929a9
Author: Marek Olšák <marek.olsak@amd.com>
Date: Sat Mar 20 01:00:11 2021 -0400
radeonsi: enable HTILE with mipmapping on gfx9+
Everything seems to be there except fast clears.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9795>
src/gallium/drivers/radeonsi/si_blit.c | 2 ++
src/gallium/drivers/radeonsi/si_clear.c | 7 ++++++-
src/gallium/drivers/radeonsi/si_pipe.h | 2 +-
src/gallium/drivers/radeonsi/si_texture.c | 8 ++++++--
4 files changed, 15 insertions(+), 4 deletions(-)
Sadly, I can't revert it even in 21.1.0, because there were some cryptic (for me) changes to that code afterwards, so I wasn't able to revert it manually. But, I did download the tree right after that commit got in:
https://gitlab.freedesktop.org/mesa/mesa/-/tree/0580d4c1a25b75616d1b8732624bf63a27a929a9
built it as-is and also with that commit reverted, and here's what glmark2 says:
0580d4c1_pristine: 403
0580d4c1_reverted: 570
Both built against LLVM-1.11.0 and with these options:
GALLIUM_DRV="r300,nouveau,r600,radeonsi,svga,swrast"
DRI_DRIVERS="i965,i915"
MESONFLAGS="$MESONFLAGS --prefix=$XORG_PREFIX \
--buildtype=release \
-Ddri-drivers=$DRI_DRIVERS \
-Dgallium-drivers=$GALLIUM_DRV \
-Dgallium-nine=false \
-Dglx=dri \
-Dvalgrind=false \
-Dlibunwind=false \
-Dgles1=true \
-Dgles2=true \
-Dosmesa=true \
-Dgallium-vdpau=false \
-Dgallium-xa=true \
-Dgallium-va=false \
-Dgbm=true \
-Dshared-glapi=true \
-Dshared-llvm=false \
-Dgallium-extra-hud=false \
-Dvulkan-drivers="intel" \
-Dplatforms=x11 \
"
Btw, tried also 21.2.2 today, because there were some changes in radeonsi departament, but no difference.
Could anything be done about it?