Lines Matching refs:ir_variable
1016 ir_variable *in_var(const glsl_type *type, const char *name);
1017 ir_variable *out_var(const glsl_type *type, const char *name);
1024 ir_dereference_variable *var_ref(ir_variable *var);
1025 ir_dereference_array *array_ref(ir_variable *var, int i);
1026 ir_swizzle *matrix_elt(ir_variable *var, int col, int row);
1027 ir_dereference_record *record_ref(ir_variable *var, const char *field);
1029 ir_expression *asin_expr(ir_variable *x, float p0, float p1);
1030 void do_atan(ir_factory &body, const glsl_type *type, ir_variable *res, operand y_over_x);
1034 * list \param params of \c ir_variable objects. \param ret should
1035 * point to the ir_variable that will hold the function return
1038 ir_call *call(ir_function *f, ir_variable *ret, exec_list params);
5644 ir_variable *
5647 return new(mem_ctx) ir_variable(type, name, ir_var_function_in);
5650 ir_variable *
5653 return new(mem_ctx) ir_variable(type, name, ir_var_function_out);
5695 builtin_builder::var_ref(ir_variable *var)
5701 builtin_builder::array_ref(ir_variable *var, int idx)
5708 builtin_builder::matrix_elt(ir_variable *var, int column, int row)
5714 builtin_builder::record_ref(ir_variable *var, const char *field)
5737 plist.push_tail(va_arg(ap, ir_variable *));
5762 ir_variable *x = in_var(param_type, "x");
5790 ir_variable *x = in_var(param0_type, "x");
5791 ir_variable *y = in_var(param1_type, "y");
5818 ir_variable *degrees = in_var(type, "degrees");
5827 ir_variable *radians = in_var(type, "radians");
5839 ir_variable *theta = in_var(type, "theta");
5846 builtin_builder::asin_expr(ir_variable *x, float p0, float p1)
5862 * The input \c params can either be a list of \c ir_variable or a list of
5868 builtin_builder::call(ir_function *f, ir_variable *ret, exec_list params)
5878 ir_variable *var = ir->as_variable();
5898 ir_variable *x = in_var(type, "x");
5909 ir_variable *x = in_var(type, "x");
5920 ir_variable *x = in_var(type, "x");
5932 ir_variable *x = in_var(type, "x");
5944 ir_variable *x = in_var(type, "x");
5952 ir_variable *t = body.make_temp(type, "tmp");
5965 ir_variable *x = in_var(type, "x");
5976 ir_variable *x = in_var(type, "x");
5986 ir_variable *x = in_var(type, "x");
6035 ir_variable *x = in_var(type, "x");
6036 ir_variable *i = out_var(type, "i");
6039 ir_variable *t = body.make_temp(type, "t");
6065 ir_variable *x = in_var(val_type, "x");
6066 ir_variable *minVal = in_var(bound_type, "minVal");
6067 ir_variable *maxVal = in_var(bound_type, "maxVal");
6078 ir_variable *x = in_var(val_type, "x");
6079 ir_variable *y = in_var(val_type, "y");
6080 ir_variable *a = in_var(blend_type, "a");
6093 ir_variable *x = in_var(val_type, "x");
6094 ir_variable *y = in_var(val_type, "y");
6095 ir_variable *a = in_var(blend_type, "a");
6113 ir_variable *edge = in_var(edge_type, "edge");
6114 ir_variable *x = in_var(x_type, "x");
6117 ir_variable *t = body.make_temp(x_type, "t");
6152 ir_variable *edge0 = in_var(edge_type, "edge0");
6153 ir_variable *edge1 = in_var(edge_type, "edge1");
6154 ir_variable *x = in_var(x_type, "x");
6164 ir_variable *t = body.make_temp(x_type, "t");
6176 ir_variable *x = in_var(type, "x");
6187 ir_variable *x = in_var(type, "x");
6218 ir_variable *x = in_var(type, "x");
6227 ir_variable *x = in_var(type, "x");
6236 ir_variable *x = in_var(type, "x");
6245 ir_variable *x = in_var(type, "x");
6254 ir_variable *x = in_var(type, "x");
6263 ir_variable *x = in_var(type, "x");
6272 ir_variable *x = in_var(type, "x");
6281 ir_variable *x = in_var(type, "x");
6290 ir_variable *v = in_var(glsl_type::vec2_type, "v");
6299 ir_variable *v = in_var(glsl_type::vec2_type, "v");
6308 ir_variable *v = in_var(glsl_type::vec4_type, "v");
6317 ir_variable *v = in_var(glsl_type::vec4_type, "v");
6326 ir_variable *p = in_var(glsl_type::uint_type, "p");
6335 ir_variable *p = in_var(glsl_type::uint_type, "p");
6345 ir_variable *p = in_var(glsl_type::uint_type, "p");
6354 ir_variable *p = in_var(glsl_type::uint_type, "p");
6363 ir_variable *v = in_var(glsl_type::vec2_type, "v");
6372 ir_variable *p = in_var(glsl_type::uint_type, "p");
6381 ir_variable *v = in_var(glsl_type::uvec2_type, "v");
6390 ir_variable *p = in_var(glsl_type::double_type, "p");
6399 ir_variable *v = in_var(glsl_type::ivec2_type, "v");
6408 ir_variable *p = in_var(glsl_type::int64_t_type, "p");
6417 ir_variable *v = in_var(glsl_type::uvec2_type, "v");
6426 ir_variable *p = in_var(glsl_type::uint64_t_type, "p");
6435 ir_variable *x = in_var(type, "x");
6446 ir_variable *p0 = in_var(type, "p0");
6447 ir_variable *p1 = in_var(type, "p1");
6453 ir_variable *p = body.make_temp(type, "p");
6474 ir_variable *a = in_var(type, "a");
6475 ir_variable *b = in_var(type, "b");
6490 ir_variable *x = in_var(type, "x");
6517 ir_variable *N = in_var(type, "N");
6518 ir_variable *I = in_var(type, "I");
6519 ir_variable *Nref = in_var(type, "Nref");
6531 ir_variable *I = in_var(type, "I");
6532 ir_variable *N = in_var(type, "N");
6544 ir_variable *I = in_var(type, "I");
6545 ir_variable *N = in_var(type, "N");
6546 ir_variable *eta = in_var(type->get_base_type(), "eta");
6549 ir_variable *n_dot_i = body.make_temp(type->get_base_type(), "n_dot_i");
6559 ir_variable *k = body.make_temp(type->get_base_type(), "k");
6574 ir_variable *x = in_var(type, "x");
6575 ir_variable *y = in_var(type, "y");
6578 ir_variable *z = body.make_temp(type, "z");
6590 ir_variable *c;
6591 ir_variable *r;
6602 ir_variable *m = body.make_temp(type, "m");
6619 ir_variable *m = in_var(orig_type, "m");
6622 ir_variable *t = body.make_temp(transpose_type, "t");
6638 ir_variable *m = in_var(type, "m");
6650 ir_variable *m = in_var(type, "m");
6675 ir_variable *m = in_var(type, "m");
6679 ir_variable *SubFactor00 = body.make_temp(btype, "SubFactor00");
6680 ir_variable *SubFactor01 = body.make_temp(btype, "SubFactor01");
6681 ir_variable *SubFactor02 = body.make_temp(btype, "SubFactor02");
6682 ir_variable *SubFactor03 = body.make_temp(btype, "SubFactor03");
6683 ir_variable *SubFactor04 = body.make_temp(btype, "SubFactor04");
6684 ir_variable *SubFactor05 = body.make_temp(btype, "SubFactor05");
6685 ir_variable *SubFactor06 = body.make_temp(btype, "SubFactor06");
6686 ir_variable *SubFactor07 = body.make_temp(btype, "SubFactor07");
6687 ir_variable *SubFactor08 = body.make_temp(btype, "SubFactor08");
6688 ir_variable *SubFactor09 = body.make_temp(btype, "SubFactor09");
6689 ir_variable *SubFactor10 = body.make_temp(btype, "SubFactor10");
6690 ir_variable *SubFactor11 = body.make_temp(btype, "SubFactor11");
6691 ir_variable *SubFactor12 = body.make_temp(btype, "SubFactor12");
6692 ir_variable *SubFactor13 = body.make_temp(btype, "SubFactor13");
6693 ir_variable *SubFactor14 = body.make_temp(btype, "SubFactor14");
6694 ir_variable *SubFactor15 = body.make_temp(btype, "SubFactor15");
6695 ir_variable *SubFactor16 = body.make_temp(btype, "SubFactor16");
6696 ir_variable *SubFactor17 = body.make_temp(btype, "SubFactor17");
6697 ir_variable *SubFactor18 = body.make_temp(btype, "SubFactor18");
6719 ir_variable *adj_0 = body.make_temp(btype == glsl_type::float_type ? glsl_type::vec4_type : glsl_type::dvec4_type, "adj_0");
6750 ir_variable *m = in_var(type, "m");
6753 ir_variable *adj = body.make_temp(type, "adj");
6770 ir_variable *m = in_var(type, "m");
6774 ir_variable *f11_22_21_12 = body.make_temp(btype, "f11_22_21_12");
6775 ir_variable *f10_22_20_12 = body.make_temp(btype, "f10_22_20_12");
6776 ir_variable *f10_21_20_11 = body.make_temp(btype, "f10_21_20_11");
6788 ir_variable *adj = body.make_temp(type, "adj");
6832 ir_variable *m = in_var(type, "m");
6836 ir_variable *SubFactor00 = body.make_temp(btype, "SubFactor00");
6837 ir_variable *SubFactor01 = body.make_temp(btype, "SubFactor01");
6838 ir_variable *SubFactor02 = body.make_temp(btype, "SubFactor02");
6839 ir_variable *SubFactor03 = body.make_temp(btype, "SubFactor03");
6840 ir_variable *SubFactor04 = body.make_temp(btype, "SubFactor04");
6841 ir_variable *SubFactor05 = body.make_temp(btype, "SubFactor05");
6842 ir_variable *SubFactor06 = body.make_temp(btype, "SubFactor06");
6843 ir_variable *SubFactor07 = body.make_temp(btype, "SubFactor07");
6844 ir_variable *SubFactor08 = body.make_temp(btype, "SubFactor08");
6845 ir_variable *SubFactor09 = body.make_temp(btype, "SubFactor09");
6846 ir_variable *SubFactor10 = body.make_temp(btype, "SubFactor10");
6847 ir_variable *SubFactor11 = body.make_temp(btype, "SubFactor11");
6848 ir_variable *SubFactor12 = body.make_temp(btype, "SubFactor12");
6849 ir_variable *SubFactor13 = body.make_temp(btype, "SubFactor13");
6850 ir_variable *SubFactor14 = body.make_temp(btype, "SubFactor14");
6851 ir_variable *SubFactor15 = body.make_temp(btype, "SubFactor15");
6852 ir_variable *SubFactor16 = body.make_temp(btype, "SubFactor16");
6853 ir_variable *SubFactor17 = body.make_temp(btype, "SubFactor17");
6854 ir_variable *SubFactor18 = body.make_temp(btype, "SubFactor18");
6876 ir_variable *adj = body.make_temp(btype == glsl_type::float_type ? glsl_type::mat4_type : glsl_type::dmat4_type, "adj");
7026 ir_variable *v = in_var(type, "v");
7038 ir_variable *v = in_var(type, "v");
7069 ir_variable *s = in_var(sampler_type, "sampler");
7077 ir_variable *lod = in_var(glsl_type::int_type, "lod");
7093 ir_variable *s = in_var(sampler_type, "sampler");
7106 ir_variable *code = in_var(glsl_type::int_type, "code");
7109 ir_variable *retval = body.make_temp(glsl_type::bool_type, "retval");
7121 ir_variable *code = in_var(glsl_type::int_type, "code");
7135 ir_variable *s = in_var(sampler_type, "sampler");
7136 ir_variable *P = in_var(coord_type, "P");
7165 ir_variable *refz = in_var(glsl_type::float_type, "refz");
7177 ir_variable *lod = in_var(glsl_type::float_type, "lod");
7182 ir_variable *dPdx = in_var(glsl_type::vec(grad_size), "dPdx");
7183 ir_variable *dPdy = in_var(glsl_type::vec(grad_size), "dPdy");
7192 ir_variable *offset =
7193 new(mem_ctx) ir_variable(glsl_type::ivec(offset_size), "offset",
7200 ir_variable *offsets =
7201 new(mem_ctx) ir_variable(glsl_type::get_array_instance(glsl_type::ivec2_type, 4),
7208 ir_variable *clamp = in_var(glsl_type::float_type, "lodClamp");
7213 ir_variable *texel = NULL;
7221 ir_variable *component =
7222 new(mem_ctx) ir_variable(glsl_type::int_type, "comp", ir_var_const_in);
7235 ir_variable *bias = in_var(glsl_type::float_type, "bias");
7241 ir_variable *r = body.make_temp(tex->type, "result");
7257 ir_variable *s = in_var(sampler_type, "sampler");
7258 ir_variable *P = in_var(glsl_type::vec4_type, "P");
7259 ir_variable *compare = in_var(glsl_type::float_type, "compare");
7274 ir_variable *lod = in_var(glsl_type::float_type, "lod");
7280 ir_variable *lod_clamp = in_var(glsl_type::float_type, "lodClamp");
7285 ir_variable *texel = NULL;
7292 ir_variable *bias = in_var(glsl_type::float_type, "bias");
7298 ir_variable *r = body.make_temp(tex->type, "result");
7316 ir_variable *s = in_var(sampler_type, "sampler");
7317 ir_variable *P = in_var(coord_type, "P");
7328 ir_variable *sample = in_var(glsl_type::int_type, "sample");
7333 ir_variable *lod = in_var(glsl_type::int_type, "lod");
7341 ir_variable *offset =
7342 new(mem_ctx) ir_variable(offset_type, "offset", ir_var_const_in);
7348 ir_variable *texel = out_var(return_type, "texel");
7351 ir_variable *r = body.make_temp(tex->type, "result");
7382 ir_variable *stream =
7383 new(mem_ctx) ir_variable(stream_type, "stream", ir_var_const_in);
7413 ir_variable *stream =
7414 new(mem_ctx) ir_variable(stream_type, "stream", ir_var_const_in);
7437 ir_variable *s = in_var(sampler_type, "sampler");
7438 ir_variable *coord = in_var(coord_type, "coord");
7455 ir_variable *s = in_var(sampler_type, "sampler");
7472 ir_variable *s = in_var(sampler_type, "sampler");
7473 ir_variable *P = in_var(coord_type, "P");
7496 ir_variable *p = in_var(type, "p");
7507 ir_variable *p = in_var(type, "p");
7519 ir_variable *p = in_var(type, "p");
7544 ir_variable *p = in_var(type, "p");
7554 ir_variable *p = in_var(type, "p");
7564 ir_variable *p = in_var(type, "p");
7574 ir_variable *p = in_var(type, "p");
7584 ir_variable *value = in_var(type, "value");
7585 ir_variable *offset = in_var(glsl_type::int_type, "offset");
7586 ir_variable *bits = in_var(glsl_type::int_type, "bits");
7604 ir_variable *base = in_var(type, "base");
7605 ir_variable *insert = in_var(type, "insert");
7606 ir_variable *offset = in_var(glsl_type::int_type, "offset");
7607 ir_variable *bits = in_var(glsl_type::int_type, "bits");
7656 ir_variable *a = in_var(type, "a");
7669 ir_variable *a = in_var(type, "a");
7670 ir_variable *b = in_var(type, "b");
7671 ir_variable *c = in_var(type, "c");
7689 ir_variable *x = in_var(x_type, "x");
7690 ir_variable *exponent = out_var(exp_type, "exp");
7702 ir_variable *x = in_var(x_type, "x");
7703 ir_variable *exponent = out_var(exp_type, "exp");
7727 ir_variable *is_not_zero = body.make_temp(bvec, "is_not_zero");
7737 ir_variable *bits = body.make_temp(uvec, "bits");
7750 ir_variable *x = in_var(type, "x");
7751 ir_variable *y = in_var(type, "y");
7752 ir_variable *carry = out_var(type, "carry");
7771 ir_variable *x = in_var(type, "x");
7772 ir_variable *y = in_var(type, "y");
7773 ir_variable *borrow = out_var(type, "borrow");
7835 ir_variable *x = in_var(type, "x");
7836 ir_variable *y = in_var(type, "y");
7837 ir_variable *msb = out_var(type, "msb");
7838 ir_variable *lsb = out_var(type, "lsb");
7841 ir_variable *unpack_val = body.make_temp(unpack_type, "_unpack_val");
7872 ir_variable *interpolant = in_var(type, "interpolant");
7884 ir_variable *interpolant = in_var(type, "interpolant");
7886 ir_variable *offset = in_var(glsl_type::vec2_type, "offset");
7897 ir_variable *interpolant = in_var(type, "interpolant");
7899 ir_variable *sample_num = in_var(glsl_type::int_type, "sample_num");
7911 ir_variable *counter = in_var(glsl_type::atomic_uint_type, "counter");
7920 ir_variable *counter = in_var(glsl_type::atomic_uint_type, "counter");
7921 ir_variable *data = in_var(glsl_type::uint_type, "data");
7930 ir_variable *counter = in_var(glsl_type::atomic_uint_type, "counter");
7931 ir_variable *compare = in_var(glsl_type::uint_type, "compare");
7932 ir_variable *data = in_var(glsl_type::uint_type, "data");
7942 ir_variable *atomic = in_var(type, "atomic");
7943 ir_variable *data = in_var(type, "data");
7953 ir_variable *atomic = in_var(type, "atomic");
7954 ir_variable *data1 = in_var(type, "data1");
7955 ir_variable *data2 = in_var(type, "data2");
7964 ir_variable *counter = in_var(glsl_type::atomic_uint_type, "atomic_counter");
7967 ir_variable *retval = body.make_temp(glsl_type::uint_type, "atomic_retval");
7978 ir_variable *counter = in_var(glsl_type::atomic_uint_type, "atomic_counter");
7979 ir_variable *data = in_var(glsl_type::uint_type, "data");
7982 ir_variable *retval = body.make_temp(glsl_type::uint_type, "atomic_retval");
7988 ir_variable *const neg_data =
8019 ir_variable *counter = in_var(glsl_type::atomic_uint_type, "atomic_counter");
8020 ir_variable *compare = in_var(glsl_type::uint_type, "compare");
8021 ir_variable *data = in_var(glsl_type::uint_type, "data");
8024 ir_variable *retval = body.make_temp(glsl_type::uint_type, "atomic_retval");
8036 ir_variable *atomic = in_var(type, "atomic_var");
8037 ir_variable *data = in_var(type, "atomic_data");
8042 ir_variable *retval = body.make_temp(type, "atomic_retval");
8054 ir_variable *atomic = in_var(type, "atomic_var");
8055 ir_variable *data1 = in_var(type, "atomic_data1");
8056 ir_variable *data2 = in_var(type, "atomic_data2");
8061 ir_variable *retval = body.make_temp(type, "atomic_retval");
8071 ir_variable *x = in_var(type, "x");
8072 ir_variable *y = in_var(type, "y");
8073 ir_variable *z = in_var(type, "z");
8085 ir_variable *x = in_var(type, "x");
8086 ir_variable *y = in_var(type, "y");
8087 ir_variable *z = in_var(type, "z");
8099 ir_variable *x = in_var(type, "x");
8100 ir_variable *y = in_var(type, "y");
8101 ir_variable *z = in_var(type, "z");
8164 ir_variable *image = in_var(image_type, "image");
8165 ir_variable *coord = in_var(
8220 ir_variable *image = in_var(image_type, "image");
8244 ir_variable *image = in_var(image_type, "image");
8286 ir_variable *ret_val = body.make_temp(intr_sig->return_type, "_ret_val");
8288 ir_variable *texel = out_var(texel_field->type, "texel");
8301 ir_variable *ret_val =
8337 ir_variable *value = in_var(glsl_type::bool_type, "value");
8346 ir_variable *value = in_var(glsl_type::bool_type, "value");
8349 ir_variable *retval = body.make_temp(glsl_type::uint64_t_type, "retval");
8360 ir_variable *value = in_var(type, "value");
8369 ir_variable *value = in_var(type, "value");
8372 ir_variable *retval = body.make_temp(type, "retval");
8383 ir_variable *value = in_var(type, "value");
8384 ir_variable *invocation = in_var(glsl_type::uint_type, "invocation");
8393 ir_variable *value = in_var(type, "value");
8394 ir_variable *invocation = in_var(glsl_type::uint_type, "invocation");
8397 ir_variable *retval = body.make_temp(type, "retval");
8437 ir_variable *retval = body.make_temp(glsl_type::uvec2_type, "clock_retval");
8455 ir_variable *value = in_var(glsl_type::bool_type, "value");
8464 ir_variable *value = in_var(glsl_type::bool_type, "value");
8468 ir_variable *retval = body.make_temp(glsl_type::bool_type, "retval");
8489 ir_variable *retval = body.make_temp(glsl_type::bool_type, "retval");