[v3d] huge Vulkan on Wayland performance regression on Raspberry Pi 4 with mesa-22.3.x
System information
- OS:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_CODENAME=bullseye
- GPU: VideoCore VI
- Kernel version: Linux raspberrypi 5.15.76-v8+ #1597 (closed) SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux
- Mesa version: 22.3.1
- Xserver version (if applicable): None
- Desktop manager and compositor: Sway 1.8-rc3 (on Wayland)
Describe the issue
Vulkan performance on Wayland is suddenly abysmal with the 22.3.x series of releases. It went from 60Fps with shaders on RetroArch to 20-30Fps on the same tests/cores.
KMS/DRM is not affected, only Wayland. Performance on KMS/DRM context is exactly the same as it was with the 22.2.x series, no regressions with the KMS/DRM context.
Regression
Yes, clearly a regression. Vulkan on Wayland used to perform very well on the 22.2.x series of MESA releases, but the 22.3.x releases exhibit a huge performance hit.
I am opening this issue so the problem can be found now that it is recent, which I believe will make it easier to find. Wayland is not the future anymore: it's the present and the best way to run a light desktop on a Pi.