Home
last modified time | relevance | path

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

12

/third_party/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()
166 SET_SWZ(new_swizzle, new_chan, GET_SWZ(old_swizzle, i)); in rc_adjust_channels()
180 || GET_SWZ(conversion_swizzle, i) == RC_SWIZZLE_UNUSED) { in rewrite_writemask()
183 new_mask |= (1 << GET_SWZ(conversion_swizzle, i)); in rewrite_writemask()
[all …]
Dradeon_dataflow_swizzles.c49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source()
110 unsigned swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant()
130 unsigned chan_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant()
147 swz0 = GET_SWZ(new_swizzle, 0); in try_rewrite_constant()
148 swz1 = GET_SWZ(new_swizzle, 1); in try_rewrite_constant()
149 swz2 = GET_SWZ(new_swizzle, 2); in try_rewrite_constant()
322 swz3 = GET_SWZ(reg->Swizzle, 3); in try_rewrite_constant()
329 unsigned old_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant()
330 unsigned new_swz = GET_SWZ(new_swizzle, chan); in try_rewrite_constant()
342 GET_SWZ(new_swizzle, chan)); in try_rewrite_constant()
[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.c149 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src()
150 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src()
151 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src()
152 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src()
253 …inst[1] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit()
254 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit()
256 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y in ei_lit()
260 …inst[2] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit()
261 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit()
263 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 0)), // X in ei_lit()
[all …]
Dr500_fragprog_emit.c169 t |= fix_hw_swizzle(GET_SWZ(inst->RGB.Arg[arg].Swizzle, comp)) << (3*comp + 2); in translate_arg_rgb()
177 t |= fix_hw_swizzle(GET_SWZ(inst->Alpha.Arg[i].Swizzle, 0)) << 2; in translate_arg_alpha()
366 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2; in translate_strq_swizzle()
424 | (GET_SWZ(inst->TexSwizzle, 0) << 24) in emit_tex()
425 | (GET_SWZ(inst->TexSwizzle, 1) << 26) in emit_tex()
426 | (GET_SWZ(inst->TexSwizzle, 2) << 28) in emit_tex()
427 | (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.c100 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { in r500_transform_IF()
202 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native()
226 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native()
250 unsigned int swz = GET_SWZ(src.Swizzle, i); in r500_swizzle_split()
Dradeon_optimize.c206 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant()
342 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) <= 3) in constant_folding()
364 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); in constant_folding()
441 unsigned int swz = GET_SWZ(src.Swizzle, chan); in src_has_const_swz()
664 swz = GET_SWZ(inst_add->U.I.SrcReg[0].Swizzle, i); in peephole_add_presub_inv()
760 GET_SWZ(inst_mul->U.I.SrcReg[i].Swizzle, j); in peephole_mul_omod()
892 unsigned int swz = GET_SWZ(swz1, chan); in merge_swizzles()
897 swz = GET_SWZ(swz2, chan); in merge_swizzles()
Dradeon_pair_translate.c139 unsigned int swz = GET_SWZ(src.Swizzle, j); in src_uses()
226 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); in set_pair_instruction()
256 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_inline_literals.c125 swz = GET_SWZ(src_reg->Swizzle, chan); in rc_inline_literals()
Dradeon_program_constants.h125 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) macro
Dradeon_program_tex.c97 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in projective_divide()
185 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in radeonTransformTEX()
197 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 2)); in radeonTransformTEX()
Dradeon_dataflow.c49 refmask |= 1 << GET_SWZ(src->Swizzle, chan); in reads_normal_callback()
112 GET_SWZ(inst->RGB.Arg[arg].Swizzle, chan); in reads_pair()
114 GET_SWZ(inst->Alpha.Arg[arg].Swizzle, chan); in reads_pair()
Dradeon_dataflow_deadcode.c183 refmask |= 1 << GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan); in update_instruction()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_sampler_view.c322 unsigned s = GET_SWZ(swizzle1, i); in swizzle_swizzle()
328 swz[i] = GET_SWZ(swizzle2, s); in swizzle_swizzle()
477 return ((sv->swizzle_r != GET_SWZ(swizzle, 0)) || in check_sampler_swizzle()
478 (sv->swizzle_g != GET_SWZ(swizzle, 1)) || in check_sampler_swizzle()
479 (sv->swizzle_b != GET_SWZ(swizzle, 2)) || in check_sampler_swizzle()
480 (sv->swizzle_a != GET_SWZ(swizzle, 3))); in check_sampler_swizzle()
616 templ.swizzle_r = GET_SWZ(swizzle, 0); in st_create_texture_sampler_view_from_stobj()
617 templ.swizzle_g = GET_SWZ(swizzle, 1); in st_create_texture_sampler_view_from_stobj()
618 templ.swizzle_b = GET_SWZ(swizzle, 2); in st_create_texture_sampler_view_from_stobj()
619 templ.swizzle_a = GET_SWZ(swizzle, 3); in st_create_texture_sampler_view_from_stobj()
Dst_nir_lower_builtin.c213 swiz[i] = GET_SWZ(element->swizzle, i); in lower_builtin_instr()
/third_party/mesa3d/src/compiler/glsl/
Dir_builder.cpp79 GET_SWZ(swizzle, 0), in swizzle()
80 GET_SWZ(swizzle, 1), in swizzle()
81 GET_SWZ(swizzle, 2), in swizzle()
82 GET_SWZ(swizzle, 3), in swizzle()
/third_party/mesa3d/src/mesa/program/
Dprog_print.c447 s[i++] = swz[GET_SWZ(swizzle, 0)]; in _mesa_swizzle_string()
455 s[i++] = swz[GET_SWZ(swizzle, 1)]; in _mesa_swizzle_string()
463 s[i++] = swz[GET_SWZ(swizzle, 2)]; in _mesa_swizzle_string()
471 s[i++] = swz[GET_SWZ(swizzle, 3)]; in _mesa_swizzle_string()
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_instruction.h60 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) macro
Dprog_to_nir.c208 src.swizzle[i] = GET_SWZ(prog_src->Swizzle, i); in ptn_get_src()
220 int swizzle = GET_SWZ(prog_src->Swizzle, i); in ptn_get_src()
/third_party/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()
/third_party/mesa3d/src/mesa/main/
Dffvertex_prog.c371 reg.swz = MAKE_SWIZZLE4(GET_SWZ(reg.swz, x), in swizzle()
372 GET_SWZ(reg.swz, y), in swizzle()
373 GET_SWZ(reg.swz, z), in swizzle()
374 GET_SWZ(reg.swz, w)); in swizzle()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_tgsi_to_rc.c197 dst->Swizzle |= GET_SWZ(ttr->imms_to_swizzle[i].swizzle, in transform_srcreg()

12