https://bugs.freedesktop.org/show_bug.cgi?id=98856
--- Comment #8 from Gregor Münch gr.muench@gmail.com --- Created attachment 130076 --> https://bugs.freedesktop.org/attachment.cgi?id=130076&action=edit garbled graphics #1
Found the problem. Seems like using -Ofast wasnt a good idea. Using -03 everything works as it should. Still attaching screenshot showing the problem in case it is useful to others.