Lines Matching defs:imm

1018    ir_constant *imm(float f, unsigned vector_elements=1);
1019 ir_constant *imm(bool b, unsigned vector_elements=1);
1020 ir_constant *imm(int i, unsigned vector_elements=1);
1021 ir_constant *imm(unsigned u, unsigned vector_elements=1);
1022 ir_constant *imm(double d, unsigned vector_elements=1);
1023 ir_constant *imm(const glsl_type *type, const ir_constant_data &);
5657 builtin_builder::imm(bool b, unsigned vector_elements)
5663 builtin_builder::imm(float f, unsigned vector_elements)
5669 builtin_builder::imm(int i, unsigned vector_elements)
5675 builtin_builder::imm(unsigned u, unsigned vector_elements)
5681 builtin_builder::imm(double d, unsigned vector_elements)
5687 builtin_builder::imm(const glsl_type *type, const ir_constant_data &data)
5692 #define IMM_FP(type, val) (type->is_double()) ? imm(val) : imm((float)val)
5703 return new(mem_ctx) ir_dereference_array(var, imm(idx));
5820 body.emit(ret(mul(degrees, imm(0.0174532925f))));
5829 body.emit(ret(mul(radians, imm(57.29578f))));
5849 sub(imm(M_PI_2f),
5850 mul(sqrt(sub(imm(1.0f), abs(x))),
5851 add(imm(M_PI_2f),
5853 add(imm(M_PI_4f - 1.0f),
5855 add(imm(p0),
5856 mul(abs(x), imm(p1))))))))));
5912 body.emit(ret(sub(imm(M_PI_2f), asin_expr(x, 0.08132463f, -0.02363318f))));
5924 body.emit(ret(mul(imm(0.5f), sub(exp(x), exp(neg(x))))));
5936 body.emit(ret(mul(imm(0.5f), add(exp(x), exp(neg(x))))));
5953 body.emit(assign(t, min2(max2(x, imm(-10.0f)), imm(10.0f))));
5969 imm(1.0f))))))));
5979 body.emit(ret(log(add(x, sqrt(sub(mul(x, x), imm(1.0f)))))));
5989 body.emit(ret(mul(imm(0.5f), log(div(add(imm(1.0f), x),
5990 sub(imm(1.0f), x))))));
6204 body.emit(ret(equal(abs(x), imm(type, infinities))));
7030 body.emit(ret(expr(ir_binop_any_nequal, v, imm(false, vec_elem))));
7042 body.emit(ret(expr(ir_binop_all_equal, v, imm(true, vec_elem))));
7081 tex->lod_info.lod = imm(0u);
7227 tex->lod_info.component = imm(0);
7337 tex->lod_info.lod = imm(0u);
7546 body.emit(ret(imm(glsl_type::float_type, ir_constant_data())));
7556 body.emit(ret(imm(glsl_type::vec2_type, ir_constant_data())));
7566 body.emit(ret(imm(glsl_type::vec3_type, ir_constant_data())));
7576 body.emit(ret(imm(glsl_type::vec4_type, ir_constant_data())));
7661 imm(32u))));
7719 ir_constant *exponent_shift = imm(23);
7720 ir_constant *exponent_bias = imm(-126, vec_elem);
7722 ir_constant *sign_mantissa_mask = imm(0x807fffffu, vec_elem);
7725 ir_constant *exponent_value = imm(0x3f000000u, vec_elem);
7728 body.emit(assign(is_not_zero, nequal(abs(x), imm(0.0f, vec_elem))));
7735 imm(0, vec_elem)))));
7741 imm(0u, vec_elem)))));