summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/floatBitsToUint.ir
diff options
context:
space:
mode:
authorOlivier Galibert <[email protected]>2012-05-08 20:40:32 +0200
committerKenneth Graunke <[email protected]>2012-06-07 00:06:17 -0700
commit500dcbb1aa991d4c92200fcacd6eb288bb2638d7 (patch)
treee27a1039589a9bc5611792862175febcd543d4dd /src/glsl/builtins/ir/floatBitsToUint.ir
parent199771bc325900eb1d3acc7fa03808894a94fdb2 (diff)
glsl: New unary opcodes for ARB_shader_bit_encoding support.
The opcodes are bitcast_f2u, bitcast_f2i, bitcast_i2f and bitcast_u2f. Signed-off-by: Olivier Galibert <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtins/ir/floatBitsToUint.ir')
-rw-r--r--src/glsl/builtins/ir/floatBitsToUint.ir21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/glsl/builtins/ir/floatBitsToUint.ir b/src/glsl/builtins/ir/floatBitsToUint.ir
new file mode 100644
index 00000000000..09463bd9a75
--- /dev/null
+++ b/src/glsl/builtins/ir/floatBitsToUint.ir
@@ -0,0 +1,21 @@
+((function floatBitsToUint
+ (signature uint
+ (parameters
+ (declare (in) float arg))
+ ((return (expression uint bitcast_f2u (var_ref arg)))))
+
+ (signature uvec2
+ (parameters
+ (declare (in) vec2 arg))
+ ((return (expression uvec2 bitcast_f2u (var_ref arg)))))
+
+ (signature uvec3
+ (parameters
+ (declare (in) vec3 arg))
+ ((return (expression uvec3 bitcast_f2u (var_ref arg)))))
+
+ (signature uvec4
+ (parameters
+ (declare (in) vec4 arg))
+ ((return (expression uvec4 bitcast_f2u (var_ref arg)))))
+))