Home
last modified time | relevance | path

Searched refs:GET_SWZ (Results 1 – 25 of 44) sorted by relevance

12

/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_vertprog.c282 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src()
283 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src()
284 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src()
285 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src()
294 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
295 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
296 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
297 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
602 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program()
611 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_dataflow_swizzles.c49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source()
72 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source()
115 unsigned swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant()
135 unsigned chan_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant()
152 swz0 = GET_SWZ(new_swizzle, 0); in try_rewrite_constant()
153 swz1 = GET_SWZ(new_swizzle, 1); in try_rewrite_constant()
154 swz2 = GET_SWZ(new_swizzle, 2); in try_rewrite_constant()
327 swz3 = GET_SWZ(reg->Swizzle, 3); in try_rewrite_constant()
332 unsigned old_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant()
333 unsigned new_swz = GET_SWZ(new_swizzle, chan); in try_rewrite_constant()
[all …]
Dradeon_compiler_util.c44 mask |= 1 << GET_SWZ(swz, i); in rc_swizzle_to_writemask()
55 return GET_SWZ(swz, idx); in get_swz()
93 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_X)); in combine_swizzles()
94 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Y)) << 3; in combine_swizzles()
95 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Z)) << 6; in combine_swizzles()
96 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_W)) << 9; in combine_swizzles()
120 unsigned swz = GET_SWZ(swizzle, chan); in swizzle_mask()
159 SET_SWZ(new_swizzle, new_chan, GET_SWZ(old_swizzle, i)); in rc_adjust_channels()
173 || GET_SWZ(conversion_swizzle, i) == RC_SWIZZLE_UNUSED) { in rewrite_writemask()
176 new_mask |= (1 << GET_SWZ(conversion_swizzle, i)); in rewrite_writemask()
[all …]
Dr300_fragprog_swizzle.c79 unsigned int swz = GET_SWZ(swizzle, comp); in lookup_native_swizzle()
82 if (swz != GET_SWZ(sd->hash, comp)) in lookup_native_swizzle()
123 unsigned int swz = GET_SWZ(reg.Swizzle, j); in r300_swizzle_is_native()
136 if (GET_SWZ(reg.Swizzle, j) != RC_SWIZZLE_UNUSED) in r300_swizzle_is_native()
169 swz = GET_SWZ(src.Swizzle, comp); in r300_swizzle_split()
172 if (swz == GET_SWZ(sd->hash, comp)) { in r300_swizzle_split()
231 unsigned int swz = GET_SWZ(swizzle, 0); in r300FPTranslateAlphaSwizzle()
Dr3xx_vertprog.c147 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src()
148 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src()
149 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src()
150 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src()
251 …inst[1] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit()
252 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit()
254 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y in ei_lit()
258 …inst[2] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit()
259 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit()
261 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 0)), // X in ei_lit()
[all …]
Dr500_fragprog_emit.c167 t |= fix_hw_swizzle(GET_SWZ(inst->RGB.Arg[arg].Swizzle, comp)) << (3*comp + 2); in translate_arg_rgb()
175 t |= fix_hw_swizzle(GET_SWZ(inst->Alpha.Arg[i].Swizzle, 0)) << 2; in translate_arg_alpha()
364 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2; in translate_strq_swizzle()
422 | (GET_SWZ(inst->TexSwizzle, 0) << 24) in emit_tex()
423 | (GET_SWZ(inst->TexSwizzle, 1) << 26) in emit_tex()
424 | (GET_SWZ(inst->TexSwizzle, 2) << 28) in emit_tex()
425 | (GET_SWZ(inst->TexSwizzle, 3) << 30) in emit_tex()
Dradeon_program_print.c190 rc_swizzle swz = GET_SWZ(swizzle, comp); in rc_print_swizzle()
413 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 0)), in rc_print_pair_instruction()
414 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 1)), in rc_print_pair_instruction()
415 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 2)), in rc_print_pair_instruction()
448 rc_swizzle_char(GET_SWZ(inst->Alpha.Arg[arg].Swizzle, 0)), abs); in rc_print_pair_instruction()
Dr500_fragprog.c99 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { in r500_transform_IF()
201 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native()
227 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native()
251 unsigned int swz = GET_SWZ(src.Swizzle, i); in r500_swizzle_split()
Dradeon_pair_translate.c137 unsigned int swz = GET_SWZ(src.Swizzle, j); in src_uses()
224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); in set_pair_instruction()
254 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction()
Dradeon_program_pair.c179 GET_SWZ(pair->Alpha.Arg[i].Swizzle, 0), in rc_pair_foreach_source_that_alpha_reads()
199 swz = GET_SWZ(pair->RGB.Arg[i].Swizzle, chan); in rc_pair_foreach_source_that_rgb_reads()
Dradeon_optimize.c204 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant()
340 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) <= 3) in constant_folding()
362 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); in constant_folding()
440 unsigned int swz = GET_SWZ(src.Swizzle, chan); in src_has_const_swz()
656 swz = GET_SWZ(inst_add->U.I.SrcReg[0].Swizzle, i); in peephole_add_presub_inv()
754 GET_SWZ(inst_mul->U.I.SrcReg[i].Swizzle, j); in peephole_mul_omod()
Dradeon_inline_literals.c125 swz = GET_SWZ(src_reg->Swizzle, chan); in rc_inline_literals()
/external/mesa3d/src/mesa/state_tracker/
Dst_sampler_view.c259 unsigned s = GET_SWZ(swizzle1, i); in swizzle_swizzle()
265 swz[i] = GET_SWZ(swizzle2, s); in swizzle_swizzle()
414 return ((sv->swizzle_r != GET_SWZ(swizzle, 0)) || in check_sampler_swizzle()
415 (sv->swizzle_g != GET_SWZ(swizzle, 1)) || in check_sampler_swizzle()
416 (sv->swizzle_b != GET_SWZ(swizzle, 2)) || in check_sampler_swizzle()
417 (sv->swizzle_a != GET_SWZ(swizzle, 3))); in check_sampler_swizzle()
509 templ.swizzle_r = GET_SWZ(swizzle, 0); in st_create_texture_sampler_view_from_stobj()
510 templ.swizzle_g = GET_SWZ(swizzle, 1); in st_create_texture_sampler_view_from_stobj()
511 templ.swizzle_b = GET_SWZ(swizzle, 2); in st_create_texture_sampler_view_from_stobj()
512 templ.swizzle_a = GET_SWZ(swizzle, 3); in st_create_texture_sampler_view_from_stobj()
Dst_mesa_to_tgsi.c288 GET_SWZ(SrcReg->Swizzle, 0) & 0x3, in translate_src()
289 GET_SWZ(SrcReg->Swizzle, 1) & 0x3, in translate_src()
290 GET_SWZ(SrcReg->Swizzle, 2) & 0x3, in translate_src()
291 GET_SWZ(SrcReg->Swizzle, 3) & 0x3); in translate_src()
339 unsigned one_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ONE) << 0 | in emit_swz()
340 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ONE) << 1 | in emit_swz()
341 (GET_SWZ(SrcReg->Swizzle, 2) == SWIZZLE_ONE) << 2 | in emit_swz()
342 (GET_SWZ(SrcReg->Swizzle, 3) == SWIZZLE_ONE) << 3); in emit_swz()
344 unsigned zero_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ZERO) << 0 | in emit_swz()
345 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ZERO) << 1 | in emit_swz()
[all …]
Dst_glsl_to_tgsi.cpp578 int swz = GET_SWZ(initial_src_swz[j], i); in emit_asm()
772 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar()
773 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar()
780 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar()
781 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar()
1356 uint16_t swizzle_x = GET_SWZ(swz_op->swizzle, 0); in visit_expression()
1367 uint16_t swizzle_x = GET_SWZ(op[2].swizzle, 0); in visit_expression()
2185 op[0].swizzle = MAKE_SWIZZLE4(GET_SWZ(orig_swz, 0), GET_SWZ(orig_swz, 0), in visit_expression()
2186 GET_SWZ(orig_swz, 1), GET_SWZ(orig_swz, 1)); in visit_expression()
2209 op[0].swizzle = MAKE_SWIZZLE4(GET_SWZ(orig_swz, 2), GET_SWZ(orig_swz, 2), in visit_expression()
[all …]
/external/mesa3d/src/mesa/program/
Dprog_execute.c193 assert(GET_SWZ(source->Swizzle, 0) <= 3); in fetch_vector4()
194 assert(GET_SWZ(source->Swizzle, 1) <= 3); in fetch_vector4()
195 assert(GET_SWZ(source->Swizzle, 2) <= 3); in fetch_vector4()
196 assert(GET_SWZ(source->Swizzle, 3) <= 3); in fetch_vector4()
197 result[0] = src[GET_SWZ(source->Swizzle, 0)]; in fetch_vector4()
198 result[1] = src[GET_SWZ(source->Swizzle, 1)]; in fetch_vector4()
199 result[2] = src[GET_SWZ(source->Swizzle, 2)]; in fetch_vector4()
200 result[3] = src[GET_SWZ(source->Swizzle, 3)]; in fetch_vector4()
249 result[0] = deriv[GET_SWZ(source->Swizzle, 0)]; in fetch_vector4_deriv()
250 result[1] = deriv[GET_SWZ(source->Swizzle, 1)]; in fetch_vector4_deriv()
[all …]
Dprog_optimize.c107 const GLuint coord = GET_SWZ(inst->SrcReg[arg].Swizzle, comp); in get_src_arg_mask()
133 src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, comp); in get_dst_mask_for_mov()
150 return GET_SWZ(swz,0) <= SWIZZLE_W && in is_swizzle_regular()
151 GET_SWZ(swz,1) <= SWIZZLE_W && in is_swizzle_regular()
152 GET_SWZ(swz,2) <= SWIZZLE_W && in is_swizzle_regular()
153 GET_SWZ(swz,3) <= SWIZZLE_W; in is_swizzle_regular()
277 const GLuint swz = GET_SWZ(inst->SrcReg[j].Swizzle, comp); in _mesa_remove_dead_code_global()
525 GET_SWZ(inst2->SrcReg[arg].Swizzle, comp); in _mesa_remove_extra_move_use()
526 const GLuint s = GET_SWZ(mov->SrcReg[0].Swizzle, inst2_swz); in _mesa_remove_extra_move_use()
652 const GLuint src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, dst_comp); in _mesa_merge_mov_into_inst()
[all …]
Dprog_opt_constant_fold.c96 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; in get_value()
97 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; in get_value()
98 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; in get_value()
99 data[3] = value[GET_SWZ(r->Swizzle, 3)].f; in get_value()
Dprog_parameter_layout.c45 const unsigned s = GET_SWZ(applied, i); in _mesa_combine_swizzles()
47 swiz |= ((s <= SWIZZLE_W) ? GET_SWZ(base, s) : s) << (i * 3); in _mesa_combine_swizzles()
Dprog_print.c446 s[i++] = swz[GET_SWZ(swizzle, 0)]; in _mesa_swizzle_string()
454 s[i++] = swz[GET_SWZ(swizzle, 1)]; in _mesa_swizzle_string()
462 s[i++] = swz[GET_SWZ(swizzle, 2)]; in _mesa_swizzle_string()
470 s[i++] = swz[GET_SWZ(swizzle, 3)]; in _mesa_swizzle_string()
Dir_to_mesa.cpp454 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar()
455 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar()
462 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar()
463 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar()
1452 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.x); in visit()
1455 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.y); in visit()
1458 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.z); in visit()
1461 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.w); in visit()
1822 first_enabled_chan = GET_SWZ(r.swizzle, i); in visit()
1835 swizzles[i] = GET_SWZ(r.swizzle, rhs_chan++); in visit()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_fragprog.c67 colorOut[0] = vector[GET_SWZ(swizzle, 0)]; in swizzle_texel()
68 colorOut[1] = vector[GET_SWZ(swizzle, 1)]; in swizzle_texel()
69 colorOut[2] = vector[GET_SWZ(swizzle, 2)]; in swizzle_texel()
70 colorOut[3] = vector[GET_SWZ(swizzle, 3)]; in swizzle_texel()
/external/mesa3d/src/compiler/glsl/
Dir_builder.cpp92 GET_SWZ(swizzle, 0), in swizzle()
93 GET_SWZ(swizzle, 1), in swizzle()
94 GET_SWZ(swizzle, 2), in swizzle()
95 GET_SWZ(swizzle, 3), in swizzle()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_wm_surface_state.c415 return MAKE_SWIZZLE4(swizzles[GET_SWZ(t->_Swizzle, 0)], in brw_get_texture_swizzle()
416 swizzles[GET_SWZ(t->_Swizzle, 1)], in brw_get_texture_swizzle()
417 swizzles[GET_SWZ(t->_Swizzle, 2)], in brw_get_texture_swizzle()
418 swizzles[GET_SWZ(t->_Swizzle, 3)]); in brw_get_texture_swizzle()
556 .r = swizzle_to_scs(GET_SWZ(swizzle, 0), need_green_to_blue), in brw_update_texture_surface()
557 .g = swizzle_to_scs(GET_SWZ(swizzle, 1), need_green_to_blue), in brw_update_texture_surface()
558 .b = swizzle_to_scs(GET_SWZ(swizzle, 2), need_green_to_blue), in brw_update_texture_surface()
559 .a = swizzle_to_scs(GET_SWZ(swizzle, 3), need_green_to_blue), in brw_update_texture_surface()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Dradeon_compiler_regalloc_tests.c72 if (GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 0) in test_runner_rc_regalloc()

12