Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: GLSL IR To TGSI Translator Ready To Be Merged Into Mesa

  1. #21
    Join Date
    Sep 2010
    Posts
    143

    Default

    Quote Originally Posted by smitty3268 View Post
    It would be good to take a few random shaders those games use and compare the TGSI generated by both. I remember originally you said the new code was not quite as good as the old, but close. Has that been completely fixed, or is it possible some shaders could have regressed?
    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.

    Quote Originally Posted by smitty3268 View Post
    Also, do you know if there has been any improvement in the compile time of shaders? I'm guessing that's all spent inside the actual GLSL compiler and not the translation code.
    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.

  2. #22
    Join Date
    Jun 2010
    Posts
    211

    Default

    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?

  3. #23
    Join Date
    Jan 2009
    Posts
    598

    Default

    Quote Originally Posted by Prescience500 View Post
    Isn't the GLSL IR to TGSI traslator one of the things that is blocking Intel from switching to Gallium3d?
    I don't think so. They apparently don't want to throw away the codebase of their classic driver.

    Quote Originally Posted by Prescience500 View Post
    Also, is it possible to eventually use GLSL directly without translating it?
    Maybe. There seems to be an increased interest for Gallium to go in that direction.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •