https://bugs.winehq.org/show_bug.cgi?id=50649
--- Comment #4 from Giovanni Mascellani gmascellani@codeweavers.com --- This turned out to be a bug in mesa. I submitted a pull request upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8983.