glsl2: Add ir_unop_fract as an expression type.
authorEric Anholt <eric@anholt.net>
Thu, 1 Jul 2010 17:37:11 +0000 (10:37 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 1 Jul 2010 18:07:22 +0000 (11:07 -0700)
commitd925c9173009e9e5d48df30b30aaef22753183aa
treee42ee590b44d75b69fb67ee7de8b42ce05ee1c11
parent5e4dd061d17563828bcce5525400a0ce363aa15d
glsl2: Add ir_unop_fract as an expression type.

Most backends will prefer seeing this to seeing (a - floor(a)), so
represent it explicitly.
src/glsl/builtin_function.cpp
src/glsl/builtins/110/fract
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_constant_expression.cpp
src/mesa/shader/ir_to_mesa.cpp