Home
last modified time | relevance | path

Searched refs:swiz (Results 1 – 25 of 30) sorted by relevance

12

/external/mesa3d/src/glsl/builtins/ir/
Dtranspose.ir6 …(assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant in…
7 …(assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant in…
8 …(assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant in…
9 …(assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant in…
16 …(assign (x) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant in…
17 …(assign (x) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant in…
18 …(assign (x) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant in…
19 …(assign (y) (array_ref (var_ref t) (constant int (0))) (swiz x (array_ref (var_ref m) (constant in…
20 …(assign (y) (array_ref (var_ref t) (constant int (1))) (swiz y (array_ref (var_ref m) (constant in…
21 …(assign (y) (array_ref (var_ref t) (constant int (2))) (swiz z (array_ref (var_ref m) (constant in…
[all …]
Dstep.ir13 …(assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edg…
14 …(assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edg…
22 …(assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edg…
23 …(assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edg…
24 …(assign (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(var_ref edg…
32 …(assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(var_ref edg…
33 …(assign (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(var_ref edg…
34 …(assign (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(var_ref edg…
35 …(assign (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(var_ref edg…
43 …(assign (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var…
[all …]
DouterProduct.ir7 …(assign (xy) (array_ref (var_ref m) (constant int (0))) (expression vec2 * (var_ref u) (swiz x (va…
8 …(assign (xy) (array_ref (var_ref m) (constant int (1))) (expression vec2 * (var_ref u) (swiz y (va…
16 …(assign (xyz) (array_ref (var_ref m) (constant int (0))) (expression vec3 * (var_ref u) (swiz x (v…
17 …(assign (xyz) (array_ref (var_ref m) (constant int (1))) (expression vec3 * (var_ref u) (swiz y (v…
25 …w) (array_ref (var_ref m) (constant int (0))) (expression vec4 * (var_ref u) (swiz x (var_ref v))))
26 …w) (array_ref (var_ref m) (constant int (1))) (expression vec4 * (var_ref u) (swiz y (var_ref v))))
34 …(assign (xy) (array_ref (var_ref m) (constant int (0))) (expression vec2 * (var_ref u) (swiz x (va…
35 …(assign (xy) (array_ref (var_ref m) (constant int (1))) (expression vec2 * (var_ref u) (swiz y (va…
36 …(assign (xy) (array_ref (var_ref m) (constant int (2))) (expression vec2 * (var_ref u) (swiz z (va…
45 …(assign (xyz) (array_ref (var_ref m) (constant int (0))) (expression vec3 * (var_ref u) (swiz x (v…
[all …]
Dall.ir5 ((return (expression bool && (swiz x (var_ref arg0))(swiz y (var_ref arg0))))))
10 …((return (expression bool && (expression bool && (swiz x (var_ref arg0))(swiz y (var_ref arg0))) (
15 …pression bool && (expression bool && (swiz x (var_ref arg0))(swiz y (var_ref arg0))) (swiz z (var_…
Dmix.ir64 ((assign (swiz x (var_ref a)) (x) (var_ref v1) (swiz x (var_ref v2)))
65 (assign (swiz y (var_ref a)) (y) (var_ref v1) (swiz y (var_ref v2)))
73 ((assign (swiz x (var_ref a)) (x) (var_ref v1) (swiz x (var_ref v2)))
74 (assign (swiz y (var_ref a)) (y) (var_ref v1) (swiz y (var_ref v2)))
75 (assign (swiz z (var_ref a)) (z) (var_ref v1) (swiz z (var_ref v2)))
83 ((assign (swiz x (var_ref a)) (x) (var_ref v1) (swiz x (var_ref v2)))
84 (assign (swiz y (var_ref a)) (y) (var_ref v1) (swiz y (var_ref v2)))
85 (assign (swiz z (var_ref a)) (z) (var_ref v1) (swiz z (var_ref v2)))
86 (assign (swiz w (var_ref a)) (w) (var_ref v1) (swiz w (var_ref v2)))
Datan.ir98 (call atan (var_ref temp) ((swiz x (var_ref y)) (swiz x (var_ref x))))
100 (call atan (var_ref temp) ((swiz y (var_ref y)) (swiz y (var_ref x))))
110 (call atan (var_ref temp) ((swiz x (var_ref y)) (swiz x (var_ref x))))
112 (call atan (var_ref temp) ((swiz y (var_ref y)) (swiz y (var_ref x))))
114 (call atan (var_ref temp) ((swiz z (var_ref y)) (swiz z (var_ref x))))
124 (call atan (var_ref temp) ((swiz x (var_ref y)) (swiz x (var_ref x))))
126 (call atan (var_ref temp) ((swiz y (var_ref y)) (swiz y (var_ref x))))
128 (call atan (var_ref temp) ((swiz z (var_ref y)) (swiz z (var_ref x))))
130 (call atan (var_ref temp) ((swiz w (var_ref y)) (swiz w (var_ref x))))
Dcross.ir7 (expression vec3 * (swiz yzx (var_ref a)) (swiz zxy (var_ref b)))
8 (expression vec3 * (swiz zxy (var_ref a)) (swiz yzx (var_ref b)))))))
/external/mesa3d/src/glsl/
Dopt_noop_swizzle.cpp59 ir_swizzle *swiz = (*rvalue)->as_swizzle(); in handle_rvalue() local
60 if (!swiz || swiz->type != swiz->val->type) in handle_rvalue()
63 int elems = swiz->val->type->vector_elements; in handle_rvalue()
64 if (swiz->mask.x != 0) in handle_rvalue()
66 if (elems >= 2 && swiz->mask.y != 1) in handle_rvalue()
68 if (elems >= 3 && swiz->mask.z != 2) in handle_rvalue()
70 if (elems >= 4 && swiz->mask.w != 3) in handle_rvalue()
74 *rvalue = swiz->val; in handle_rvalue()
Dopt_constant_propagation.cpp144 ir_swizzle *swiz = NULL; in handle_rvalue() local
147 swiz = (*rvalue)->as_swizzle(); in handle_rvalue()
148 if (!swiz) in handle_rvalue()
151 deref = swiz->val->as_dereference_variable(); in handle_rvalue()
163 if (swiz) { in handle_rvalue()
165 case 0: channel = swiz->mask.x; break; in handle_rvalue()
166 case 1: channel = swiz->mask.y; break; in handle_rvalue()
167 case 2: channel = swiz->mask.z; break; in handle_rvalue()
168 case 3: channel = swiz->mask.w; break; in handle_rvalue()
Dopt_copy_propagation_elements.cpp445 ir_swizzle *swiz = ir->rhs->as_swizzle(); in add_copy() local
446 if (!swiz) in add_copy()
449 rhs = swiz->val->as_dereference_variable(); in add_copy()
453 orig_swizzle[0] = swiz->mask.x; in add_copy()
454 orig_swizzle[1] = swiz->mask.y; in add_copy()
455 orig_swizzle[2] = swiz->mask.z; in add_copy()
456 orig_swizzle[3] = swiz->mask.w; in add_copy()
Dhir_field_selection.cpp51 ir_swizzle *swiz = ir_swizzle::create(op, in _mesa_ast_field_selection_to_hir() local
54 if (swiz != NULL) { in _mesa_ast_field_selection_to_hir()
55 result = swiz; in _mesa_ast_field_selection_to_hir()
Dir.cpp82 ir_swizzle *swiz = lhs->as_swizzle(); in set_lhs() local
84 if (swiz == NULL) in set_lhs()
90 for (unsigned i = 0; i < swiz->mask.num_components; i++) { in set_lhs()
94 case 0: c = swiz->mask.x; break; in set_lhs()
95 case 1: c = swiz->mask.y; break; in set_lhs()
96 case 2: c = swiz->mask.z; break; in set_lhs()
97 case 3: c = swiz->mask.w; break; in set_lhs()
106 lhs = swiz->val; in set_lhs()
Dir_reader.cpp730 s_symbol *swiz; in read_swizzle() local
733 s_pattern pat[] = { "swiz", swiz, sub }; in read_swizzle()
739 if (strlen(swiz->value()) > 4) { in read_swizzle()
740 ir_read_error(expr, "expected a valid swizzle; found %s", swiz->value()); in read_swizzle()
748 ir_swizzle *ir = ir_swizzle::create(rvalue, swiz->value(), in read_swizzle()
Dir_print_visitor.cpp303 const unsigned swiz[4] = { in visit() local
312 printf("%c", "xyzw"[swiz[i]]); in visit()
DREADME137 (assign (constant bool (1)) (swiz x (var_ref __retval) ) (var_ref a) )
138 (assign (constant bool (1)) (swiz y (var_ref __retval) ) (var_ref b) )
139 (assign (constant bool (1)) (swiz z (var_ref __retval) ) (var_ref c) )
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_texture.c66 unsigned char swiz[4]; in apply_depthmode() local
76 swiz[i] = GET_SWZ(swizzle, i); in apply_depthmode()
82 if (swiz[i] == SWIZZLE_W) in apply_depthmode()
83 swiz[i] = SWIZZLE_ONE; in apply_depthmode()
84 else if (swiz[i] < SWIZZLE_W) in apply_depthmode()
85 swiz[i] = SWIZZLE_X; in apply_depthmode()
91 if (swiz[i] <= SWIZZLE_W) in apply_depthmode()
92 swiz[i] = SWIZZLE_X; in apply_depthmode()
98 if (swiz[i] == SWIZZLE_W) in apply_depthmode()
99 swiz[i] = SWIZZLE_X; in apply_depthmode()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_fs_vector_splitting.cpp241 ir_swizzle *swiz = (*rvalue)->as_swizzle(); in handle_rvalue() local
242 if (!swiz || !swiz->type->is_scalar()) in handle_rvalue()
245 ir_dereference_variable *deref_var = swiz->val->as_dereference_variable(); in handle_rvalue()
253 ir_variable *var = entry->components[swiz->mask.x]; in handle_rvalue()
Dbrw_eu.h56 static inline bool brw_is_single_value_swizzle(int swiz) in brw_is_single_value_swizzle() argument
58 return (swiz == BRW_SWIZZLE_XXXX || in brw_is_single_value_swizzle()
59 swiz == BRW_SWIZZLE_YYYY || in brw_is_single_value_swizzle()
60 swiz == BRW_SWIZZLE_ZZZZ || in brw_is_single_value_swizzle()
61 swiz == BRW_SWIZZLE_WWWW); in brw_is_single_value_swizzle()
Dbrw_fs_visitor.cpp1376 int swiz = GET_SWZ(c->key.tex.swizzles[sampler], i); in swizzle_result() local
1380 if (swiz == SWIZZLE_ZERO) { in swizzle_result()
1382 } else if (swiz == SWIZZLE_ONE) { in swizzle_result()
1410 int swiz = 0; in visit() local
1414 swiz = ir->mask.x; in visit()
1417 swiz = ir->mask.y; in visit()
1420 swiz = ir->mask.z; in visit()
1423 swiz = ir->mask.w; in visit()
1427 channel.reg_offset += swiz; in visit()
/external/mesa3d/src/mesa/program/
Dprog_opt_constant_fold.c50 unsigned swiz; in src_reg_for_float() local
56 (gl_constant_value *) &val, 1, &swiz); in src_reg_for_float()
57 src.Swizzle = swiz; in src_reg_for_float()
65 unsigned swiz; in src_reg_for_vec4() local
71 (gl_constant_value *) val, 4, &swiz); in src_reg_for_vec4()
72 src.Swizzle = swiz; in src_reg_for_vec4()
Dprog_parameter_layout.c41 unsigned swiz = 0; in _mesa_combine_swizzles() local
47 swiz |= ((s <= SWIZZLE_W) ? GET_SWZ(base, s) : s) << (i * 3); in _mesa_combine_swizzles()
50 return swiz; in _mesa_combine_swizzles()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_state_derived.c199 enum r300_rs_swizzle swiz) in r300_rs_col() argument
202 if (swiz == SWIZ_0001) { in r300_rs_col()
219 enum r300_rs_swizzle swiz) in r300_rs_tex() argument
221 if (swiz == SWIZ_X001) { in r300_rs_tex()
227 } else if (swiz == SWIZ_XY01) { in r300_rs_tex()
250 enum r300_rs_swizzle swiz) in r500_rs_col() argument
253 if (swiz == SWIZ_0001) { in r500_rs_col()
274 enum r300_rs_swizzle swiz) in r500_rs_tex() argument
276 if (swiz == SWIZ_X001) { in r500_rs_tex()
281 } else if (swiz == SWIZ_XY01) { in r500_rs_tex()
/external/llvm/test/CodeGen/Hexagon/intrinsics/
Dxtype_perm.ll44 declare i32 @llvm.hexagon.A2.swiz(i32)
46 %z = call i32 @llvm.hexagon.A2.swiz(i32 %a)
49 ; CHECK: = swiz({{.*}})
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dr500_fragprog_emit.c361 unsigned int swiz = 0; in translate_strq_swizzle() local
364 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2; in translate_strq_swizzle()
365 return swiz; in translate_strq_swizzle()
/external/llvm/test/MC/Disassembler/Hexagon/
Dxtype_perm.txt22 # CHECK: r17 = swiz(r21)

12