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: temporaries and env parameters in ARB_fp?

  1. #1
    Junior Member Regular Contributor
    Join Date
    Feb 2004
    Posts
    248

    temporaries and env parameters in ARB_fp?

    I have a working ARB_fp shader using alot of temporary variables. When I exchange the folowing
    PARAM factor = { 0.003, 0.003, 0.0, 0.0};
    with
    PARAM factor = program.env[0];
    I get the error:
    "error: too many temporaries".

    With the working shader I get the following counts:
    31 of 32 temporaries used
    All other counts are ok. ( 50 of 1024 ALU, etc. )

    Is there something I don't know about ProgramEnvParameters?

    Using GeForceFX5900 (5.6.7.2 driver)

    Thx for any help.

    def

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2003
    Posts
    29

    Re: temporaries and env parameters in ARB_fp?

    By any chance does it work if you use
    PARAM factor = program.local[n];
    ?

  3. #3
    Junior Member Regular Contributor
    Join Date
    Feb 2004
    Posts
    248

    Re: temporaries and env parameters in ARB_fp?

    A good idea, but no, same error.

    I think I found a way to reduce the number of temporaries, because some of the variables stay fixed so they can be uploaded as parameters...

    My general experience with hardware shading languages is, the more you get near the limits strange stuff starts to happen.
    (bad drivers)

Posting Permissions

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