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: ATI GLSL compiler bug

  1. #1
    Junior Member Regular Contributor
    Join Date
    Apr 2004
    Posts
    205

    ATI GLSL compiler bug

    Is there some AMD mailing list for driver bug reports?

    anyway, i found the following bug in their GLSL compiler:
    this pixel shader

    #version 330
    out vec4 color0;
    void main() {
    const float a = 13;
    float b = clamp(a, 0, 1);
    color0 = vec4(b);
    }

    outputs vec4(0,0,0,0) instead of vec4(1,1,1,1)

    if the "const" qualifier is removed from the variable a, then it works normally. same goes to the "clamp" operation.
    apparently the bug is with the const-folding of "clamp" when the first argument is variable with "const" qualifier.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    947

    Re: ATI GLSL compiler bug

    Yes, this looks like a bug.
    AMD devs used to hang out around this forum, but maybe you have better chances if you post this on the AMD developer forums.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog: http://www.rastergrid.com/blog/

  3. #3
    Intern Newbie
    Join Date
    Sep 2011
    Posts
    32

    Re: ATI GLSL compiler bug

    I submitted this problem to our shader team.
    Senior Engineer, OpenGL driver, AMD

Posting Permissions

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