Actually that patch was more of a bad hack. Try this new patch set that goes to the source of the problem: https://patchwork.freedesktop.org/series/26330/ for me it solved this "translation from TGSI" problem with large shaders with the GpuTest 0.7.0 piano and voloplosion benchmarks. Please note that after applying these patches you will have to set the environment variable MESA_GLSL_TO_TGSI_NEW_MERGE to activate it.