From 3a88d71d3558d756b0567efe4f22179d2606367c Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 8 Jan 2013 16:13:18 -0800 Subject: glsl: Add IR lisp for GLSL ES 3.00 pack/unpack functions For each of the following functions, add a declaration to builtins/profiles/300es.glsl and create new file builtins/ir/${funcname}.ir: packSnorm2x16 unpackSnorm2x16 packUnorm2x16 unpackUnorm2x16 packHalf2x16 unpackHalf2x16 Reviewed-by: Ian Romanick Reviewed-by: Matt Tuner Signed-off-by: Chad Versace --- src/glsl/builtins/ir/packUnorm2x16.ir | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/glsl/builtins/ir/packUnorm2x16.ir (limited to 'src/glsl/builtins/ir/packUnorm2x16.ir') diff --git a/src/glsl/builtins/ir/packUnorm2x16.ir b/src/glsl/builtins/ir/packUnorm2x16.ir new file mode 100644 index 00000000000..c809f2d7046 --- /dev/null +++ b/src/glsl/builtins/ir/packUnorm2x16.ir @@ -0,0 +1,6 @@ +((function packUnorm2x16 + (signature uint + (parameters + (declare (in) vec2 arg0)) + ((return (expression uint packUnorm2x16 (var_ref arg0))))) +)) -- cgit v1.2.3