radv: certain mesh shaders cause GPU to keep spinning even after exiting
The issue only happens on OpenGothic and can be replicated via the following steps:
- Checkout commit e2235f6936f317ca4f30d2b11f929cbbe38ebcf4 (the next commit, "GPU-driven optimizations (#576)", removes the path)
- Launch game (mesh shaders are enabled by default if supported)
-
./Gothic2Notr.sh -ms 1 -g <path to Gothic 2 installation>
(change 1 to 0 to disable mesh shaders)
-
- Start a new game or load a game
- Quit game
The GPU will remain spinning, yet mostly operational, wasting hundreds of watts in the process. radeontop shows that the Clip Rectangle
units are being 100% used, even though the game is not launched.
The game does use raytracing if available, but turning it off via -rt 0 -gi 0
does not fix the issue -- only disabling mesh shaders does.
Rebooting does fix the issue.
RADV_PERFTEST=gsfastlaunch2 does not change anything, the issue still occurs.
Tested on a 7900XTX and today's git main of mesa.
Edited by Lynne