/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_dataflow_swizzles.c | 49 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 …]
|
D | radeon_compiler_util.c | 44 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 …]
|
D | r300_fragprog_swizzle.c | 79 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()
|
D | r3xx_vertprog.c | 147 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 …]
|
D | r500_fragprog_emit.c | 167 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()
|
D | radeon_program_print.c | 190 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()
|
D | r500_fragprog.c | 99 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()
|
D | radeon_pair_translate.c | 137 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()
|
D | radeon_program_pair.c | 179 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()
|
D | radeon_optimize.c | 204 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()
|
D | radeon_program_constants.h | 120 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) macro
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_vertprog.c | 286 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src() 287 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src() 288 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src() 289 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src() 298 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 299 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 300 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 301 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 606 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program() 615 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_sampler_view.c | 283 unsigned s = GET_SWZ(swizzle1, i); in swizzle_swizzle() 289 swz[i] = GET_SWZ(swizzle2, s); in swizzle_swizzle() 438 return ((sv->swizzle_r != GET_SWZ(swizzle, 0)) || in check_sampler_swizzle() 439 (sv->swizzle_g != GET_SWZ(swizzle, 1)) || in check_sampler_swizzle() 440 (sv->swizzle_b != GET_SWZ(swizzle, 2)) || in check_sampler_swizzle() 441 (sv->swizzle_a != GET_SWZ(swizzle, 3))); in check_sampler_swizzle() 557 templ.swizzle_r = GET_SWZ(swizzle, 0); in st_create_texture_sampler_view_from_stobj() 558 templ.swizzle_g = GET_SWZ(swizzle, 1); in st_create_texture_sampler_view_from_stobj() 559 templ.swizzle_b = GET_SWZ(swizzle, 2); in st_create_texture_sampler_view_from_stobj() 560 templ.swizzle_a = GET_SWZ(swizzle, 3); in st_create_texture_sampler_view_from_stobj()
|
D | st_mesa_to_tgsi.c | 300 GET_SWZ(SrcReg->Swizzle, 0) & 0x3, in translate_src() 301 GET_SWZ(SrcReg->Swizzle, 1) & 0x3, in translate_src() 302 GET_SWZ(SrcReg->Swizzle, 2) & 0x3, in translate_src() 303 GET_SWZ(SrcReg->Swizzle, 3) & 0x3); in translate_src() 351 unsigned one_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ONE) << 0 | in emit_swz() 352 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ONE) << 1 | in emit_swz() 353 (GET_SWZ(SrcReg->Swizzle, 2) == SWIZZLE_ONE) << 2 | in emit_swz() 354 (GET_SWZ(SrcReg->Swizzle, 3) == SWIZZLE_ONE) << 3); in emit_swz() 356 unsigned zero_mask = ((GET_SWZ(SrcReg->Swizzle, 0) == SWIZZLE_ZERO) << 0 | in emit_swz() 357 (GET_SWZ(SrcReg->Swizzle, 1) == SWIZZLE_ZERO) << 1 | in emit_swz() [all …]
|
D | st_glsl_to_tgsi.cpp | 637 int swz = GET_SWZ(initial_src_swz[j], i); in emit_asm() 838 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar() 839 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar() 846 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar() 847 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar() 1427 uint16_t swizzle_x = GET_SWZ(swz_op->swizzle, 0); in visit_expression() 1438 uint16_t swizzle_x = GET_SWZ(op[2].swizzle, 0); in visit_expression() 2264 op[0].swizzle = MAKE_SWIZZLE4(GET_SWZ(orig_swz, 0), GET_SWZ(orig_swz, 0), in visit_expression() 2265 GET_SWZ(orig_swz, 1), GET_SWZ(orig_swz, 1)); in visit_expression() 2288 op[0].swizzle = MAKE_SWIZZLE4(GET_SWZ(orig_swz, 2), in visit_expression() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | prog_execute.c | 197 assert(GET_SWZ(source->Swizzle, 0) <= 3); in fetch_vector4() 198 assert(GET_SWZ(source->Swizzle, 1) <= 3); in fetch_vector4() 199 assert(GET_SWZ(source->Swizzle, 2) <= 3); in fetch_vector4() 200 assert(GET_SWZ(source->Swizzle, 3) <= 3); in fetch_vector4() 201 result[0] = src[GET_SWZ(source->Swizzle, 0)]; in fetch_vector4() 202 result[1] = src[GET_SWZ(source->Swizzle, 1)]; in fetch_vector4() 203 result[2] = src[GET_SWZ(source->Swizzle, 2)]; in fetch_vector4() 204 result[3] = src[GET_SWZ(source->Swizzle, 3)]; in fetch_vector4() 253 result[0] = deriv[GET_SWZ(source->Swizzle, 0)]; in fetch_vector4_deriv() 254 result[1] = deriv[GET_SWZ(source->Swizzle, 1)]; in fetch_vector4_deriv() [all …]
|
D | prog_opt_constant_fold.c | 97 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; in get_value() 98 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; in get_value() 99 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; in get_value() 100 data[3] = value[GET_SWZ(r->Swizzle, 3)].f; in get_value()
|
D | prog_optimize.c | 107 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 …]
|
D | prog_parameter_layout.c | 45 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()
|
D | prog_print.c | 461 s[i++] = swz[GET_SWZ(swizzle, 0)]; in _mesa_swizzle_string() 469 s[i++] = swz[GET_SWZ(swizzle, 1)]; in _mesa_swizzle_string() 477 s[i++] = swz[GET_SWZ(swizzle, 2)]; in _mesa_swizzle_string() 485 s[i++] = swz[GET_SWZ(swizzle, 3)]; in _mesa_swizzle_string()
|
D | ir_to_mesa.cpp | 456 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar() 457 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar() 464 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar() 465 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar() 1386 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.x); in visit() 1389 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.y); in visit() 1392 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.z); in visit() 1395 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.w); in visit() 1756 first_enabled_chan = GET_SWZ(r.swizzle, i); in visit() 1769 swizzles[i] = GET_SWZ(r.swizzle, rhs_chan++); in visit() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_fragprog.c | 67 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/ |
D | ir_builder.cpp | 92 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/gallium/drivers/r300/compiler/tests/ |
D | radeon_compiler_regalloc_tests.c | 72 if (GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 0) in test_runner_rc_regalloc()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_wm_surface_state.c | 437 return MAKE_SWIZZLE4(swizzles[GET_SWZ(t->_Swizzle, 0)], in brw_get_texture_swizzle() 438 swizzles[GET_SWZ(t->_Swizzle, 1)], in brw_get_texture_swizzle() 439 swizzles[GET_SWZ(t->_Swizzle, 2)], in brw_get_texture_swizzle() 440 swizzles[GET_SWZ(t->_Swizzle, 3)]); in brw_get_texture_swizzle() 595 .r = swizzle_to_scs(GET_SWZ(swizzle, 0), need_green_to_blue), in brw_update_texture_surface() 596 .g = swizzle_to_scs(GET_SWZ(swizzle, 1), need_green_to_blue), in brw_update_texture_surface() 597 .b = swizzle_to_scs(GET_SWZ(swizzle, 2), need_green_to_blue), in brw_update_texture_surface() 598 .a = swizzle_to_scs(GET_SWZ(swizzle, 3), need_green_to_blue), in brw_update_texture_surface()
|