https://bugs.freedesktop.org/show_bug.cgi?id=98351
Bug ID: 98351 Summary: LibreOffice' OpenGL backend hangs GPU (ring 0&3 stalled) Product: Mesa Version: 12.0 Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: linuxhippy@gmail.com QA Contact: dri-devel@lists.freedesktop.org
Starting LibreOffice Draw with their opengl rendering backend enabled hangs the GPU: https://youtu.be/6C_qZdA6WdY
This happend on an AMD MULLINS based laptop running Fedora 24 (kernel 4.7.?, mesa 12.0.3).
Steps to reproduce: - Download LibreOffice 5.2.3 - Install it - Start libreoffice writer - Enable OpenGL backend (menu -> tools -> options -> view -> opengl for all rendering, disable blacklist) - start libreoffice draw -> hang
https://bugs.freedesktop.org/show_bug.cgi?id=98351
--- Comment #1 from Nicolai Hähnle nhaehnle@gmail.com --- Thank you for the report. I cannot reproduce this on Tonga. Does this still happen for you with a later kernel and/or Mesa git? There have been some hang fixes relatively recently.
Are there any messages in dmesg before the "ring stalled" messages?
https://bugs.freedesktop.org/show_bug.cgi?id=98351
--- Comment #2 from Clemens Eisserer linuxhippy@gmail.com --- I've just tried to reproduce - and the issue seems to be gone with kernel 4.8.4 :)
Thanks :)
https://bugs.freedesktop.org/show_bug.cgi?id=98351
--- Comment #3 from Dieter Nützel Dieter@nuetzel-hh.de --- Sorry that I step in, here.
r600g - NI/Turks XT But how have you got enabled OpenGL by all means in LO?
I have openSUSE 13.2 + all devel stuff... LO 5.2.2.2.0+ Latest stable kernel: 4.8.6-5.g1d89b44-default Mesa git, etc. pp.
OpenGL is enabled OpenGL force is enabled
But any time (since ever?) I get: OpenGL is currently _disabled_...??? Update to LO 5.2.3.x.x?
Thanks, Dieter
https://bugs.freedesktop.org/show_bug.cgi?id=98351
--- Comment #4 from Clemens Eisserer linuxhippy@gmail.com --- Worked out of the box - maybe radeonsi supports some extensions LO requires and r600 is missing?
After all, at least with mesa LO's OpenGL backend is not worth the trouble - it is slow and rendering isn't pixel-perfect.
https://bugs.freedesktop.org/show_bug.cgi?id=98351
--- Comment #5 from Tomaz Vajngerl quikee@gmail.com --- Hi,
I'm the guy that works on the OpenGL code in LibreOffice and I have the same problem on my machine with radeonsi. The problem is with area scale shader [1] (which is used for scaling images in the document) - more specifically with the arrays at line 51, 52, 54, 55. I changed the scale algorithm to not use any arrays but this still seems to be nouveau to the OpenGL driver as the shader works as expected with intel or nouveau driver as well as nvidia and amd drivers on windows, but OTOH not intel driver on windows. I also managed to get it working if I reduce the array to 16 or less.
[1] https://cgit.freedesktop.org/libreoffice/core/tree/vcl/opengl/areaScaleFragm...
https://bugs.freedesktop.org/show_bug.cgi?id=98351
--- Comment #6 from Tomaz Vajngerl quikee@gmail.com --- I'm using "Radeon R7 370" on Fedora 25
https://bugs.freedesktop.org/show_bug.cgi?id=98351
--- Comment #7 from Marek Olšák maraeo@gmail.com --- Does this happen with latest mesa and llvm?
https://bugs.freedesktop.org/show_bug.cgi?id=98351
Timothy Arceri t_arceri@yahoo.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #8 from Timothy Arceri t_arceri@yahoo.com.au --- (In reply to Marek Olšák from comment #7)
Does this happen with latest mesa and llvm?
Assuming it was fixed as per comment 2 and closing.
dri-devel@lists.freedesktop.org