Mesa: Perfomance Regression Etnaviv
Hello,
I have already sent an email to the mesa-dev mailing list [1] and received some responses. However, I am opening the issue here for better tracking.
It appears that there is some type of performance regression when upgrading from Mesa 2022.0.3 to 2024.0.2 with OpenEmbedded (kirkstone to scarthgap). The issue was discovered on CI with automated hardware tests, specifically checking the glmark2 score. The hardware platform is based on an NXP iMX6, and we did not observe the same regression on newer hardware like the iMX8MM or iMX8MP. More data about the hardware platform and some test results are provided below
Hardware PLatafrom: Toradex Apalis iMX6 - NXP i.MX 6Q/6D Arm Cortex A9 with Vivante GC2000 rev 5108 using Etnaviv.
Glmark2 Run:
Mesa 24.0.2
>> GPU Test: Linux apalis-imx6-10692086 6.9.0-rc4-0.0.0-devel-00005-g2186ca42060f #1 SMP Sun Apr 14 20:38:39 UTC 2024 armv7l GNU/Linux
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Mesa
GL_RENDERER: Vivante GC2000 rev 5108
GL_VERSION: OpenGL ES 2.0 Mesa 24.0.2
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 640x480 windowed
=======================================================
[shading] duration=5.0: FPS: 325 FrameTime: 3.078 ms
[build] use-vbo=false: FPS: 368 FrameTime: 2.719 ms
[texture] <default>: FPS: 210 FrameTime: 4.771 ms
=======================================================
glmark2 Score: 300
=======================================================
Mesa 22.0.3
>> GPU Test: Linux apalis-imx6-10692086 6.9.0-rc4 #1 SMP Wed Apr 24 18:57:48 -03 2024 armv7l armv7l armv7l GNU/Linux
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: etnaviv
GL_RENDERER: Vivante GC2000 rev 5108
GL_VERSION: OpenGL ES 2.0 Mesa 22.0.3
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 640x480 windowed
=======================================================
[shading] duration=5.0: FPS: 475 FrameTime: 2.106 ms
[build] use-vbo=false: FPS: 550 FrameTime: 1.819 ms
[texture] <default>: FPS: 345 FrameTime: 2.902 ms
=======================================================
glmark2 Score: 455
=======================================================
[1] https://lists.freedesktop.org/archives/mesa-dev/2024-April/226202.html
Thanks!
Regards,
João Paulo Gonçalves