[Bisected][RADV] Dota2 freezes when switching work spaces or resizing the game window.
Description
When starting dota2 with the vulkan backend it will freezes when switching workspaces or resizing the game window. Some game sounds play after the picture freezes, but I'm guessing that the render gets stuck and the game is waiting for it to finish.
Screenshots/video files
Before switching workspaces or resizing: Switching or resizing (will freeze in this state after 1-2 seconds): After switching back into fullscreen:
Log files (for system lockups / game freezes / crashes)
Dmesg prints a single line for each freeze:
[drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -2!
Can't seem to run Dota2 with RADV_DEBUG=hang
. The game loads into a black screen and seems to sit there. No $HOME/radv_dumps_*/
files are created.
Steps to reproduce
- Use mesa master
- Start Dota2
- Tab out or switch workspaces and then switch back to Dota2
- The rendering will now freeze and you have to kill dota2 for it to exit.
System information
- OS: Gentoo Linux
- GPU: Radeon Pro WX 9100
- Kernel version: 5.10.4-gentoo
- Mesa version: Mesa 21.1.0-devel (git-acaf07c2)
- Desktop environment: SwayWM (Wayland)
- Xserver version: 1.20.99.1
Regression
Yes, it works before 96b03aaa This commit is what causes the freeze for me.
@hakzsam Any ideas of what could have gone wrong?
Further information (optional)
If it try to start Dota2 with RADV_DEBUG=llvm
the same black screen happens as with RADV_DEBUG=hang
.
The game launches but it seems to never make it to the menu.