Skip to content
  • Paul Berry's avatar
    Add tests for abs(-x) with intermediate. · 4e2c61e4
    Paul Berry authored
    These tests exercise a bug I found in the Mesa i965 fragment shader:
    when computing abs(-x), if the intermediate value (-x) was used
    elsewhere in the shader, then abs(-x) was incorrectly computed as
    -abs(x).  The failure did not occur if the intermediate value was not
    used, so this bug was not caught by the
    glsl-{fs,vs}-abs-neg.shader_test.
    4e2c61e4