[radeonsi] The Witcher 3 freezes the system (POLARIS10)
Submitted by Shmerl
Assigned to Default DRI bug account
Link to original bug (#104193)
Description
Created attachment 136068 The Witcher 3: rotfiends radeonsi freeze
Wine has an issue with distorted monsters in The Witcher 3. Józef Kucia identified the problem as follows:
- wined3d doesn't support draw calls with no attachments,
- wined3d tries to map transform feedback buffers while transform feedback is paused.
See https://bugs.winehq.org/show_bug.cgi?id=43872#c8
He provided a patch: https://bugs.winehq.org/attachment.cgi?id=59848&action=diff&context=patch&collapsed=&headers=1&format=raw
However applying it, is causing a system freeze (with radeonsi) after such kind of monsters are encountered in the game and fighting them for some time. See attached savegame for example with rotfiends.
Interestingly, Józef Kucia couldn't reproduce this freeze with radeon driver, so it appears to be radeonsi specific.
You can apply the above Wine patch to Wine git master to test it (I build Wine using just that patch, and one staging patch for performance:
My last test environment:
OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.18.0 / 4.13.0-1-amd64, LLVM 5.0.0) OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.4.0-devel (git-b926da24)
Attachment 136068, "The Witcher 3: rotfiends radeonsi freeze":
tw3_rotfiends_mesa_freeze.tar.xz
Version: git