/external/libdrm/intel/tests/ |
D | gen6-3d.batch-ref.txt | 91 0x12300168: 0x00200810: Attrib Out 0, Attrib Swizzle enable, VUE read length 1, VUE read of… 98 … Attrib 1 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 0 (Override , Const So… 99 … Attrib 3 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 2 (Override , Const So… 100 … Attrib 5 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 4 (Override , Const So… 101 … Attrib 7 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 6 (Override , Const So… 102 … Attrib 9 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 8 (Override , Const So… 103 … Attrib 11 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 10 (Override , Const So… 104 … Attrib 13 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 12 (Override , Const So… 105 … Attrib 15 (Override , Const Source 0, Swizzle Select 0, Source 0); Attrib 14 (Override , Const So… 214 0x12300354: 0x00600810: Attrib Out 1, Attrib Swizzle enable, VUE read length 1, VUE read of… [all …]
|
/external/mesa3d/src/mesa/program/ |
D | prog_opt_constant_fold.c | 59 src.Swizzle = swiz; in src_reg_for_float() 74 src.Swizzle = swiz; in src_reg_for_vec4() 84 && (a->Swizzle == b->Swizzle) in src_regs_are_same() 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() 153 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 183 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 185 inst->SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() [all …]
|
D | programopt.c | 95 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in insert_mvp_dp4_code() 98 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_dp4_code() 166 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; in insert_mvp_mad_code() 169 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 178 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); in insert_mvp_mad_code() 181 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 184 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 193 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; in insert_mvp_mad_code() 196 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() 199 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code() [all …]
|
D | prog_instruction.c | 49 inst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in _mesa_init_instructions() 51 inst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_init_instructions() 53 inst[i].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_init_instructions() 230 GLuint swizzle = GET_SWZ(inst->SrcReg[i].Swizzle, chan); in _mesa_check_soa_dependencies()
|
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() 277 const GLuint swz = GET_SWZ(inst->SrcReg[j].Swizzle, comp); in _mesa_remove_dead_code_global() 521 if (is_swizzle_regular(inst2->SrcReg[arg].Swizzle) && in _mesa_remove_extra_move_use() 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() 527 inst2->SrcReg[arg].Swizzle &= ~(7 << (3 * comp)); in _mesa_remove_extra_move_use() 528 inst2->SrcReg[arg].Swizzle |= s << (3 * comp); 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() 660 const GLuint arg_swz = inst->SrcReg[arg].Swizzle; in _mesa_merge_mov_into_inst() [all …]
|
/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() 607 src[i].Swizzle &= ~(SWIZZLE_W << (j*3)); in r200_translate_vertex_program() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | format_parser.py | 109 class Swizzle: class 148 swizzle = [Swizzle.__identity_str.index(c) for c in swizzle] 152 assert isinstance(s, int) and 0 <= s and s <= Swizzle.SWIZZLE_NONE 156 self.__list = swizzle + [Swizzle.SWIZZLE_NONE] * (4 - len(swizzle)) 169 return ''.join(Swizzle.__identity_str[i] for i in self.__list) 180 assert idx >= Swizzle.SWIZZLE_X and idx <= Swizzle.SWIZZLE_NONE 181 if idx <= Swizzle.SWIZZLE_W: 204 assert isinstance(other, Swizzle) 205 return Swizzle(self[x] for x in other) 224 rev = [Swizzle.SWIZZLE_NONE] * 4 [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 120 struct match_info Swizzle; member 160 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src() 161 tokens.Swizzle.Length = match_length(matches, 5); in init_rc_normal_src() 193 if (tokens.Swizzle.Length == 0) { in init_rc_normal_src() 194 src_reg->Swizzle = RC_SWIZZLE_XYZW; in init_rc_normal_src() 197 src_reg->Swizzle = RC_MAKE_SWIZZLE_SMEAR(RC_SWIZZLE_UNUSED); in init_rc_normal_src() 198 if (tokens.Swizzle.String[0] != '.') { in init_rc_normal_src() 202 for (i = 0; i < 4 && str_index < tokens.Swizzle.Length; in init_rc_normal_src() 204 if (tokens.Swizzle.String[str_index] == '-') { in init_rc_normal_src() 208 switch(tokens.Swizzle.String[str_index]) { in init_rc_normal_src() [all …]
|
/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() 70 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSED); in rewrite_source() 72 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source() 87 inst->U.I.SrcReg[src].Swizzle = 0; in rewrite_source() 91 SET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan, in rewrite_source() 115 unsigned swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant() 125 new_swizzle = reg->Swizzle; in try_rewrite_constant() 135 unsigned chan_swz = GET_SWZ(reg->Swizzle, chan); 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() [all …]
|
D | radeon_pair_translate.c | 46 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 67 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 69 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 74 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 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() 242 pair->RGB.Arg[i].Swizzle = in set_pair_instruction() 243 rc_init_swizzle(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() 252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); in set_pair_instruction() 254 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() [all …]
|
D | radeon_compiler_util.c | 203 sub->Arg[i].Swizzle = in rc_pair_rewrite_writemask() 204 rc_adjust_channels(sub->Arg[i].Swizzle, in rc_pair_rewrite_writemask() 215 src->Swizzle = rc_adjust_channels(src->Swizzle, *conversion_swizzle); in normal_rewrite_writemask_cb() 292 tmp.Swizzle = 0; in lmul_swizzle() 297 tmp.Swizzle |= GET_SWZ(srcreg.Swizzle, swz) << (i*3); in lmul_swizzle() 300 tmp.Swizzle |= swz << (i*3); in lmul_swizzle() 309 reg->Swizzle = RC_SWIZZLE_XYZW; in reset_srcreg() 408 rc_source_type_swz(src->Swizzle)); in can_use_presub_read_cb() 451 src_type0 = rc_source_type_swz(presub_src0->Swizzle); in rc_inst_can_use_presub() 458 src_type1 = rc_source_type_swz(presub_src1->Swizzle); in rc_inst_can_use_presub() [all …]
|
D | radeon_program_tex.c | 41 reg.Swizzle = combine_swizzles(RC_SWIZZLE_0000, in shadow_fail_value() 52 reg.Swizzle = combine_swizzles(RC_SWIZZLE_1111, in shadow_pass_value() 96 inst_rcp->U.I.SrcReg[0].Swizzle = in projective_divide() 97 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in projective_divide() 106 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in projective_divide() 185 inst_rcp->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 186 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in radeonTransformTEX() 197 inst_mul->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 198 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 2)); in radeonTransformTEX() 202 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in radeonTransformTEX() [all …]
|
D | r500_fragprog.c | 99 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { in r500_transform_IF() 115 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 116 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 120 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 121 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 175 inst_if->U.I.SrcReg[0].Swizzle = RC_MAKE_SWIZZLE( in r500_transform_IF() 197 if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE)) in r500_swizzle_is_native() 201 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() 217 if (reg.Swizzle == RC_SWIZZLE_XYZW && !reg.Abs && !reg.Negate) in r500_swizzle_is_native() 227 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() [all …]
|
D | radeon_optimize.c | 59 combine.Negate = swizzle_mask(outer.Swizzle, inner.Negate); in chain_srcregs() 62 combine.Swizzle = combine_swizzles(inner.Swizzle, outer.Swizzle); in chain_srcregs() 74 rc_swizzle_to_writemask(src->Swizzle), in copy_propagate_scan_read() 113 && (rc_swizzle_to_writemask(src->Swizzle) & sc_data->Mask)) { in src_clobbered_reads_cb() 204 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant() 282 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 295 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 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() 386 SET_SWZ(newsrc.Swizzle, chan, newswz); in constant_folding() [all …]
|
D | radeon_compiler.c | 154 inst->U.I.SrcReg[i].Swizzle = combine_swizzles(new_input.Swizzle, inst->U.I.SrcReg[i].Swizzle); in rc_move_input() 219 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; in rc_copy_output() 228 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; in rc_copy_output() 259 inst_rcp->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_WWWW; in rc_transform_fragment_wpos() 273 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in rc_transform_fragment_wpos() 285 inst_mad->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 288 inst_mad->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 291 inst_mad->U.I.SrcReg[2].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 338 inst_add->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_1111; in rc_transform_fragment_face() 342 inst_add->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XXXX; in rc_transform_fragment_face()
|
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() 162 unsigned int swz = rc_get_scalar_src_swz(src->Swizzle); in t_src_scalar() 251 …S_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 0)), // X 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 …S_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y in ei_lit() 259 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit() [all …]
|
D | radeon_vert_fc.c | 46 src->Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, RC_SWIZZLE_UNUSED, in build_pred_src() 133 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 153 new_inst->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 167 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_brk() 222 swz = rc_get_scalar_src_swz(inst->U.I.SrcReg[1].Swizzle); in lower_if() 225 inst->U.I.SrcReg[1].Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, in lower_if()
|
D | r300_fragprog_swizzle.c | 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() 142 sd = lookup_native_swizzle(reg.Swizzle); in r300_swizzle_is_native() 169 swz = GET_SWZ(src.Swizzle, comp); in r300_swizzle_split()
|
D | radeon_emulate_loops.c | 95 !(1 << GET_SWZ(value->Src->Swizzle, 0) & mask)){ in update_const_value() 108 inst->U.I.SrcReg[0].Swizzle, in update_const_value() 143 inst->U.I.SrcReg[0].Swizzle == count_inst->Swz){ in get_incr_amount() 147 inst->U.I.SrcReg[1].Swizzle == count_inst->Swz){ in get_incr_amount() 159 inst->U.I.SrcReg[amnt_src_index].Swizzle, in get_incr_amount() 232 count_inst.Swz = counter->Swizzle; in try_unroll_loop() 280 limit_value = rc_get_constant_value(c, limit->Index, limit->Swizzle, in try_unroll_loop() 391 dst->WriteMask & (rc_swizzle_to_writemask(src->Swizzle))) { in build_loop_info()
|
/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_value_gpr.h | 77 using Swizzle = std::array<uint32_t,4>; 90 void swizzle(const Swizzle& swz); 187 inline GPRVector::Swizzle swizzle_from_comps(unsigned ncomp) in swizzle_from_comps() 189 GPRVector::Swizzle swz = {0,1,2,3}; in swizzle_from_comps() 195 inline GPRVector::Swizzle swizzle_from_mask(unsigned mask) in swizzle_from_mask() 197 GPRVector::Swizzle swz; in swizzle_from_mask()
|
/external/skia/src/sksl/ |
D | SkSLGLSLCodeGenerator.h | 161 void writeConstantSwizzle(const Swizzle& swizzle, const String& constants); 163 void writeSwizzleMask(const Swizzle& swizzle, const String& mask); 165 void writeSwizzleConstructor(const Swizzle& swizzle, const String& constants, 168 void writeSwizzleConstructor(const Swizzle& swizzle, const String& constants, 170 virtual void writeSwizzle(const Swizzle& swizzle);
|
/external/mesa3d/src/mesa/state_tracker/ |
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 …]
|
/external/skqp/src/sksl/ir/ |
D | SkSLSwizzle.h | 96 struct Swizzle : public Expression { struct 97 Swizzle(const Context& context, std::unique_ptr<Expression> base, std::vector<int> components) in Swizzle() argument 131 return std::unique_ptr<Expression>(new Swizzle(fType, fBase->clone(), fComponents)); in clone() argument 148 Swizzle(const Type& type, std::unique_ptr<Expression> base, std::vector<int> components) in Swizzle() argument
|
/external/skia/src/sksl/ir/ |
D | SkSLSwizzle.h | 105 struct Swizzle : public Expression { struct 106 Swizzle(const Context& context, std::unique_ptr<Expression> base, std::vector<int> components) in Swizzle() argument 140 return std::unique_ptr<Expression>(new Swizzle(fType, fBase->clone(), fComponents)); in clone() argument 159 Swizzle(const Type& type, std::unique_ptr<Expression> base, std::vector<int> components) in Swizzle() argument
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_tgsi_to_rc.c | 181 dst->Swizzle = tgsi_util_get_full_src_register_swizzle(src, 0); in transform_srcreg() 182 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 1) << 3; in transform_srcreg() 183 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 2) << 6; in transform_srcreg() 184 dst->Swizzle |= tgsi_util_get_full_src_register_swizzle(src, 3) << 9; in transform_srcreg() 193 dst->Swizzle = 0; in transform_srcreg() 195 dst->Swizzle |= GET_SWZ(ttr->imms_to_swizzle[i].swizzle, in transform_srcreg()
|