Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: assembly output of GLSL program

  1. #1
    Intern Contributor
    Join Date
    Sep 2003
    Location
    Montreal, Canada
    Posts
    77

    assembly output of GLSL program

    Is it possible to get the output of the compiled GLSL program? I want to know how many instructions were needed to compile a certain program.

    Possible?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: assembly output of GLSL program

    no.
    "number of instructions" will depend on the hardware used. And don't imagine that ARB vp/fp are actual hardware instructions. The hardware already changed a lot.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: assembly output of GLSL program

    The Nvidia has NVemulate tool which can dump the corresponding vp/fp assembly for linked GLSL programs. If you compile that assembly you may use the vp/fp api to query number of native instructions (I do not know how much precise that information is and what the driver considers a one native instruction). Of course the results of this entire process are valid only for Nvidia cards.

    Alternativelly the NVShaderPerf tool also prints (if I remember correctly) resulting assembly for choosen GPU family together with performance related informations for the shader on that GPU. This information is also Nvidia specific.

Posting Permissions

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