glsl: Add support for the 1.30 round() built-in.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Oct 2010 21:33:30 +0000 (14:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Oct 2010 22:59:47 +0000 (15:59 -0700)
commit27ced5c5ff907557007ed6cb78cef5810cf48ef5
treea74cad6777272c1f8ef08bc25b6e1bae5535618d
parentf157812bbbcf9caac1f84988e738fc9d1e051056
glsl: Add support for the 1.30 round() built-in.

This implements round() via the ir_unop_round_even opcode, rather than
adding a new opcode.  We may wish to add one in the future, since it
might enable a small performance increase on some hardware, but for now,
this should suffice.
src/glsl/builtins/ir/round [new file with mode: 0644]
src/glsl/builtins/profiles/130.frag
src/glsl/builtins/profiles/130.vert