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.c288 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src()
289 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src()
290 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src()
291 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src()
300 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
301 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
302 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
303 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar()
617 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program()
626 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
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.c77 unsigned int swz = GET_SWZ(swizzle, comp); in lookup_native_swizzle()
80 if (swz != GET_SWZ(sd->hash, comp)) in lookup_native_swizzle()
121 unsigned int swz = GET_SWZ(reg.Swizzle, j); in r300_swizzle_is_native()
134 if (GET_SWZ(reg.Swizzle, j) != RC_SWIZZLE_UNUSED) in r300_swizzle_is_native()
167 swz = GET_SWZ(src.Swizzle, comp); in r300_swizzle_split()
170 if (swz == GET_SWZ(sd->hash, comp)) { in r300_swizzle_split()
229 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()
247 …inst[1] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit()
248 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit()
250 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y in ei_lit()
254 …inst[2] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit()
255 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit()
257 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()
Dradeon_dataflow_swizzles.c43 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source()
66 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source()
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.c187 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant()
323 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) <= 3) in constant_folding()
345 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); in constant_folding()
423 unsigned int swz = GET_SWZ(src.Swizzle, chan); in src_has_const_swz()
639 swz = GET_SWZ(inst_add->U.I.SrcReg[0].Swizzle, i); in peephole_add_presub_inv()
736 GET_SWZ(inst_mul->U.I.SrcReg[i].Swizzle, j); in peephole_mul_omod()
Dradeon_inline_literals.c100 swz = GET_SWZ(src_reg->Swizzle, chan); in rc_inline_literals()
Dradeon_program_constants.h120 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) macro
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_texture.c76 swiz[i] = GET_SWZ(swizzle, i); in apply_depthmode()
132 if ((sv->swizzle_r != GET_SWZ(swizzle, 0)) || in check_sampler_swizzle()
133 (sv->swizzle_g != GET_SWZ(swizzle, 1)) || in check_sampler_swizzle()
134 (sv->swizzle_b != GET_SWZ(swizzle, 2)) || in check_sampler_swizzle()
135 (sv->swizzle_a != GET_SWZ(swizzle, 3))) in check_sampler_swizzle()
158 templ.swizzle_r = GET_SWZ(swizzle, 0); in st_create_texture_sampler_view_from_stobj()
159 templ.swizzle_g = GET_SWZ(swizzle, 1); in st_create_texture_sampler_view_from_stobj()
160 templ.swizzle_b = GET_SWZ(swizzle, 2); in st_create_texture_sampler_view_from_stobj()
161 templ.swizzle_a = GET_SWZ(swizzle, 3); in st_create_texture_sampler_view_from_stobj()
Dst_mesa_to_tgsi.c354 GET_SWZ( SrcReg->Swizzle, 0 ) & 0x3, in translate_src()
355 GET_SWZ( SrcReg->Swizzle, 1 ) & 0x3, in translate_src()
356 GET_SWZ( SrcReg->Swizzle, 2 ) & 0x3, in translate_src()
357 GET_SWZ( SrcReg->Swizzle, 3 ) & 0x3); in translate_src()
407 unsigned one_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ONE) << 0 | in emit_swz()
408 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ONE) << 1 | in emit_swz()
409 (GET_SWZ(SrcReg->Swizzle, 2) == SWIZZLE_ONE) << 2 | in emit_swz()
410 (GET_SWZ(SrcReg->Swizzle, 3) == SWIZZLE_ONE) << 3); in emit_swz()
412 unsigned zero_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ZERO) << 0 | in emit_swz()
413 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ZERO) << 1 | in emit_swz()
[all …]
Dst_glsl_to_tgsi.cpp723 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar()
724 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar()
731 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar()
732 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar()
823 unsigned src0_swiz = GET_SWZ(src.swizzle, i); in emit_scs()
833 GET_SWZ(src0.swizzle, j) == src0_swiz) { in emit_scs()
1914 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.x); in visit()
1917 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.y); in visit()
1920 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.z); in visit()
1923 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.w); in visit()
[all …]
/external/mesa3d/src/mesa/program/
Dprog_execute.c234 ASSERT(GET_SWZ(source->Swizzle, 0) <= 3); in fetch_vector4()
235 ASSERT(GET_SWZ(source->Swizzle, 1) <= 3); in fetch_vector4()
236 ASSERT(GET_SWZ(source->Swizzle, 2) <= 3); in fetch_vector4()
237 ASSERT(GET_SWZ(source->Swizzle, 3) <= 3); in fetch_vector4()
238 result[0] = src[GET_SWZ(source->Swizzle, 0)]; in fetch_vector4()
239 result[1] = src[GET_SWZ(source->Swizzle, 1)]; in fetch_vector4()
240 result[2] = src[GET_SWZ(source->Swizzle, 2)]; in fetch_vector4()
241 result[3] = src[GET_SWZ(source->Swizzle, 3)]; in fetch_vector4()
283 ASSERT(GET_SWZ(source->Swizzle, 0) <= 3); in fetch_vector4ui()
284 ASSERT(GET_SWZ(source->Swizzle, 1) <= 3); in fetch_vector4ui()
[all …]
Dprog_optimize.c117 const GLuint coord = GET_SWZ(inst->SrcReg[arg].Swizzle, comp); in get_src_arg_mask()
144 src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, comp); in get_dst_mask_for_mov()
161 return GET_SWZ(swz,0) <= SWIZZLE_W && in is_swizzle_regular()
162 GET_SWZ(swz,1) <= SWIZZLE_W && in is_swizzle_regular()
163 GET_SWZ(swz,2) <= SWIZZLE_W && in is_swizzle_regular()
164 GET_SWZ(swz,3) <= SWIZZLE_W; in is_swizzle_regular()
287 const GLuint swz = GET_SWZ(inst->SrcReg[j].Swizzle, comp); in _mesa_remove_dead_code_global()
555 GET_SWZ(inst2->SrcReg[arg].Swizzle, comp); in _mesa_remove_extra_move_use()
556 const GLuint s = GET_SWZ(mov->SrcReg[0].Swizzle, inst2_swz); in _mesa_remove_extra_move_use()
682 const GLuint src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, dst_comp); in _mesa_merge_mov_into_inst()
[all …]
Dprog_opt_constant_fold.c95 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; in get_value()
96 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; in get_value()
97 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; in get_value()
98 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()
Dir_to_mesa.cpp450 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar()
451 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar()
458 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar()
459 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar()
538 unsigned src0_swiz = GET_SWZ(src.swizzle, i); in emit_scs()
548 GET_SWZ(src0.swizzle, j) == src0_swiz) { in emit_scs()
1494 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.x); in visit()
1497 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.y); in visit()
1500 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.z); in visit()
1503 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.w); in visit()
[all …]
Dprog_print.c478 s[i++] = swz[GET_SWZ(swizzle, 0)]; in _mesa_swizzle_string()
486 s[i++] = swz[GET_SWZ(swizzle, 1)]; in _mesa_swizzle_string()
494 s[i++] = swz[GET_SWZ(swizzle, 2)]; in _mesa_swizzle_string()
502 s[i++] = swz[GET_SWZ(swizzle, 3)]; in _mesa_swizzle_string()
/external/mesa3d/src/glsl/
Dir_builder.cpp72 GET_SWZ(swizzle, 0), in swizzle()
73 GET_SWZ(swizzle, 1), in swizzle()
74 GET_SWZ(swizzle, 2), in swizzle()
75 GET_SWZ(swizzle, 3), in swizzle()
/external/mesa3d/src/mesa/swrast/
Ds_fragprog.c66 colorOut[0] = vector[GET_SWZ(swizzle, 0)]; in swizzle_texel()
67 colorOut[1] = vector[GET_SWZ(swizzle, 1)]; in swizzle_texel()
68 colorOut[2] = vector[GET_SWZ(swizzle, 2)]; in swizzle_texel()
69 colorOut[3] = vector[GET_SWZ(swizzle, 3)]; in swizzle_texel()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen7_wm_surface_state.c383 surf->ss7.shader_channel_select_r = swizzle_to_scs(GET_SWZ(swizzle, 0)); in gen7_update_texture_surface()
384 surf->ss7.shader_channel_select_g = swizzle_to_scs(GET_SWZ(swizzle, 1)); in gen7_update_texture_surface()
385 surf->ss7.shader_channel_select_b = swizzle_to_scs(GET_SWZ(swizzle, 2)); in gen7_update_texture_surface()
386 surf->ss7.shader_channel_select_a = swizzle_to_scs(GET_SWZ(swizzle, 3)); in gen7_update_texture_surface()

12