X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Fir_builder.cpp;h=e44b05c991c30753fda5f8046622c4ada4a3c43a;hb=1286bd3160bc1e70fa3bba2ec12999b2a02ffad9;hp=2872c516b149cf0d935cfd032b2cc930aad00ace;hpb=a5455ab1cae85dbe40c12ada9030bc4b4537ced7;p=mesa.git diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp index 2872c516b14..e44b05c991c 100644 --- a/src/glsl/ir_builder.cpp +++ b/src/glsl/ir_builder.cpp @@ -256,6 +256,11 @@ ir_expression *round_even(operand a) return expr(ir_unop_round_even, a); } +ir_expression *fract(operand a) +{ + return expr(ir_unop_fract, a); +} + /* dot for vectors, mul for scalars */ ir_expression *dot(operand a, operand b) { @@ -519,6 +524,24 @@ interpolate_at_sample(operand a, operand b) return expr(ir_binop_interpolate_at_sample, a, b); } +ir_expression * +f2d(operand a) +{ + return expr(ir_unop_f2d, a); +} + +ir_expression * +i2d(operand a) +{ + return expr(ir_unop_i2d, a); +} + +ir_expression * +u2d(operand a) +{ + return expr(ir_unop_u2d, a); +} + ir_expression * fma(operand a, operand b, operand c) {