Announcement

Collapse
No announcement yet.

GLSL IR To TGSI Translator Ready To Be Merged Into Mesa

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I was looking up interesting patents (unrelated to graphics) a few weeks ago for an internal presentation and happened to find the patent you are talking about :

    http://www.faqs.org/patents/app/20090081079

    Comment


    • #17
      Originally posted by bridgman View Post
      I was looking up interesting patents
      You're a masochist, you!

      Comment


      • #18
        Originally posted by przemoli View Post
        but are not there any legal blockers? and are all of them a target for someone?
        No, there are no legal issues here.

        Originally posted by przemoli View Post
        Ohh, small question how did you tested Your code?
        I used the Piglit test suite to test for regressions. Plus, in the 2 months or so I've been developing this, I've been using my custom Mesa build with the GLSL->TGSI translator every time I play an OpenGL game on my computer.

        Comment


        • #19
          Originally posted by Plombo View Post
          Plus, in the 2 months or so I've been developing this, I've been using my custom Mesa build with the GLSL->TGSI translator every time I play an OpenGL game on my computer.
          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?

          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.

          Comment


          • #20
            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?
            There is shader-db for this (but I think it currently require an intel card for it): http://lists.freedesktop.org/archive...ay/007694.html

            Comment


            • #21
              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.

              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.

              Comment


              • #22
                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?

                Comment


                • #23
                  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.

                  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.

                  Comment

                  Working...
                  X