Isn't the GLSL IR to TGSI traslator one of the things that is blocking Intel from switching to Gallium3d? Also, is it possible to eventually use GLSL directly without translating it?
It is possible that some shaders could have regressed, but I have yet to find one. When I said that the new code was not as good as the old, I was mostly referring to copy propagation from temporary to output registers. But most of the drivers will optimize that out anyway after converting to their own IR. (I know nv50, nvc0, and llvmpipe do, and presumably r300g as well.) For everything I've benchmarked on my NVA5 card using the nv50 driver, there has been no measurable difference in framerate between glsl_to_tgsi and ir_to_mesa+mesa_to_tgsi.
I haven't measured it, but I don't think there is any difference. I know that there is about the same delay while compiling shaders when I play Portal under Wine.![]()
Isn't the GLSL IR to TGSI traslator one of the things that is blocking Intel from switching to Gallium3d? Also, is it possible to eventually use GLSL directly without translating it?