UE4 -opengl3: buggy shader on mesa/Radeon

how did you apply that patch in your linux? I got:
OpenGL version string: 3.0 Mesa 17.3.5