Lines Matching refs:ins
34 bi_lower_swizzle_16(bi_context *ctx, bi_instr *ins, unsigned src) in bi_lower_swizzle_16() argument
37 if (ins->src[src].swizzle == BI_SWIZZLE_H01) in bi_lower_swizzle_16()
41 switch (ins->op) { in bi_lower_swizzle_16()
59 if (src == 0 && ins->src[src].swizzle != BI_SWIZZLE_H10) in bi_lower_swizzle_16()
78 bi_builder b = bi_init_builder(ctx, bi_after_instr(ins)); in bi_lower_swizzle_16()
79 bi_index dest = ins->dest[0]; in bi_lower_swizzle_16()
82 ins->dest[0] = tmp; in bi_lower_swizzle_16()
83 bi_swz_v2i16_to(&b, dest, bi_replace_index(ins->src[0], tmp)); in bi_lower_swizzle_16()
92 if (ins->dest[0].swizzle == BI_SWIZZLE_H00 && in bi_lower_swizzle_16()
93 ins->src[src].swizzle == BI_SWIZZLE_H00) in bi_lower_swizzle_16()
95 ins->src[src].swizzle = BI_SWIZZLE_H01; in bi_lower_swizzle_16()
100 bi_builder b = bi_init_builder(ctx, bi_before_instr(ins)); in bi_lower_swizzle_16()
101 ins->src[src] = bi_replace_index(ins->src[src], in bi_lower_swizzle_16()
102 bi_swz_v2i16(&b, ins->src[src])); in bi_lower_swizzle_16()
103 ins->src[src].swizzle = BI_SWIZZLE_H01; in bi_lower_swizzle_16()
109 bi_foreach_instr_global_safe(ctx, ins) { in bi_lower_swizzle()
110 bi_foreach_src(ins, s) { in bi_lower_swizzle()
111 if (!bi_is_null(ins->src[s])) in bi_lower_swizzle()
112 bi_lower_swizzle_16(ctx, ins, s); in bi_lower_swizzle()