Allow alternative mix() implementation
authorPyry Haulos <phaulos@google.com>
Fri, 29 May 2015 21:06:53 +0000 (14:06 -0700)
committerPyry Haulos <phaulos@google.com>
Fri, 29 May 2015 21:50:21 +0000 (14:50 -0700)
commit6c1b3db5fb439806b9b67442f1042615ffa32816
tree14f599110b25ee6b80271dc4bf0537dc48153475
parent0557a707716b8a8722fa509455badf81633ad83b
Allow alternative mix() implementation

Some compilers translate mix(a, b, x) to a + (b - a)*x which produces
slightly different results than the form a*(1 - x) + b*x suggested by
the GLSL specification. This change relaxes tests to allow both forms.

Bug: 21110253
Change-Id: I3af056145ef8e64c0fc998302770fd38d105481a
modules/glshared/glsBuiltinPrecisionTests.cpp